File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Setting component attributes through viewhandler" Watch "Setting component attributes through viewhandler" New topic

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

Joined: Aug 06, 2008
Posts: 1

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?


[ August 07, 2008: Message edited by: Matt Cannon ]
I agree. Here's the link:
subject: Setting component attributes through viewhandler
It's not a secret anymore!