Skip to main content

Change View State on initial request

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2013-12-15

i have a problem, i need to change some attribute of my page's components (disable and rendered) to implement authorization.
i try to use jsf phase listener registered for after Restore_View but for first user request FacesContext.getViewRoot() retorn an empty object and it populated after Render Response so i cant access to my page component to manipulate them! i also try ViewHandeler but it's not work too
how can i access to the page components on run time and dynamically change the view state!?