JSF 2: Change rendered atribute of a component on phase listener
问题 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? 回答1: 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