2 Replies Latest reply on Oct 3, 2007 10:22 AM by stuartm1971

    rich:simpleTogglePanel misses first click

    stuartm1971

      This has been addressed in other posts but I don't know of a solution.
      My rich:simpleTogglePanel panel is inside a rich:dataTable and often fails to expand or collapse the panel. If I add an onclick or an actionListener to the panel, these are always called but for some reason the panel collapse/expand is intermittent.

      Does anyone have a solution?

      Thanks

        • 1. Re: rich:simpleTogglePanel misses first click
          maksimkaszynski

          Code example, please.

          • 2. Re: rich:simpleTogglePanel misses first click
            stuartm1971

            This togglePanel appears in a colum of a rich dataTable and itself contains a subtable.

            <rich:simpleTogglePanel actionListener="#{failedXMLDataBean.populateMessageDetails}"
            opened="false" switchType="ajax"
            label="Details...'">
            <a4j:actionparam name="transId" value="#{tableitem.transactionId}" />
            <rich:subTable id="subtable" value="#{failedXMLDataBean.messageDetails}" var="subtableitem"
            binding="#{failedXMLDataBean.messageDetailSubTableComponent}">
            <rich:column>
            ...numerous data columns...
            </rich:column>
            <rich:column>
            <f:facet name="header">
            <h:outputText value="Originating XML" />
            </f:facet>
            <%--open up the corresponding xml in a modalpanel--%>
            <a4j:commandButton value="Select: #{tableitem.transactionId}"
            actionListener="#{failedXMLDataBean.populateStaffPlannerDetailsFromSubTable}">
            <a4j:actionparam name="empNo" value="#{tableitem.employeeNumber}" />
            </a4j:commandButton>
            </rich:column>
            </rich:subTable>
            </rich:simpleTogglePanel>