Hi,

 

I just got Tapestry 4.1 and I now whenever I use the DatePicker component
and click on the icon I get the following javascrip error in Firefox:

 

Error: document.Form has no properties

Source File: javascript:calendar_dp.toggle(document.Form.DatePicker);

 

IE6 shows this error:

 

'document.Form.DatePicker' is null or not an object

 

The javascript output seems to be in order:

 

              <input type="text" name="DatePicker" value="" title="dd MMM
yyyy" id="DatePicker "/>&nbsp;<a
href="javascript:calendar_dp.toggle(document.Form.DatePicker);"><img
src="/datetest/app?service=asset&amp;path=%2Forg%2Fapache%2Ftapestry%2Fform%
2FDatePickerIcon.png" alt="Click on icon to choose a date/time value."
border="0"/></a>

 

I even created a new application just to test that but I keep getting the
same error. The template code couldn't be simpler:

 

  <input jwcid="@DatePicker" value="ognl:date"/>

 

Any ideas on why this is happening?

 

 

 

One other thing. I also tried to use the DropDownDatePicker component but I
couldn't get it to work. Tapestry simply doesn't find it:

 

Component 'DropDownDatePicker' not found in [EMAIL PROTECTED]<application>].

 

I'm thinking maybe something's very different about it since it's a dojo
widget but I haven't been able to figure out how to use it. The docs don't
have much information about it (unless I overlooked something). Could anyone
point me in the right direction? 

 

Thanks,

Denis Souza

 

Reply via email to