File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Setting component attributes through viewhandler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Setting component attributes through viewhandler" Watch "Setting component attributes through viewhandler" New topic
Author

Setting component attributes through viewhandler

Ranadhir Nag
Ranch Hand

Joined: Mar 09, 2006
Posts: 138
We need to tag each component in a view with a specific attribute.
We are not allowed to inherit and customize the encoding of the components through custom renderer.
Is it possible to tag the components in the tree ,through a custom viewhandler or phaselistener, prior to the rendering?
We find that the phaselistener can get the entire component tree only after the RENDER_RESPONSE phase.
Is ther any other way of achieving this objective?
Matt Cannon
Greenhorn

Joined: Aug 06, 2008
Posts: 1
Ranadhir,

It's been a long while since you added this post, but I've come up against the same problem and was wondering if you found a solution?

Regards,

Matt
[ August 07, 2008: Message edited by: Matt Cannon ]
 
Don't get me started about those stupid light bulbs.
 
subject: Setting component attributes through viewhandler