Looks like in your java code both datePickers reference 'startDateField'.
Try
   add(new DatePicker("endDatePicker", endDateField));
in the last line of your Java code.

Darek

On 8/18/05, Philip A. Chapman <[EMAIL PROTECTED]> wrote:
> 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
> 
> 
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to