problem with <t:inputCalendar>

I am trying to use the <t:inputcalendar > component of myFaces. I have put tomahawk.jar and commons-lang-2.0.jar in my WEB-INF/lib directory. The component appear in my jsp page but when I click on the button to open the calendar I get a javascript error saying "Object expected"

This is the content of my jsp file:

<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

<h:form styleClass="form" id="form1">

<t:inputCalendar id="secondOne" monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader"

currentDayCellClass="currentDayCell" value="#{pc_Bidon.madate}" renderAsPopup="true"/>

</h:form>

Then I put in my jsp file the following:

<SCRIPT LANGUAGE="JavaScript" SRC="popcalendar_init.js"></script>

<SCRIPT LANGUAGE="JavaScript" SRC="popcalendar.js"></script>

( I copied the two files from tomahawk.jar to my jsp file folder)

And after that I don't have the javascript error.

It seems as if my application cannot find all the ressources that are in the tomahawk.jar . No images are displayed and no javascript files are used.

Is there something to do to tell my application to search for the ressources ?

Thanks a lot for your help.

Didi

[1660 byte] By [_Didi_a] at [2007-10-2 6:41:34]
# 1

It works, i.e. the JSP Java code is able to find the JS if the url has no folders. Otherwise, it chokes and doesn't insert the "script" tags in the HTML. But if you grab the script lines from the HTML source when it works and stick it in the JSP file, then you won't have to pull JS files out of jar files etc.

Sanjoy

sanjoy.ghosha at 2007-7-16 13:49:45 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...