1 Reply Latest reply on Feb 1, 2011 1:32 AM by Ilya Sorokoumov

    How can we define an attribute for an existing tag?

    Sunil Chauraha Newbie

      Hi All,

      I would like to thanks in advance for your valuable answers.

       

      Here my problem is, I am using h:commandLink, h:commandButton, a4j:commandLink or h:commandButton depends on requirement.

       

      I want to disable some of the link based on user role privilege. (i.e.  Delete operation can be allowed for onlysuper user or admin).

      How can i achieve this in xhtml itself.

      Can i write some attribute for this requirement if yes then how?

       

      Or do we have some existing attribute in JSF/RichFaces to solve this problem?

      Please help me out.