• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Order of components rendering by rendered JSF tag

 
Ranch Hand
Posts: 171
Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 24501
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Spring Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic