0 Replies Latest reply on Nov 21, 2012 10:14 AM by bastionpayne

    Unable to use setpropertyListener for an item on 2nd tab in tabpanel.

    bastionpayne Newbie

      I'm using a tabPanel on a small assignment, on one tab there's a extendeddatable with server urls and associated information, and on another tab there is other information that is associated with entries on the first tab.  Everything works as expected, there's a search box, the search reflects on both tabs, i can add servers and remove servers.  The problem that exist occurs when clicking on an edit commandlink that I have next to each entry inside datatable. When i click it the first a pop is populated, including another small datatable, when i cancel the window and click edit again, the contents of the datatable disappear, and the datatable behind the popup window disappears.  When i use the add button,  the datatable behind the popup also disappears (if contents of the datatable there).  Also, while I can use setpropertyActionlistener to capture the item selected after clicking the command link, on my 2nd tab I use the same SetpropertyListener to capture  the item selected but it returns null.

       

      It's something like this.

       

      <div class ="someArea">

      <h:form id="serverForm">

      <a:outputPanel ajaxRendered="true" id="wrapPanel">

      <rich:tabPanel id="serverPanel" switchType="ajax">

      <rich:tab>

      <!-- first table used -->

      <rich:extendedDataTable>

      ...column

      ...column

      <rich:column>

      <a:commandLink styleClass="no-decor"

                                         render="re-Render a bunch of s tuff"

                                         execute="@this"

                                         oncomplete="#{r:component('editPanel')}.show()">

                              <h:graphicImage value="img/edit16.png" alt="edit"/>

                              <f:setPropertyActionListener target="#{displayBean.selectedServer}"

                                                           value="#{server}"/>

                          </a:commandLink>

      </rich:column>

      <!-- Above works !!! -->

       

      </extendedDataTable>

      </rich:tab>

       

      <rich:tab>

      <rich:extendedDataTable var= server2 >

      ...column

      ...column

       

      <rich:column>

      <extendedDataTable value ="server2.infos" var=info>

          rich:column

          info

         rich:column

       

      </extendedDataTable>

      <a:commandButton styleClass="no-decor"

      render="re-Render a bunch of s tuff"

      execute="@this"

      oncomplete="#{r:component('addInfoPanel')}.show()">

      <h:graphicImage value="img/edit16.png" alt="edit"/>

      <f:setPropertyActionListener target="#{displayBean.selectedServer}"

      value="#{server2}"/>

      </a:commandLink>

      </rich:column>

      <!-- Above  does not work!!! null server2-->

       

      </extendedDataTable>

       

      </rich:tab>

       

      </rich:tabPanel>

       

      </a:outputPanel>

       

      </h:form>

       

      </div>

       

      I'd apperciate any help anyone could give, as I've been playing with this for awhile, and it's time to move on