3 Replies Latest reply on Jul 23, 2008 8:50 PM by infinity2heaven

    Problem loading a page with More than 50 Fields

    Muruga boopathy Newbie

      Hi There,
         I have designed a page with more than 50 fields and it takes almost 4 mins to load everytime. I tried using ajax form and normal h:form also. Please suggest me .


        • 1. Re: Problem loading a page with More than 50 Fields
          Francisco Jose Peredo Noguez Master

          It is hard to tell without taking a look at your page... can you post its xhtml or a screenshot? (you can not attach images in this forum so would have to post the screenshot somewhere else and link it here)


          Are all those 50 fields plain simple input boxes? or are they SelectOne and SelectMany controls that make queries to the database?


          Does it take 4 minutes to load with data? or are all fields empty? it is a form to save data? or to make searches?


          The more specific you are in your description of you page, the easier for someone to help you.


          Regards,

          • 2. Re: Problem loading a page with More than 50 Fields
            Muruga boopathy Newbie

            Hi,
            Thanks for the Reply, I have some textfields and 6 dropDown list in my page, which is taking data from the same table same column, I have tested for the query execution time also, its executing only once and iterating for each and every dropDown list. No clue how to solve this issue.
            SOON WILL POST MY XHTML or SCREENSHOT HERE



            Thanks
            Muruga

            • 3. Re: Problem loading a page with More than 50 Fields
              infinity2heaven Novice

              1) post your xhmtl.
              2) Add statistics to your java code first and see long the queries are taking


              If 2) is much less then it must be your UI rendering. I had same problems and realised that some of the richfaces components are horrendous. Like the rich:calendar. I removed that component and it took from 14 secs to 2 secs. Also richfaces performs really bad when it comes to zipping css or caching static resources, had to write my custom filter for the same