6 Replies Latest reply on Oct 29, 2009 6:57 AM by karthicprabhu

    <Rich:listShuttle> redirects page with

    karthicprabhu

      HI,

      When source values inside listshuttle clicked continiously to target values or any controls like Copy, Copyall, Remove, Removeall and also first,last,Up , Down etc ., are clicked continiously the page redirects with a "null" string in the page. This issue occurs in Google Chrome, Safari and Opera browsers, where in IE and firefox the click event is done faster wereas it is slow in all other browsers i have mentioned with issue.

      To Reproduce issue, continiously click values or controls for some time.


      Please let me know how to fix this issue.

      Thanks,
      Karthic Prabhu.

        • 1. Re: <Rich:listShuttle> redirects page with
          ilya_shaikovsky

          if any ajax requests called for the movement event? Then you should probably try queue, because it could be caused by concurrent requests.

          • 2. <rich:listShuttle> redirects page with
            karthicprabhu

            Issue Header:

            <rich:listShuttle> redirects page with "null" string when controls in listshuttle clicked continiously.

            • 3. Re: <Rich:listShuttle> redirects page with
              karthicprabhu

              Hi ilya_shaikovsky,

              I too tried with queue, but tht is not as much as efficient. where i have a doubleclick event to copy value from source to target. if i continiously click i have to alert with a message when i opt to fix with queue. Each time i have to wait, and notice queue message.


              But in browser IE and Firefox, the click events r more fast and i doesnt results with wrong page.

              Can u help me out with any other solution?
              My sample code:

              <rich:listShuttle sourceValue="#{listexporter.aAttributes}"
               targetValue="#{listexporter.sAttributes}" var="available"
               listHeight="300" listWidth="300" sourceCaptionLabel="A Attributes"
               targetCaptionLabel="S Attributes" sourceListWidth="200" targetListWidth="200">
               <rich:column>
               <h:outputText value="#{listexporter.attrLabel[available]}" styleClass="small2"/>
               </rich:column>
               <a4j:support event="onlistchanged" reRender="button" limitToList="true" timeout="#{email['timeout']}"/>
               </rich:listShuttle>


              • 4. Re: <Rich:listShuttle> redirects page with
                ilya_shaikovsky

                I tried richfaces-demo page in Opera and unfortunatelly can't see it now even without queue.

                How have you defined queue?

                Do you see anything in server log after the problem appears?

                • 5. Re: <Rich:listShuttle> redirects page with
                  karthicprabhu

                  Hi ilya_shaikovsky,

                  <h:form>
                  
                  <a4j:queue name="importqueue" requestDelay="#{email['timeout']}" ignoreDupResponses="true" disabled="false" size="1"/>
                  -----
                  -------
                  
                  <h:panelGroup>
                   <rich:listShuttle sourceValue="#{listexporter.aAttributes}"
                   targetValue="#{listexporter.sAttributes}" var="available"
                   listHeight="300" listWidth="300" sourceCaptionLabel="Available Attributes"
                   targetCaptionLabel="Selected Attributes" sourceListWidth="200" targetListWidth="200">
                   <rich:column>
                   <h:outputText value="#{listexporter.attrLabel[available]}" styleClass="small2"/>
                   </rich:column>
                   <a4j:support event="onlistchanged" reRender="button" limitToList="true" timeout="#{email['timeout']}" eventsQueue="importqueue"/>
                   </rich:listShuttle>
                   </h:panelGroup>
                  </h:form>


                  • 6. Re: <Rich:listShuttle> redirects page with
                    karthicprabhu

                    Hi ilya_shaikovsky,

                    Thanks for ur suggestion and i can able to fix the issue now. I used the same queue concept on ajax request and now it works fine.


                    Thanks a lot.
                    Karthic Prabhu