>
> a) it should check that it is attached to an input tag
> b) it should call setrenderbodyonly(true) on itself
this silently breaks the "api" (rather the usage), because you couldn't add
it to an AjaxRequestTarget anymore
>
> c) it should carry over any attributes from the panel tag to the inner
> input tag
>
correct me if i'm wrong: this is not possible since the the actual
DateTextField (and thus the inner input tag) is provided via a factory
method,
so we cannot make sure that users override the onComponentTag method to put
attributes from the DateField's tag to the DateTextField's tag.
not even considering the static factory methods on DateTextField...
Gerolf
> just my two cents
> all of these changes can be implemented now as well, since they do not
> break api
>
> well maybe at this point we should make (a) log a warning rather then
> error out and leave a todo for 1.4 to switch to error
>
> -igor
>
>
> On Nov 27, 2007 1:31 AM, Gerolf Seitz <[EMAIL PROTECTED] > wrote:
> > i will add a big fat notice to the class's javadoc.
> > it wouldn't hurt either to add more examples to wicket-examples...
> >
> > will do so later this day...
> >
> > Gerolf
> >
> >
> > On Nov 27, 2007 10:27 AM, Jason Anderson <[EMAIL PROTECTED]> wrote:
> >
> > > 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"/>
> > > > > >
> > > > > >
> > >
> 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]
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>