Skip to main content

Change View State on initial request

No replies
m.falak
Offline
Joined: 2013-12-15
Points: 0

Hi
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!?
thanks