This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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: 171

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, Liferay Certified Developer 6.1
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17039
    
  26

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.


An IDE is no substitute for an Intelligent Developer.
Kumaravadivel Subramani
Ranch Hand

Joined: Jul 05, 2008
Posts: 171

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.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Order of components rendering by rendered JSF tag
 
It's not a secret anymore!