I want to use DatePicker to capture date from user. And would like to
make this field mandatory.
How do I do this?

-----Original Message-----
From: Nick Westgate [mailto:[EMAIL PROTECTED] 
Sent: Monday, 18 June 2007 4:01 p.m.
To: Tapestry users
Subject: Re: T3 binding issue for DatePicker

Hi Naz.

You're getting confused between DatePicker and DateField.

Cheers,
Nick.


Nazmul wrote:
> If I use the following code in my html and
> the page then get the following error:
> 
> Html template:
> 82 <tr>
> 83  <th><span jwcid="@FieldLabel"
> field="ognl:components.inputUserActiveDate">
> Active Date</span></th>
> 84  <th> Active Date</th>
> 85    <td><input jwcid="inputUserActiveDate" size="10" /></td>
> 86 </tr>
> 
> Page specification:
> 
> <component id="inputUserActiveDate" type="DatePicker">
> <static-binding name="displayName" value="Active Date" />
> <binding name="validator" expression="beans.required"/>
> <binding name="value" expression="user.usrActiveDate"/>
> </component>
> 
> Error from Tapestry:
> Display name not specified and not provided by 
> field UserMaint/inputUserActiveDate.
>  
> binding:
>  ExpressionBinding[UserMaint/inputUserActiveDate
> cachedValue=org.apache.tapestry.form.
> [EMAIL PROTECTED]/inputUserActiveDate]]
>  
> component:
>  org.apache.tapestry.valid.
> [EMAIL PROTECTED]/$FieldLabel$4]
>  
> location:
>  context:/WEB-INF/UserMaint.html, line 83
> 
> If I use the following code then I don't get any error
> and the UserMaint page displays ok but when I submit
> the form then get null for the nputUserActiveDate.
> It seems binding not done properly.
> 
> Html template:
> 
> <tr>
> <th> Active Date</th>
> <td><input jwcid="inputUserActiveDate" size="10" /></td>
> </tr>
> 
> Page specification:
> 
> <component id="inputUserActiveDate" type="DatePicker">
> <binding name="validator" expression="beans.required"/>
> <binding name="value" expression="user.usrActiveDate"/>
> </component>
> 
> Please help.
> 
> Naz
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to