|
My mistake – ‘WicketAjaxPost’
was a typo. Making the change suggested suggested by Ayodeji ( /app/ -> /app/*
in web.xml fixed the problem. Thank you. From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg is that verbatim? i dont
see anywhere in our code "WicketAjaxPost" which should in fact be
"wicketAjaxPost". could you please attach the generated html and the
complete output of the debug console. On 3/16/06, I'm now using the latest source from the repository. That
doesn't appear to be the answer. After testing in FireFox and using the _javascript_ console
there I get the error message: "WicketAjaxPost is not defined". Thanks for the continuing help! From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Igor Vaynberg i think the problem is that you didnt call
checkbox.setOutputMarkupId(true) so its markup id never made it into the
markup. On
3/16/06, I'm getting a _javascript_ error: "Error: Object
expected" when clicking on a checkbox in a form. The server request is not
sent. The java code and rendered html are shown below. I note that
wicket adds a js script to the page and that the path for this doesn't exist. Any help would be greatly appreciated. Thank you. <script language="_javascript_"
type="text/_javascript_"
src=""> <td><input type="checkbox"
wicket:id="checkbox" checked="checked"
name="rows:4:checkbox" > final AjaxCheckBox checkBox = new
AjaxCheckBox("checkbox", new
PropertyModel(value,"Selected"))
{
public void onUpdate(AjaxRequestTarget target)
{
System.out.println("
value.setSelected( ! value.getSelected() );
target.addComponent(this);
}
};
listItem.add(checkBox); |
