Fala galera…
estou tentando mudar um botão em uma listagem de clientes, onde eu tenho uma coluna “Ativo” que mostra “Sim”(true) e “Não”(false).
Gostaria de mudar a visualização do botão, de acordo com o cliente, se ativado ou desativado.
tentei usar jstl, mas pelo que vi na net parece que não funciona com facelets e tb a tag <c:if> esta sendo ignorada… abaixo o trecho q usei jstl…
<rich:column styleClass="action" width="60px">
<f:facet name="header">Ações</f:facet>
<s:link view="/paginas/cliente/cliente_edit.xhtml"
id="tclientEdit" rendered="#{empty from}">
<f:param name="tclientIdClient" value="#{_tclient.idClient}" />
<h:graphicImage value="/images/Edit_32.png"
styleClass="hidelink" width="17px" height="17px" id="editar"
title="Editar" />
</s:link>
<!-- É IGNORADA --> <c:if test="#{_tclient.flgActive == true}">
<a:commandLink id="tclientDelete"
oncomplete="#{rich:component('mdlConfirmaDesativarCliente')}.show()"
reRender="mdlConfirmaDesativarCliente">
<h:graphicImage value="/images/Delete-32.png"
styleClass="hidelink" width="15px" height="15px" id="deletar"
title="Desativar" />
<f:setPropertyActionListener target="#{tclientHome.instance}"
value="#{_tclient}" />
<s:conversationPropagation type="join" />
</a:commandLink>
</c:if>
<c:if test="#{_tclient.flgActive == false}">
<a:commandLink id="tclientAtivar"
oncomplete="#{rich:component('mdlConfirmaAtivarCliente')}.show()"
reRender="mdlConfirmaAtivarCliente">
<h:graphicImage value="/images/Check-32.png"
styleClass="hidelink" width="15px" height="15px" id="ativar"
title="Ativar" />
<f:setPropertyActionListener target="#{tclientHome.instance}"
value="#{_tclient}" />
<s:conversationPropagation type="join" />
</a:commandLink>
</c:if>
</rich:column>
alguém sabe como posso fazer isso sem jstl?
desde já agradeço a ajuda.
abs