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.
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.