1 Reply Latest reply on May 28, 2007 2:34 PM by gavin.king

    s:selectDate slowing page rendering

    koatto

      I have a page with several date fields and pickers.
      The pages loads slowly and blocks a little on every picker. Removing all the s:selectDate everything comes out immediately.
      Looking at the generated html i've noticed that for every picker stuff like this is repeated :

      //<![CDATA[
      var CAL_DAYS_SHORT = 'do,lu,ma,me,gi,ve,sa';
      var CAL_DAYS_MEDIUM = 'dom,lun,mar,mer,gio,ven,sab';
      var CAL_DAYS_LONG = 'domenica,lunedì,martedì,mercoledì,giovedì,venerdì,sabato';
      var CAL_MONTHS_MEDIUM = 'gen,feb,mar,apr,mag,giu,lug,ago,set,ott,nov,dic';
      var CAL_MONTHS_LONG = 'gennaio,febbraio,marzo,aprile,maggio,giugno,luglio,agosto,settembre,ottobre,novembre,dicembre';
      var CAL_FIRST_DAY_OF_WEEK = 1;
      var CAL_DATE_FORMAT = 'MM/dd/yyyy';
      //
      //]]>
      
      </script><script type="text/javascript"
       src="/MK/seam/resource/web/date/calendar.js">//<![CDATA[
      //
      //]]>


      This could of course cause slowness. Any way to avoid that repetition?
      Any other possible issue, i'm using seam 1.2.1?

      Thanks.