8 Replies Latest reply on Jan 31, 2008 10:08 AM by vst777

    listShuttle render problem v3.1.4 GA

    vst777

      Hi.

      The listShuttle component seems not to work correctly when it is assigned with the attribute rendered="#{theBean.rendered}" (with rendered = false). After ajax rerendering the listShuttle with rendered=true you cannot select any list item. Is this a bug?

      Greetings
      vst777

        • 1. Re: listShuttle render problem v3.1.4 GA
          ilya_shaikovsky

          show your code please and what is the scope of your theBean?

          • 2. Re: listShuttle render problem v3.1.4 GA
            tkuprevich

            vst777,

            try to include listShuttle into some container component and rerender that container. Or if you don't mind - share your sources with us.

            Thanks.

            • 3. Re: listShuttle render problem v3.1.4 GA
              tkuprevich

               

              "ilya_shaikovsky" wrote:
              show your code please and what is the scope of your theBean?

              Sorry, I was late =)

              • 4. Re: listShuttle render problem v3.1.4 GA
                vst777

                Here's the code. The toolbar has a button to switch between the master and the slave panel. So initially only the master panel is shown. After clicking the button the slave panel is shown, but then no item in the listShuttle can be selected.

                The managed bean is in request scope, but I used it on that page with

                <a4j:keepAlive beanName="theBean"/>.
                

                So it should live during the page requests.


                 <a4j:outputPanel id="tabContainer">
                 <a4j:outputPanel id="master" styleClass="#{(empty theBean.mode) ? '' : 'hidden'}">
                 <rich:tabPanel binding="#{theBean.masterTabPanel}">
                 <rich:tab binding="#{theBean.masterTab}">
                 <a4j:outputPanel binding="#{theBean.gridContainer}"/>
                 </rich:tab>
                 </rich:tabPanel>
                 </a4j:outputPanel>
                
                 <a4j:outputPanel id="slave" rendered="#{!empty theBean.mode}">
                 <rich:tabPanel binding="#{theBean.slaveTabPanel}">
                 <rich:tab binding="#{theBean.slaveTab0}"/>
                 <rich:tab binding="#{theBean.slaveTab1}">
                
                 <a4j:outputPanel id="shuttle">
                 <rich:listShuttle
                 targetValue="#{theBean.securityRolesAssigned}"
                 sourceValue="#{theBean.securityRolesAvailable}"
                 var="item"
                 sourceCaptionLabel="Available Items"
                 targetCaptionLabel="Selected Items"
                 converter="listShuttleConverter">
                
                 <rich:column>
                 <h:outputText value="#{item.name}"/>
                 </rich:column>
                 </rich:listShuttle>
                 </a4j:outputPanel>
                
                 </rich:tab>
                 </rich:tabPanel>
                 <rich:toolBar binding="#{theBean.slaveToolBar}"/>
                 </a4j:outputPanel>
                 </a4j:outputPanel>
                


                • 5. Re: listShuttle render problem v3.1.4 GA
                  ilya_shaikovsky

                  do you reRender "tabContainer" or nested "slave" container?

                  • 6. Re: listShuttle render problem v3.1.4 GA
                    vst777

                    I rerender the tabContainer.

                    • 7. Re: listShuttle render problem v3.1.4 GA
                      ilya_shaikovsky

                      could you please send me working sample war with libs to reproduce this?

                      • 8. Re: listShuttle render problem v3.1.4 GA
                        vst777

                        ok. I try to create a sample war...coming soon