[JBoss Seam] - Error javascript in <s:selectDate>
by rengar
-I use <s:selectDate> :
| <h:inputText id="diaLlegada" value="#{lstEstablecimientos.diaLlegada}" required="true">
| <s:convertDateTime pattern="dd/MM/yyyy"/>
| </h:inputText>
| <s:selectDate for="diaLlegada">
| <h:graphicImage url="img/dtpick.gif" style="margin-left:5px"/>
| </s:selectDate>
|
-And obtain this javascript error:
| __selectDate is not defined
|
-In html code:
| <input id="lstEstablecimientos:diaLlegada" name="lstEstablecimientos:diaLlegada" type="text" value="" />
| <script type="text/javascript"><!--
|
| var CAL_DAYS_SHORT = 'do,lu,ma,mi,ju,vi,sá';
| var CAL_DAYS_MEDIUM = 'dom,lun,mar,mié,jue,vie,sáb';
| var CAL_DAYS_LONG = 'domingo,lunes,martes,miércoles,jueves,viernes,sábado';
| var CAL_MONTHS_MEDIUM = 'ene,feb,mar,abr,may,jun,jul,ago,sep,oct,nov,dic';
| var CAL_MONTHS_LONG = 'enero,febrero,marzo,abril,mayo,junio,julio,agosto,septiembre,octubre,noviembre,diciembre';
| var CAL_FIRST_DAY_OF_WEEK = 1;
| var CAL_DATE_FORMAT = 'MM/dd/yyyy';
| //--></script><script type="text/javascript" src="/reservas/seam/resource/web/date/calendar.js"><!--
|
| //--></script><span onclick="__selectDate('lstEstablecimientos:diaLlegada', 'lstEstablecimientos:diaLlegada');">
| <img src="img/dtpick.gif" style="margin-left:5px" /></span>
|
-The javascript file src="/reservas/seam/resource/web/date/calendar.js" isn't accesible in web context.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024142#4024142
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024142
17Â years, 10Â months