aspose file tools*
The moose likes JSF and the fly likes Order of components rendering by rendered JSF tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Order of components rendering by rendered JSF tag" Watch "Order of components rendering by rendered JSF tag" New topic
Author

Order of components rendering by rendered JSF tag

Kumaravadivel Subramani
Ranch Hand

Joined: Jul 05, 2008
Posts: 166

In which order the specified components are being rendered by "rendered" attribute in JSF? Is there any possibility of render second component only after first component finishes it's rendering?

Below is my example code,



Here the first component displays input boxes while second component displays the error message corresponds to that.

No pain, No gain.
OCJP 1.6
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

JSF view templates are 2-dimensional templates, and the concept of time (and therefore rendering order) doesn't apply to something purely geometric. What you're really interested in is the sequence of processing for AJAX.

I'm not sure how to do that in vanilla JSF2. RichFaces has a special AJAX status tag that can be used to display things like a "please wait...". I use it extensively, in fact.


Customer surveys are for companies who didn't pay proper attention to begin with.
Kumaravadivel Subramani
Ranch Hand

Joined: Jul 05, 2008
Posts: 166

Thanks Tim. I've insisted to my developer to use another method of rendering the second component by adding extra flag bean, based on flag value second component will be rendered. The whole intention was to load the second component after first since, based on first second would not be needed.
 
jQuery in Action, 2nd edition
 
subject: Order of components rendering by rendered JSF tag