6 Replies Latest reply on Feb 9, 2011 9:32 AM by abcd123456

    problem with richfaces picklist

    abcd123456

      Hello,

       

      I'm trying to load about 5000 rows in a picklist. The loading seems to work just fine but when I try to copy an element from one side to the other an Unresponsive Script warning appears.

       

      A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.

       

      Is there any alternative to the picklist so it could work with 5000 rows? 5000 rows doesn't seem like alot..

       

      Here is the code for my picklist:

      <rich:pickList value="#{modelBean.targetRows}" sourceListWidth="250px"

                                         targetListWidth="250px">

                              <f:selectItems value="#{modelBean.sourceRows}"/>

      </rich:pickList>

       

      Please help.

       

      Thank you,

       

      Alex

       

       

       

        • 1. problem with richfaces picklist
          boy18nj

          Hi Alex,

           

          Unfortunately rich:pickList isn't designed to handle largeset of rows. I would advise you try for 100 rows to verify if you still receive script unresponsive error because of largeset rows.

          1 of 1 people found this helpful
          • 2. problem with richfaces picklist
            abcd123456

            I've tried with 100,500,1000 and even 5000 rows and I receive the warnin only on certain environments.

             

            It seems that I will have to replace this component with something else.

             

            Any suggestions?

             

            Thanks,

            Alex

            • 3. problem with richfaces picklist
              abcd123456

              And for 100-1000 rows I haven't receive any warn..

              • 4. problem with richfaces picklist
                abcd123456

                Hi,

                 

                It seems the problem is when I try to copy one row from one side to the other. I think it iterates through all the list to find the required row to be copied because if I copy for example row 10 it works  very fast but if I copy row 4000 it works very slow.

                 

                Need an alternate or a sollution for this.

                Thanks.

                Alex

                • 5. problem with richfaces picklist
                  ilya40umov

                  Try to add some kind of groups or pages for your pick:list if it's possible. Like if you have h:selectOneRadio on top and for each category user has a list different items to pick.

                  IMO: 5000 is too many items for application which is not supposed to be used only by one user.

                  1 of 1 people found this helpful
                  • 6. problem with richfaces picklist
                    abcd123456

                    I can't do groups because the I have nothing to group in my list. What I will try to  do instead is create my own components (two orderinglists and 2 Copy - Copy all buttons). It should be faster because the list will be created in java code and not iterated in javascript.

                     

                    Now I have another issue because I can't seem to get the selection from one list to the other on button click.