You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Marco Mistroni <mm...@gmail.com> on 2005/10/16 16:36:56 UTC
problems wiht date extension tag
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" 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
Re: problems wiht date extension tag
Posted by Marco Mistroni <mm...@gmail.com>.
Hello,
i am getting little confused...
i have downloaded myfaces-examples-1.1.0 and all the date tags work
perfectly fine
i hten downloded one of the nightly build (dated 14/10/2005) and the date
tag was messed up..
am i correct in assuming that the libraries in myfacs-exmaples-1.1.0 are
old?
thanks and regards
marco
On 10/17/05, Martin Marinschek <ma...@gmail.com> wrote:
>
> Yes, sorry, there is currently a bug as the new date formatting does
> not seem to work in IE.
>
> We'll fix that as soon as possible.
>
> regards,
>
> Martin
>
> On 10/17/05, Marco Mistroni <mm...@gmail.com> wrote:
> > 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 <we...@gmx.at> wrote:
> > > Seems like a bug in the javascripts to me (sorry I did not notice that
> > > you were referring to javascripts 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* <werpu@gmx.at <mailto:werpu@gmx.at >>
> 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="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
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
> --
>
> http://www.irian.at
> Your JSF powerhouse -
> JSF Trainings in English and German
>
Re: problems wiht date extension tag
Posted by Martin Marinschek <ma...@gmail.com>.
Yes, sorry, there is currently a bug as the new date formatting does
not seem to work in IE.
We'll fix that as soon as possible.
regards,
Martin
On 10/17/05, Marco Mistroni <mm...@gmail.com> wrote:
> 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 <we...@gmx.at> wrote:
> > Seems like a bug in the javascripts to me (sorry I did not notice that
> > you were referring to javascripts 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* <werpu@gmx.at <mailto:werpu@gmx.at >> 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="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
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German
Re: problems wiht date extension tag
Posted by Marco Mistroni <mm...@gmail.com>.
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 <we...@gmx.at> wrote:
>
> Seems like a bug in the javascripts to me (sorry I did not notice that
> you were referring to javascripts 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* <werpu@gmx.at <ma...@gmx.at>> 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="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
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
>
Re: problems wiht date extension tag
Posted by Werner Punz <we...@gmx.at>.
Seems like a bug in the javascripts to me (sorry I did not notice that
you were referring to javascripts 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* <werpu@gmx.at <ma...@gmx.at>> 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="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
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>
Re: problems wiht date extension tag
Posted by Marco Mistroni <mm...@gmail.com>.
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 <we...@gmx.at> 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>" 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
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>
Re: problems wiht date extension tag
Posted by Werner Punz <we...@gmx.at>.
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
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>