This is my first full day with wicket, so please bear with me.

I am trying to use the DateField to manage a java.util.Date. My problem is that the datafield outputs an extra textfield in my form. The picker does work and does set the date value for the 2nd textarea, but there is still the extra (first) textfield that does not serve a purpose.

I am using wicket 1.3.5 and wicket-datetime 1.3.5

I have included java snippet/template snippet and the what wicket generated.
Thanks, hope for good things to come.


DateField startDateField = new DateField("dateRange.startDate2");
form.add(startDateField);

                
<tr>
<td><wicket:message key="startDate">[start date]</wicket:message></ td><td>
                <input type="text" wicket:id="dateRange.startDate2"/>
        
</td>
</tr>


<tr>
<td><wicket:message key="startDate">[start date]</wicket:message></ td><td> <input type="text" wicket:id="dateRange.startDate2" name="dateRange.startDate2"><wicket:panel>
  <span style="white-space: nowrap;">
<input value="" type="text" wicket:id="date" size="8" name="dateRange.startDate2:date" id="date21"/>

<span class="yui-skin-sam">&nbsp;<span style="display:none;position:absolute;z-index: 99999;" id="date21Dp"></ span><img style="cursor: pointer; border: none;" id="date21Icon" src="resources/org.apache.wicket.extensions.yui.calendar.DatePicker/ icon1.gif" alt=""/></span>
  </span>
</wicket:panel></input>
        
</td>
</tr>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to