Hy guys,
In JSF 2 How can I change the rendered atribute of a h:InputText component using a PhaseListener.
Before the jsf page be rendered I have to verify all id of the h:inputtexts, and after that I will change the atribute to be rendered or not.
Am I clear?
On GET requests, the view root is not created yet during the before phase of the render response and during the after phase it's too late because the response is already been rendered and sent to the client. The view root is however available for modification during the "pre render view" system event.
To get it to run, register it as follows in
faces-config.xml
: