2 Replies Latest reply on Feb 15, 2012 6:31 PM by Alexey Makukhin

    Collapsible Subtable - expanded="false" doesn't work (RF4.1final)

    Alexey Makukhin Newbie

      Hello

       

      I have this xml:

      <rich:dataTable value="#{AddServiceWizard.service.processList}"
                              var="process"
                              style="width: 100%;"
                              noDataLabel="Нет данных">
                  <f:facet name="header">
                      <rich:columnGroup>
                          <rich:column colspan="2">
                              Процессы и используемые порты (#{AddServiceWizard.service.processList.size()})
                              <h:graphicImage value="/resources/images/edit.gif" 
                                              title="Изменить" 
                                              style="vertical-align: bottom;float:right;cursor: pointer"
                                              onclick="$('#details').slideUp(700);$('#addProcessDiv').slideDown(700)"/>
                          </rich:column>
                      </rich:columnGroup>
                  </f:facet>
                  <rich:column colspan="2">
                      <rich:collapsibleSubTableToggler for="portsSubtbl"/>
                      <h:outputText value="#{process.processRef.processName} (Портов - #{process.portsList.size()})" style="font-weight: bold;"/>                        
                  </rich:column>
                  <rich:collapsibleSubTable value="#{process.portsList}" 
                                            id="portsSubtbl" 
                                            var="port" 
                                            expandMode="client"
                                            expanded="false"
                                            noDataLabel="Порты не зарегистрированы">
                      <rich:column>
                          <f:facet name="header">
                              Протокол
                          </f:facet>
                          #{port.protocol.protocolName}
                      </rich:column>
                      <rich:column>
                          <f:facet name="header">
                              Номер порта
                          </f:facet>
                          #{port.portNumber}
                      </rich:column>
                  </rich:collapsibleSubTable>
              </rich:dataTable>
      

       

      Problem is that expanded attribute of collapsiblesubtable doesn't work at all, with or without headers in subtable's columns

       

      Is there any solution to overcome the problem?