Hi,
We are using jboss-seam-2.0.2.SP1 but updated richfaces jars 3.3.1 GA to use some components for our existing project.
In our code we are using rich:simpleTogglePanel within rich:panel > rich:dataTable > h:column...
Issue : rich:simpleTogglePanel is opened by default even after using opened="false".
--Same code works fine with previous richfaces jars (3.1.4).
Please suggest what is wrong as we are stuck with only this issue and need to move to production....
XHTML code :
<rich:panel header="Item Details .."> <div class="association" id="itemChildren"> <rich:dataTable value="#{itemHome.itemChild}" var="itemChild" rendered="#{not empty itemHome.itemChild}" rowClasses="rvgRowOne,rvgRowTwo" id="itemChildTable" onRowMouseOver="this.style.backgroundColor='#F1F1F1'" onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"> <h:column> <f:facet name="header">Item Type</f:facet> <h:outputText value="#{itemChild.itemType}"/> </h:column> <h:column> <f:facet name="header">Sub-items</f:facet> <rich:simpleTogglePanel label="View related sub items" switchType="client" opened="false">// BY DEFAULT THIS IS OPEN <rich:dataTable value="#{itemChild.reg}" var="reg" rendered="#{not empty itemHome.reg}" rowClasses="rvgRowOne,rvgRowTwo" id="regTable" onRowMouseOver="this.style.backgroundColor='#F1F1F1'" onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"> <h:column> <f:facet name="header">Name</f:facet> <h:outputText value="#{reg.iname}"/> </h:column> ...... <h:column> <f:facet name="header">Related sub reg items</f:facet> <rich:dataTable value="#{reg.subregitem}" var="subregitem" rowClasses="rvgRowOne,rvgRowTwo" id="subregTable" rendered="#{not empty reg.subregitem}" onRowMouseOver="this.style.backgroundColor='#F1F1F1'" onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"> <h:column> <f:facet name="header">Sub Name</f:facet> <h:outputText value="#{subregitem.sunregName}"/> </h:column> ...... </rich:dataTable> </h:column> </rich:dataTable> </rich:simpleTogglePanel> </h:column> </rich:dataTable> </rich:panel>
After exploring I found that it was a bug...
opened="#{false}" works....
Thanks