My requirement is that I need to show and hide some elements in the UI depends on the Role/Group/User. For that I need to know 2 things,
- How can set property for the element in UI dynamically/programatically?
- How can get to know the Group/Role that the logged in user belongs to? (Kindly provide code sample for local as well as LDAP)
Thanks for the information.
This has been achieved.
If I want to maintain(render) for more than one Role then how how can I proceed?
Roles can be aggregated on MWS. That would probably be easiest. Alternatively, you can modify the binding expression to use an OR operator. (Just google JSTL OR operator for more information)