Do you use a jdk older than 1.4 SimpleDateFormat was introduced in 1.4+ Werner
Marco Mistroni wrote: > hello all, > i am having troubles with myfaces date tag... > i have recently downloaded the most recent binaries (today, 16 october) > > i am deploying on jboss 3.2.5, which uses tomcat 5.0, and in my lib > directory i am including followign files > > myfaces-api.jar > myfaces-impl.jar > sandbox.jar > tomahawk.jar > > this is my jsp page.. > > > <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> > <%@ taglib uri="http://java.sun.com/jsf/core > <http://java.sun.com/jsf/core>" prefix="f" %> > <%@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %> > <%@ taglib prefix="fmt" uri=" http://java.sun.com/jstl/fmt" %> > <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> > > > > <f:loadBundle basename="resources.MessageResources" var="msgs"/> > <f:view> > <h:form id="entryForm"> > <h:panelGrid columns="3"> > <h:outputLabel value="#{ msgs.date}" for="date"/> > <t:inputDate type="date" id="date" value="#{entryBean.entry.date}" > popupCalendar="true" required="true" /> > <h:message for="date"/> > > > > ..... > > > > When the page loads, the date tag (with calendar) gets messed up, and i > am receiving following javascript errors > > 'DateFormatSymbols' is undefined > > 'SimpleDateFormat' is undefined > > here's javascript generated.. > > <link rel="stylesheet" > href="/JSFApp/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11290861/WH/theme.css" > type="text/css" /> > <link rel="stylesheet" > href="/JSFApp/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11290861/DB/theme.css" > type="text/css" /> > <script > src="/JSFApp/faces/myFacesExtensionResource/prototype.PrototypeResourceLoader/11290861/prototype.js" > type="text/javascript"><!-- > > //--></script> > <script > src="/JSFApp/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11290861/date.js" > type="text/javascript"><!-- > > //--></script> > <script > src="/JSFApp/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11290861/popcalendar_init.js" > type="text/javascript"><!-- > > //--></script> > <script type="text/javascript"><!-- > jscalendarSetImageDirectory('/JSFApp/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11290861/DB/'); > //--></script> > <script type="text/javascript"><!-- > jscalendarMonthName = new > Array("January","February","March","April","May","June","July","August","September","October","November","December");jscalendarMonthName2 > = new > Array("January","February","March","April","May","June","July","August","September","October","November","December");jscalendarDayName > = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");jscalendarStartAt > = 0; > jscalendarDateFormatSymbols = new DateFormatSymbols(); > jscalendarDateFormatSymbols.weekdays = new > Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");jscalendarDateFormatSymbols.shortWeekdays > = new > Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");jscalendarDateFormatSymbols.shortMonths > = new > Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");jscalendarDateFormatSymbols.months > = new > Array("January","February","March","April","May","June","July","August","September","October","November","December");jscalendarDateFormatSymbols.eras > = new Array("BC","AD");jscalendarDateFormatSymbols.ampms = new > Array("AM","PM"); > //--></script> > <script > src="/JSFApp/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11290861/popcalendar.js" > type="text/javascript"><!-- > > //--></script></head><tbody><tr><td><label > for="entryForm:date">Date</label></td><td> > <span id="entryForm:date"><input id="entryForm: date.day" > name="entryForm:date.day" size="2" maxlength="2" value="16" /><select > id="entryForm:date.month" name="entryForm:date.month" size="1"> <option > value="1">January</option> <option value="2">February</option> <option > value="3">March</option> <option value="4">April</option> <option > value="5">May</option> <option value="6">June</option> <option > value="7">July</option> <option value="8">August</option> <option > value="9">September</option> <option value="10" > selected="selected">October</option> <option > value="11">November</option> <option > value="12">December</option></select><input id="entryForm: date.year" > name="entryForm:date.year" size="4" maxlength="4" value="2005" /><script > type="text/javascript"><!-- > loadPopupScript();jscalendarSetImageDirectory('/JSFApp/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11290861/DB/'); > > //--></script><script type="text/javascript"><!-- > jscalendarMonthName = new > Array("January","February","March","April","May","June","July","August","September","October","November","December");jscalendarMonthName2 > = new > Array("January","February","March","April","May","June","July","August","September","October","November","December");jscalendarDayName > = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");jscalendarStartAt > = 0; > jscalendarDateFormatSymbols = new DateFormatSymbols(); > jscalendarDateFormatSymbols.weekdays = new > Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");jscalendarDateFormatSymbols.shortWeekdays > = new > Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");jscalendarDateFormatSymbols.shortMonths > = new > Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");jscalendarDateFormatSymbols.months > = new > Array("January","February","March","April","May","June","July","August","September","October","November","December");jscalendarDateFormatSymbols.eras > = new Array("BC","AD");jscalendarDateFormatSymbols.ampms = new > Array("AM","PM"); > //--> > > </script> > > can anyone help me out pls? > > > > thanks in advance and regards > > marco > > > > > > > > > > > > > > >

