Re: DateTimeField and setOutputMarkupId()

2011-07-22 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 us

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

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 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.

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

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 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

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Julian Sinai
It is the hours component of the DateTimeField. From DateTimeField.html: input type=text wicket:id=hours size=2 /nbsp;: Julian On Thu, Jul 21, 2011 at 11:24 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: what is hours ? -igor On Thu, Jul 21, 2011 at 11:17 AM, Julian Sinai

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 jsi...@gmail.com wrote: It is the hours component of the DateTimeField. From DateTimeField.html:     input type=text wicket:id=hours size=2 /nbsp;: Julian On Thu, Jul 21, 2011 at 11:24 AM, Igor Vaynberg

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 igor.vaynb...@gmail.comwrote: 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

Re: DateTimeField and setOutputMarkupId()

2011-07-21 Thread Martin Grigorov
Show some code. On Thu, Jul 21, 2011 at 10:09 PM, Julian Sinai jsi...@gmail.com 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 igor.vaynb...@gmail.comwrote: what is adding that to the target? -igor On

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 PropertyModelDate(this,