[jboss-user] [JBoss Seam] - s:selectDate slowing page rendering

koatto do-not-reply at jboss.com
Fri May 25 11:20:15 EDT 2007


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048710#4048710

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048710




More information about the jboss-user mailing list