aspose file tools*
The moose likes JSF and the fly likes Problem with subviews Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with subviews " Watch "Problem with subviews " New topic
Author

Problem with subviews

Priti Shah
Ranch Hand

Joined: May 10, 2005
Posts: 43
Hi All,

Currently I am facing really weird problem and i m trying to solve it from long but nothing is working. So here I am posting my problem

I have two subviews on the same page. Each of the subview gets rendered on some condition.




Here is my bean code



These both subviews are under main view which in tabbedPane.faces file.

Now each view is rendered when corrosponding condition is satisfied. When I click link on first view (link) it renderes subview (link1) everything is good so far. Now real problem starts. On this second view (subLink1) when I click submit button ideally it should call 'performsubmit' action on the linkBean. But surprisingly that bean is never called and control always goes to tabbedPane.faces and in this case it wont render any sub views because none of the condition satisfies.

I tried many many different approaches but when it comes to submit button it is not at all calling 'performsubmit' method. But yes it works fine when I directly put it under <f:view>

I donot understand why submit is not working, what is going wrong from myside.

Any help is appreciated. I am really stuck here, I also could not find any work around because I have to use subview according to my GUI needs.

Thanks
Blake Ch
Greenhorn

Joined: Jul 25, 2012
Posts: 1
I had the same problem. It's the way the rendered attribute works (server side rendering). I use primefaces and it comes with a "visible" attribute that works with certain components to hide the component on the client side.


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16137
    
  21

Welcome to the JavaRanch, Blake, but we really do need for you to conform to our Display Name standard: http://www.javaranch.com/name.jsp

Your were responding to a 7-year old question, though. By now, I imagine that Priti has moved on. Usually after a year or so, we recommend letting dead threads rest in peace (http://www.coderanch.com/how-to/java/DontWakeTheZombies).


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with subviews