I had the same problem the first time i tried using the component, so
I would have to agree that some sort of warning would be handy

On Nov 27, 2007 1:14 AM, Gerolf Seitz <[EMAIL PROTECTED]> wrote:
> hi matt,
>
> DateField is derived from FormComponentPanel and thus the markup should look
> something like this:
>
> <div wicket:id="dateField" class="text small"></div>
>
> maybe we should check that the associated tag is not an input tag, as this
> is a rather common pitfall,
> or rename DateField to DateFieldPanel, but it's most probably too late for
> that.
>
> Eelco, wdyt?
>
>   Gerolf
>
>
> On Nov 27, 2007 10:08 AM, mraible <[EMAIL PROTECTED]> wrote:
>
> >
> > Changing the HTML from:
> >
> > <input type="text" wicket:id="birthday" class="text small" size="11"/>
> >
> > To:
> >
> > <div wicket:id="birthday"/>
> >
> > Solved my problem.
> >
> > Unfortunately, there doesn't seem to be a way (from markup) to add my
> > class
> > classes (text small) to the input field rendered by this component.
> >
> > Matt
> >
> >
> > mraible wrote:
> > >
> > > For some reason, when using the new extensions.yui.calendar.DateField, I
> > > end up with two text fields on my page. I'm sure it's something I'm
> > doing
> > > wrong, but I can't see the solution at 2 a.m. (and I haven't even been
> > > drinking!). ;-)
> > >
> > > Java:
> > >
> > > add(new DateField("birthday"), new ResourceModel("user.birthday"));
> > >
> > > HTML:
> > >
> > > <tr>
> > >     <th><wicket:message
> > > key="user.birthday">Birthday</wicket:message>:</th>
> > >     <td>
> > >         <input type="text" wicket:id="birthday" class="text small"
> > > size="11"/>
> > >         [birthday feedback]
> > >     </td>
> > > </tr>
> > >
> > > The rendered markup has two input fields. Any ideas how to fix?
> > >
> > > <tr>
> > >     <th>Birthday:</th>
> > >     <td>
> > >         <input type="text" class="text small" size="11" name="birthday">
> > >
> > >     <input value="11/13/07" type="text" size="8" name="birthday:date"
> > > id="date3"/>
> > > &nbsp;
> > > resources/org.apache.wicket.extensions.yui.calendar.DatePicker/icon1.gif
> > >
> > > </input>
> > >
> > >
> > >
> > >     </td>
> > > </tr>
> > >
> > > I've attached a screenshot of what it looks like.
> > >
> > > Thanks,
> > >
> > > Matt
> > >
> > >  http://www.nabble.com/file/p13967061/twodatefields.png
> > >
> >
> > --
> > View this message in context:
> > http://www.nabble.com/DateField-renders-twice-in-1.3.0-rc1-tf4880492.html#a13967084
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > 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