0 Replies Latest reply on Nov 14, 2010 8:23 PM by kennardconsulting

    Dreamin': Populate select box using HTML 5 Local Storage

    kennardconsulting

      Dear All,

       

      First, thanks for all your hard work on RichFaces! I use it every day and it really helps my UIs.

       

      I have an idea but don't know where to start. I have a JSF page with 3 or 4 select boxes on it, and each select box has some 2,000-3,000 entries (company names and such). This makes the overall page some 500K in size, which is slow to pull down from the server each time. I am working around this using AJAX and other tricks, but what I'd like to try is using HTML 5 local storage.

       

      So: the first time the select box is displayed it pushes its list of 2,000 options (which rarely change) into HTML 5 local storage. On subsequent attempts it repopulates using HTML 5 local storage rather than requesting from the server.

       

      Where would I start in implementing/requesting enhancements to support such an idea? I tried...

       

      <rich:select value="#{my.companies}" repopulateUsingHtml5LocalStorage="true"/>

       

      ...but it didn't work?

       

      Regards,

       

      Richard.