Everyone, I am using wicket 1.1-b2 and wicket-extensions 1.1-b2.
I have two text fields and two corresponding date pickers. Whenever
either of the date picker icons is clicked and a date chosen, the value
of the first date field is changed. The second date field is never
changed by the second calendar picker.
I have the following html code:
<table border="0" cellspacing="3">
<tr>
<th>Start Date</th>
<th>End Date</th>
</tr>
<tr>
<td>
<input type="text" wicket:id="startDateField" size="10" />
<span wicket:id="startDatePicker" />
</td>
<td>
<input type="text" wicket:id="endDateField" size="10" />
<span wicket:id="endDatePicker" />
</td>
</tr>
</table>
And the following java code:
add(dateRangeFeedback);
add(new CheckBox("dateRangeAll"));
final TextField startDateField = new TextField("startDateField");
add(startDateField);
add(new DatePicker("startDatePicker", startDateField));
final TextField endDateField = new TextField("endDateField");
add(endDateField);
add(new DatePicker("endDatePicker", startDateField));
Thanks,
--
Philip A. Chapman
Application Development:
Java, Visual Basic (MCP), PostgreSQL, MySQL, MSSQL
Linux, Windows 9x, Windows NT, Windows 2000, Windows XP
signature.asc
Description: OpenPGP digital signature
