Why not just use the "rendered" attribute?  You can bind it to any
boolean EL expression.
Just make sure that your expression still evaulates the same on the
next page request (ie, don't bind it to request-scoped data unless
you're using x:saveState on it).

On 9/27/05, Eduardo Leite <[EMAIL PROTECTED]> wrote:
>
> Guys,
>
> just to know if I'm not reinventing the wheel...
>
> I need a property to tell a commandLink component when it needs to print the
> <a href=""> tag or not. I know that enableOnUserRole does this, but it is
> tied to the J2EE security model.
> I need something simpler, just like the disabled property for the
> commandButton component. Is there anything like this implemented anywhere on
> MyFaces?
>
> Thanks in advance,
>
> ________________________________________
> Eduardo Bastos Leite
> Analista de Sistemas
> QuickMind Tecnologia em Conhecimento
> http://www.quickmind.com.br
> Tel.: +55 21 2524-2956 Ext. 215
> Cel.: +55 21 9953-2223
>

Reply via email to