Re: DateTimeField and setOutputMarkupId()

2011-07-22 Thread Julian Sinai
Martin, thanks for your help. Igor's hint helped me. After some investigation I realized that I have a visitor in my button's submit handler that visits all form components and adds them to the ajax target. That meant it was visiting the inner fields of the DateTimeField, also, which was not necess

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Martin Grigorov
I don't see any problem. Put a break point in AjaxRequestTarget.addComponent() and see what is registered. If you see component with id "hours" then investigate the stacktrace. As last resort you can create a quickstart with plain Wicket components and if it still fails with this error send it to u

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
Hi Martin Thanks for looking at this. It's a bit complicated because we've built a form framework around Wicket, but here goes: In the page: HtFormPanel.DateFormField startField = new HtFormPanel.DateFormField("startField", new StringResourceModel("start", this, null), new PropertyModel(this, "

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Martin Grigorov
Show some code. On Thu, Jul 21, 2011 at 10:09 PM, Julian Sinai wrote: > Nothing is adding it, we add the DateTimeField itself to the target. > > Julian > On Thu, Jul 21, 2011 at 12:08 PM, Igor Vaynberg > wrote: > >> what is adding that to the target? >> >> -igor >> >> On Thu, Jul 21, 2011 at 12:

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
Nothing is adding it, we add the DateTimeField itself to the target. Julian On Thu, Jul 21, 2011 at 12:08 PM, Igor Vaynberg wrote: > what is adding that to the target? > > -igor > > On Thu, Jul 21, 2011 at 12:07 PM, Julian Sinai wrote: > > It is the hours component of the DateTimeField. From Dat

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Igor Vaynberg
what is adding that to the target? -igor On Thu, Jul 21, 2011 at 12:07 PM, Julian Sinai wrote: > It is the hours component of the DateTimeField. From DateTimeField.html: > >      : > > Julian > On Thu, Jul 21, 2011 at 11:24 AM, Igor Vaynberg > wrote: >> >> what is "hours" ? >> >> -igor >> >> On

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
It is the hours component of the DateTimeField. From DateTimeField.html:  : Julian On Thu, Jul 21, 2011 at 11:24 AM, Igor Vaynberg wrote: > what is "hours" ? > > -igor > > On Thu, Jul 21, 2011 at 11:17 AM, Julian Sinai wrote: > > Igor, > > We do update the DateTimeField itself, and this is

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Igor Vaynberg
what is "hours" ? -igor On Thu, Jul 21, 2011 at 11:17 AM, Julian Sinai 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 = hour

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
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 setO

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Igor Vaynberg
cant update the DateTimeField itself? -igor On Thu, Jul 21, 2011 at 10:57 AM, Julian Sinai 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 so

DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
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.