Hello Werner,
 thanx.. i filed a bug on Jira
 
here's the title
 
Date tag does not display properly, _javascript_ errors are returned
 
the date is 17 oct 2005, 12:57
 
thanks and regards
 marco

 
On 10/16/05, Werner Punz <[EMAIL PROTECTED]> wrote:
Seems like a bug in the _javascript_s to me (sorry I did not notice that
you were referring to _javascript_s for the SimpleDateFormat),
best is to file a bug report on the jira
system so that it does not get lost and is fixed soon.


Werner

Marco Mistroni wrote:
> Hello Werner,
>   i am using 1.4.2_07, running on Jboss 3.2.5 which uses Tomcat 5.0
>
> i got this error only after downloading latest myfaces release..
> before i was using still the old URI
>
> http://myfaces.apache.org/extensions prefix="x"
>
> i got a myfaces-1.1.jar from some rick's hightower tutorials on JSF....
>
> when i found problem in validating the selectManyCheckbox, i went thru a
> post that discovered
> the bug (from Mr Hightower), so i decided to download the most recent code
>
> so the validation of selectManyCheckbox was solved,but i got problem
> with the date tag....
>
> how can i solve my problem?
> if i try with tomcat 5.5, will the problem go away?
>
> ..i got DateFormatSymbols  is undefined from _javascript_ in IE
>
> when i try to access same page with Firefox, i see calendar but it is
> displayed in an odd position in the page..
>
>
>
>
>
> On 10/16/05, *Werner Punz* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED] >> wrote:
>
>     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>
>     > < http://java.sun.com/jsf/core>" prefix="f" %>
>     > <%@ taglib prefix='c' uri='http://java.sun.com/jstl/core
>     <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="">>     >  <t:inputDate type="date" id="date" value="#{ entryBean.entry.date}"
>     > popupCalendar="true" required="true" />
>     >         <h:message for="">>     >
>     >
>     >
>     > .....
>     >
>     >
>     >
>     > 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="">>     > type="text/css" />
>     > <link rel="stylesheet"
>     >
>     href="">>
>     > type="text/css" />
>     > <script
>     >
>     src="">>     > type="text/_javascript_"><!--
>     >
>     > //--></script>
>     > <script
>     >
>     src="">>     > type="text/_javascript_"><!--
>     >
>     > //--></script>
>     > <script
>     >
>     src=""
>     > 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="">>
>     > type="text/_javascript_"><!--
>     >
>     > //--></script></head><tbody><tr><td><label
>     > for="">>     > <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
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>     >
>
>
>



Reply via email to