You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Martin Marinschek (JIRA)" <de...@myfaces.apache.org> on 2005/11/10 18:07:05 UTC

[jira] Closed: (MYFACES-711) Date tag does not display properly, javascript errors are returned

     [ http://issues.apache.org/jira/browse/MYFACES-711?page=all ]
     
Martin Marinschek closed MYFACES-711:
-------------------------------------

    Fix Version: Nightly
     Resolution: Fixed

Thanks for reporting that this is no longer a problem.

regards,

Martin

> Date tag does not display properly, javascript errors are returned
> ------------------------------------------------------------------
>
>          Key: MYFACES-711
>          URL: http://issues.apache.org/jira/browse/MYFACES-711
>      Project: MyFaces
>         Type: Bug
>  Environment: Windows XP.  Jboss 3.2 application server,  MyFaces release of 20051016
>     Reporter: Marco Mistroni
>     Assignee: Martin Marinschek
>     Priority: Minor
>      Fix For: Nightly

>
> I am currently trying to use the Date tag in my web application.
> I am using MyFaces, nightly build of 14 October 2005.
> When loading up the page, i receive following javascript error
> '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>
> and here's my JSP
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <%@ taglib uri="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"/> 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira