Hi Shiva,
---- shiva_kudi <[EMAIL PROTECTED]> schrieb:
>
> When i use jstl if condition inside <tr:table>, its not getting effected.
> Plzz help.
>
> Here is the code:
>
> <tr:table id="#{id}" var="row" value="#{bean.wrapDetail}" width="100%" >
> <tr:column headerText="status" width="13%">
> <c:if test="#{row.status eq 'Active'}">
>
> <tr:outputText value="#{row.status}" />
> </c:if>
> </tr:column>
> </table>
Do not use c:if with JSF. Instead, use the rendered attribute:
<tr:column ...>
<tr:outputText
value="#{row.status}"
rendered="#{row.status eq 'Active'}"/>
</tr:column>
Regards,
Simon