0 Replies Latest reply on May 24, 2011 9:11 AM by abrauner

    CollapsiblePanel switchType=ajax and not working CommandButtons

    abrauner

      Hi all,

       

      I hope some can tell me what I'm doing wrong.

       

      I'm currently working with Richfaces4 on a Glassfish 3.1. I'm working with large datasets which due to "overview reasons" can not be handled with paged tables. So I want to hide some information. To do so I chose a rich:collapsiblePanel inside a "rich:dataTabel > rich:column".

       

      This collapsiblePanel hold a rich:dataTable again with several commandButtons to trigger actions with the displayed Data. And exactly those buttons are not working. The complete page is rerendered but not action is triggered. Neither I choose an action method with nor without parameter.

       

      So my view looks something like this, and the button "actionBtn" is not working.

       

      <rich:dataTable var=row>

         
      <rich:column>

             
      <rich:collapsiblePanel>

                 
      <rich:dataTable var="wor" value="#{anyManagedBean.method(row.id)">
                     
      <rich:column>
                         
      <h:outputText value="working fine" />
                     
      </rich:column>
                     
      <rich:column>
                         
      <h:commandButton value="Do sth." action=#{otherManagedBean.method(wor) id="actionBtn" />
                     
      </rich:column>
                 
      </rich:dataTable>

             
      </rich:collapsiblePanel>

         
      </rich:column>

      </rich:dataTable>