3 Replies Latest reply on May 17, 2007 6:22 AM by Ilya Shaikovsky

    rich:simpleTogglePanel question

    rachana patel Newbie

      Hi,

      Can I use rich:dataTable which fetchs data dynamically inside <rich:simpleTogglePanel/>? I tried once but it doesnt work . On clicking the image nothing happens.

      I would like to know if it is possible to toggle between dynamically generated data. If yes, then I would go for debugging it. :-)

      Thanks !

        • 1. Re: rich:simpleTogglePanel question
          Ilya Shaikovsky Master

          I write a very simple example putting ajax switched simpletogglepanel inside one of the columns and its works fine for me.

          Specify your case more clearly and may be share sources please.

          • 2. Re: rich:simpleTogglePanel question
            rachana patel Newbie

            I am trying to put entire rich:datatable inside rich:simpleTogglePanel.

            <rich:simpleTogglePanel switchType="ajax" label="Opportunities" >
            <rich:dataTable
             cellpadding="0" cellspacing="0"
             width="100%" border="0"
             id="transtable"
             binding = "#{backing_CustSearchBean.transtable}"
             onRowMouseOver="saveref(this);onOver('#{backing_CustSearchBean.transtable.rowIndex+1}');"
             rendered="#{backing_CustSearchBean.strrendered == 'true'}"
             onRowMouseOut="onOut('#{backing_CustSearchBean.transtable.rowIndex+1}');"
             headerClass="bluebar"
             var="oppList" value="#{processScope.oppAllData}"
             style="margin-top: 5px; cursor: pointer;overflow: auto;"
             styleClass = "dt_normal"
             rowClasses="searchcusttoprow,searchcustrows"
             ajaxKeys="#{backing_CustSearchBean.ajaxSet}"
             onRowClick="showOppSelected('#{oppList.opp_id}','#{backing_CustSearchBean.transtable.rowIndex+1}');showAllWheel('rtform:form2:transwheel');"
             columnClasses="searchcustcols,searchcustmidcols,searchcustcols,searchcustmidcols,searchcustcols,searchcustmidcols"
             >
            
             <h:inputHidden value="#{backing_CustSearchBean.transtable.rowIndex+1}"/>
            
             <rich:column>
            
             <h:outputText value="#{oppList.web_order_number}" style="margin-left: 5px;"/>
             </rich:column>
             <rich:column>
            
             <h:outputText value="#{oppList.opp_status_descr}" style="margin-left: 5px;"/>
             </rich:column>
             <rich:column>
            
             <h:outputText value="#{oppList.opp_name}" style="margin-left: 5px;"/>
             </rich:column>
             <rich:column>
            
             <h:outputText value="#{oppList.opp_id}" style="margin-left: 5px;"/>
             </rich:column>
             <rich:column>
            
             <h:outputText value="#{oppList.order_total}" style="margin-left: 5px;"/>
             </rich:column>
             <rich:column>
             <h:outputText value="#{oppList.created_agent}" style="margin-left: 5px;"/>
             </rich:column>
            
             <rich:column>
             <h:outputText value="#{oppList.created_date}" style="margin-left: 5px;"/>
             </rich:column>
             </rich:dataTable>
            </rich:simpleTogglePanel>


            but it doesnt work.

            Am I doing something wrong?

            • 3. Re: rich:simpleTogglePanel question
              Ilya Shaikovsky Master

              Still can't reproduce. I'm using latest snapshot. panel toggles fine for me.