You have to use the rendered attribute, and put two components:
<h:column>
<h:commandLink ... rendered="#{row.itemIsClickable}">
..
</h:commandLink>
<h:outputText ... rendered ="#{!row.itemIsClickable}">
</h:column>
Another choice is to use the displayValueOnly attribute of the
extended commandLink component:
<t:commandLink ... displayValueOnly="#{!row.itemIsClickable}"/>
Hope that helps,
Bruno
2005/10/24, Stefan Gesigora <[EMAIL PROTECTED]>:
>
>
>
> Hi folks!
>
>
>
> Problem:
>
> I wanna show a Link in a datatable if the user has a specific right and if
> he hasn't I wanna show only text.
>
> If I use the rendered tag the text wasn't shown if rendered = false.
>
> So I tried to put an HtmlPanelGrid into my datatable with the attribute:
> binding="#{row.testPanel}" (row is the var for the rows…).
>
>
>
> But it didn't work. I got error messages like this:
>
> "Error setting property 'testPanel' in bean of type null"….
>
>
>
> What can I do except writing a custom component….???
>
>
>
> regards,
>
> Stefan