Dear All,
I am using Richfaces 3.3.0 with Spring.
I am including CSS based on the user ROLE (who logged in). so for some user i need to disabled the menuitem and for some user i need to enable the menuitem.
In my css
for ROLE 1
.DisableMenuItem1{height: expression(this.disabled=false);}
for ROLE 2
.DisableMenuItem1{height: expression(this.disabled=true);}
so that in my component i say
<rich:menuItem submitMode="ajax" value="Edit" styleClass="DisableMenuItem1" onclick="location.href='#facesContext.externalContext.requestContextPath}/faces/pages/user/edit.jspx"> </rich:menuItem>
how about just define EL-expression in disabled attribute of the menu.