| Author |
Order of components rendering by rendered JSF tag
|
Kumaravadivel Subramani
Ranch Hand
Joined: Jul 05, 2008
Posts: 159
|
|
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: 12513
|
|
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.
|
One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
|
 |
Kumaravadivel Subramani
Ranch Hand
Joined: Jul 05, 2008
Posts: 159
|
|
|
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.
|
 |
 |
|
|
subject: Order of components rendering by rendered JSF tag
|
|
|