6 Replies Latest reply on Nov 29, 2011 5:40 AM by Daniel Sapoundjiev

    extendeddatatable selection not working in popuppanel

    ravi j Newbie

      Hi,

       

      The extended datatable row selection is not working in popup panel.  If the extendeddatatable is not in popuppanel then selection is working fine. has anyone faced the same issue? Please let me know if you have any solution for this problem.

       

      Please look at following code snippet.

       

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <html xmlns="http://www.w3.org/1999/xhtml"

          xmlns:ui="http://java.sun.com/jsf/facelets"

          xmlns:h="http://java.sun.com/jsf/html"

          xmlns:f="http://java.sun.com/jsf/core"

          xmlns:c="http://java.sun.com/jsp/jstl/core"

          xmlns:sec="http://www.springframework.org/security/facelets/tags"

          xmlns:a4j="http://richfaces.org/a4j"

          xmlns:rich="http://richfaces.org/rich" >

       

           <h:form>

           <h:head></h:head>     

            <h:commandButton value="Call the popup">

              <rich:componentControl target="searchcontainerpopup" operation="show" />

            </h:commandButton>

       

                 <f:loadBundle basename="halo.resources.message.ApplicationResources" var="msgs"/>

                 <rich:popupPanel id="searchcontainerpopup" modal="true"   followByScroll="true" moveable="true" autosized="false"                                                                  onmaskclick="#  {rich:component('searchcontainerpopup')}.hide()" width="1200"  height="500">        

                    

                     <f:facet name="header">

                         <h:outputText value="#{msgs['labelSubject']} #  -> #{msgs['page.subj.header.manageassoc']}" />        

                     </f:facet>

                    

                     <f:facet name="controls">            

                         <h:outputLink value="#"  onclick="#{rich:component('searchcontainerpopup')}.hide(); return false;">X</h:outputLink>

                     </f:facet>

                    

                     <rich:extendedDataTable  value="#{testForm.referralDtoList}" var="masterReferral"  selection="#{testForm.selection}"                                                       selectionMode="multiple" id="exsourcestable1" rows="10" frozenColumns="4" style="height:300px;width:1100px;">

                           <a4j:ajax execute="@form" event="selectionchange" listener="#{testForm.masterReferralSelectionListener}"  />

       

                           <f:facet name="header">

                              <h:outputText value="#{msgs['page.subj.label.searchresults']}"  style="height:40px;"/>

                           </f:facet>

       

                           <rich:column width="100px">

                              <f:facet name="header">

                                  <h:outputText value="#{msgs['page.subj.label.searchhdrnumber']}" />

                              </f:facet>

                              <h:outputText value="#{masterReferral.id}" />

                           </rich:column>

       

                           <rich:column width="100px">

                              <f:facet name="header">

                                  <h:outputText value="#{msgs['page.subj.label.searchtype']}" />

                              </f:facet>

                              <h:outputText value="#{masterReferral.type}" />

                           </rich:column>

       

                           <rich:column width="100px">

                              <f:facet name="header">

                                  <h:outputText value="#{msgs['page.subj.label.searchsubtype']}" />

                              </f:facet>

                              <h:outputText value="#{masterReferral.subType}" />

                           </rich:column>

                      </rich:extendedDataTable> 

                     </rich:popupPanel>

          </h:form>

       

          </html>

       

      Message was edited by: ravi j