Nothing is adding it, we add the DateTimeField itself to the target. Julian On Thu, Jul 21, 2011 at 12:08 PM, Igor Vaynberg <igor.vaynb...@gmail.com>wrote:
> what is adding that to the target? > > -igor > > On Thu, Jul 21, 2011 at 12:07 PM, Julian Sinai <jsi...@gmail.com> wrote: > > It is the hours component of the DateTimeField. From DateTimeField.html: > > > > <input type="text" wicket:id="hours" size="2" /> : > > > > Julian > > On Thu, Jul 21, 2011 at 11:24 AM, Igor Vaynberg <igor.vaynb...@gmail.com > > > > wrote: > >> > >> what is "hours" ? > >> > >> -igor > >> > >> On Thu, Jul 21, 2011 at 11:17 AM, Julian Sinai <jsi...@gmail.com> > wrote: > >> > Igor, > >> > We do update the DateTimeField itself, and this is what we see: > >> > SEVERE: cannot update component that does not have setOutputMarkupId > >> > property set to true. Component: [MarkupContainer [Component id = > >> > hours]] > >> > java.lang.IllegalArgumentException: cannot update component that does > >> > not > >> > have setOutputMarkupId property set to true. Component: > [MarkupContainer > >> > [Component id = hours]] > >> > at > >> > > >> > > org.apache.wicket.ajax.AjaxRequestTarget.addComponent(AjaxRequestTarget.java:346) > >> > > >> > Julian > >> > On Thu, Jul 21, 2011 at 11:02 AM, Igor Vaynberg > >> > <igor.vaynb...@gmail.com> > >> > wrote: > >> >> > >> >> cant update the DateTimeField itself? > >> >> > >> >> -igor > >> >> > >> >> On Thu, Jul 21, 2011 at 10:57 AM, Julian Sinai <jsi...@gmail.com> > >> >> wrote: > >> >> > We have a need to update a DateTimeField via Ajax, but its fields > are > >> >> > private, and they don't have setOutputMarkupId() set on them. The > >> >> > result > >> >> > is > >> >> > an exception upon Ajax update. Is there any solution other than > >> >> > cloning > >> >> > and > >> >> > owning DateTimeField? > >> >> > > >> >> > We are using Wicket 1.4.17 (and we can't upgrade to 1.5 just yet). > >> >> > > >> >> > Any help is appreciated. > >> >> > Julian > >> >> > > >> > > >> > > > > > >