Hi, I am using Tapestry 4.0 and met the following problem when I try to
access my page containing the search control.
"Error converting value for parameter value: No type converter for type
java.util.Date is available."
SearchControl.jwc
------------------------
<component-specification>
<parameter name="successListener"/>
<parameter name="dateFrom"/>
<parameter name="dateTo"/>
<component id="form" type="Form">
<binding name="success" value="successListener"/>
<binding name="clientValidationEnabled" value="true"/>
</component>
<component id="dateFrom" type="DatePicker">
<binding name="value" value="dateFrom"/> <---------
problem highlighted
<binding name="translator"
value="translator:date,pattern=dd-MM-yyyy"/>
<binding name="displayName" value="'Date from'"/>
</component>
<component id="dateTo" type="DatePicker">
<binding name="value" value="dateTo"/>
<binding name="translator"
value="translator:date,pattern=dd-MM-yyyy"/>
<binding name="displayName" value="'Date to'"/>
</component>
</component-specification>
ViewHistory.java (Page)
----------------------
<span jwcid="@SearchControl"
successListener="listener:doSubmit"
dateFrom="dateFrom"
dateTo="dateTo" />
Is there anything I missed out?
Thanks in advance!
Stanly
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]