2 Replies Latest reply on Sep 8, 2010 4:08 AM by kislo_metal

    richfaces 4.0.0.20100826-M2 rich:subTableToggleControl  - How to change expand state ?

    kislo_metal

      Hi all!

      I am using rich:subTableToggleControl :

       

      <rich:dataTable var="template" value="#{mailTemplateList.sharedMailTemplates}"  >
                  <rich:column>
                      <rich:subTableToggleControl for="efields" state="false"/>
                      <h:outputText value="#{template.name}"/>               
                  </rich:column>
                  <rich:subTable id="efields" var="templateFields" value="#{template.template}" expandMode="client">
                      <rich:column id="efields">
                          <h:inputTextarea id="tarea" value="#{templateFields}" readonly="true" style="width:1000px;height:200px"/>
                          <p/>
                          <a4j:commandButton  value="edit"/>
                      </rich:column>
                  </rich:subTable>
      <rich:dataTable var="template" value="#{mailTemplateList.sharedMailTemplates}"  >
                  <rich:column>
                      <rich:subTableToggleControl for="efields"/>
                      <h:outputText value="#{template.name}"/>                
                  </rich:column>
                  <rich:subTable id="efields" var="templateFields" value="#{template.template}" expandMode="client">
                      <rich:column id="efields">
                          <h:inputTextarea id="tarea" value="#{templateFields}" readonly="true" style="width:1000px;height:200px"/>
                          <p/>
                          <a4j:commandButton  value="edit"/>
                      </rich:column>
      </rich:subTable>
      
      

       

      by default it expanded :

       

      Screen shot 2010-09-03 at 17.33.33.png

       

      Is there is some possibility to change expand state of subTableToggleControl

      Thank you!