File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with subviews " Watch "Problem with subviews " New topic

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.

Blake Ch

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: 17410

Welcome to the JavaRanch, Blake, but we really do need for you to conform to our Display Name standard:

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 (

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Problem with subviews
It's not a secret anymore!