• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with subviews

 
Priti Shah
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic