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
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
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.
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
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
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
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
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
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
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,
10 matches
Mail list logo