myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Marinschek <martin.marinsc...@gmail.com>
Subject Re: Javascript problems with inputDate with calendar enabled
Date Wed, 21 Dec 2005 12:02:44 GMT
Right now, I am working on the calendar script - if you use a nightly
build of the last two days, you might run into problems.

regards,

Martin

On 12/21/05, Hans Sowa <hanssowa@gmail.com> wrote:
> Hi Luiz
>
> I'm not sure why you get this error message but you told us that you use
> myfaces-all.jar and tomahawk.jar but this should not be necessary because
> the tomahawk.jar is included in the myfaces-all.jar. I can remeber there was
> a old build where the tomahawk.jar was not included. Therefore I guess you
> use an old MyFaces version and maybe the jscalendarSetImageDirectory and so
> on is not defined there. Try to use a newer Version if it is possible for
> your projekt.
>
>  Hope this will help
>
> best regards Hans
>
> 2005/12/21, Luiz Carlos Geron <luizcarlos@sag.com.br>:
> > Hi All,
> > I'm using this tag on my jsp:
> > <t:inputDate id="date1" value="#{date1}" popupCalendar="true"/>
> > This is outputed by this tag:
> >
> > <link rel="stylesheet"
> >
> href="/sagweb/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11302665/WH/theme.css"
> > type="text/css" />
> > <link rel="stylesheet"
> >
> href="/sagweb/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11302665/DB/theme.css"
> > type="text/css" />
> > <script
> >
> src="/sagweb/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11302665/popcalendar_init.js"
> > type="text/javascript"><!--
> >
> > //--></script>
> > <script type="text/javascript"><!--
> >
> jscalendarSetImageDirectory('/sagweb/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11302665/DB/');
> > //--></script>
> > <script type="text/javascript"><!--
> > jscalendarMonthName = new
> >
> Array("Janeiro","Fevereiro","Mar\u00E7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro");jscalendarMonthName2
> > = new
> >
> Array("Janeiro","Fevereiro","Mar\u00E7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro");jscalendarDayName
> > = new
> Array("Seg","Ter","Qua","Qui","Sex","S\u00E1b","Dom");jscalendarStartAt
> > = 1;
> >
> > //--></script>
> > <script
> >
> src="/sagweb/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11302665/popcalendar.js"
> > type="text/javascript"><!--
> >
> > //--></script>
> >
> > I seems to be ok, but when the page loads I get these js errors:
> >
> > jscalendarSetImageDirectory is not defined
> > loadPopupScript is not defined
> >
> > And when I click on the "..." button to show the calendar, I get this
> error:
> >
> > jscalendarPopUpCalendarForInputDate is not defined
> >
> > I saw a page [1] on myfaces site saying that I need to use the extensions
> > filter, so I added these lines to my web.xml:
> >
> > <filter>
> >
> <filter-name>MyFacesExtensionsFilter</filter-name>
> >
> >
> <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter
> </filter-class>
> >     </filter>
> >     <filter-mapping>
> >
> <filter-name>MyFacesExtensionsFilter</filter-name>
> >         <url-pattern>*.faces</url-pattern>
> >     </filter-mapping>
> >
> > these are almost the same of the page, but I cutted off the part about
> > fileupload limit, since I don't need it (yes, I've tried with and without
> > it). I'm using myfaces-all and tomahawk.jar.
> > What may be the cause of this problem? What can I do to solve it?
> >
> > Thanks,
> > Luiz Carlos Geron
> >
> > [1]
> http://myfaces.apache.org/tomahawk/extensionsFilter.html
> >
>
>
>
>  --
> mfg Hans Sowa
> mailto:hanssowa@gmail.com


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message