Pessoal, tenho um dataTable e um commandButton dentro de um simpleTogglePanel
Preciso que quando o commandButton seja clicado o simpleTogglePanel fique "invisivel".
Fiz dessa forma e não esta acontecendo nada:
<a4j:commandButton value="Close"
styleClass="contextFormPlainButton"
onclick="#{rich:component('divDetails')}.hide()"
reRender="divDetails"/>
Código completo:
<div id="divDetails" class="scrollDivExternalSynchronize" >
<rich:simpleTogglePanel
switchType="ajax"
styleClass="sie-simpleTooglePanel"
opened="true"
id="variablePanel"
label="Execution Detail"
rendered="#{not empty synchManager.listDetails}"
height="500px">
<f:facet name="openMarker">
<h:graphicImage value="../../../images/default/Buttom_mais.png" />
</f:facet>
<f:facet name="closeMarker">
<h:graphicImage value="../../../images/default/Buttom_menos.png" />
</f:facet>
<rich:dataTable value="#{synchManager.listDetails}"
var="_synchDetails" id="synchDetails"
rowKeyVar="rowCount"
rowClasses="tableRowEven2 , tableRowOdd2"
styleClass="dr-table-subheader2"
rendered="#{not empty synchManager.listDetails}">
<f:facet name="header">
<h:outputText value="#{synchManager.syncDateTime} - Execution: #{synchManager.execution}"></h:outputText>
</f:facet>
<rich:column sortable="false">
<f:facet name="header">
<h:outputText value="#{labels.packageName}" />
</f:facet>
<h:outputText value="#{_synchDetails.source}" ></h:outputText>
</rich:column>
<rich:column sortable="false">
<f:facet name="header">
<h:outputText value="#{labels.stepExecutionStatus}" />
</f:facet>
<h:outputText value="#{_synchDetails.message}" ></h:outputText>
</rich:column>
</rich:dataTable>
<a4j:commandButton value="Close"
styleClass="contextFormPlainButton"
onclick="#{rich:component('divDetails')}.hide()"
reRender="divDetails"/>
</rich:simpleTogglePanel>
</div>
Desde já agradeço!
