Enable/Disable Editing of Form Fields based on User Roles
I know JSF/MyFaces has disable attribute but wondering how do i enable/disable based on user roles .
My other question is how do i pass userId from JSF page to Backing Bean.
Here is the situation
The JSF page has userId available from Single Sign On application. Now i wanna pass this userId to the Backing Bean so that i can retrieve user roles from the database based on userId.
Back to JSF form based on user roles i would like to enable/disable editing of certain form fields
Any pointers/suggestion on how to do this will be highly appreciated.
I am using MyFaces 1.1.4, Tomahawk 1.1.3, Sanbox, Facelets 1.1.12, Ajax4JSF 1.04, Spring, Hibernate
Regards
Bansi

