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

[718 byte] By [mail2bansia] at [2007-11-26 16:52:50]
# 1
Check http://balusc.xs4all.nl/srv/dev-jep-com.html how to play with params.Suggestion: sessionMap.
BalusCa at 2007-7-8 23:20:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...