• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Order of components rendering by rendered JSF tag

 
Kumaravadivel Subramani
Ranch Hand
Posts: 171
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kumaravadivel Subramani
Ranch Hand
Posts: 171
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic