This should just work.
Not sure why it breaks for you.
Create a quickstart app and attach it to a ticket.

On Mon, May 7, 2012 at 3:53 PM, Mihai Toma <[email protected]> wrote:
> Forgot to say wicket 1.5.5.
>
> Mihai
>
> -----Original Message-----
> From: Mihai Toma [mailto:[email protected]]
> Sent: Monday, May 07, 2012 3:47 PM
> To: [email protected]
> Subject: refresh page from an AjaxLink or OnChangeAjaxBehavior
>
> Hi,
>
>
>
> I have an OnChangeAjaxBehavior on a DropDownChoice component.
>
>
>
> After I change a value in that drop down I want to reload the page using
> setResponse(currentPage.getClass(), currentPage.getPageParameters());
>
>
>
> themeComp.add(new OnChangeAjaxBehavior() {
>
>                                                private static final long
> serialVersionUID = -1973825163343103968L;
>
>
>
>                                                @Override
>
>                                                protected void
> onUpdate(final AjaxRequestTarget arg0) {
>
>
> setAValueInSession();
>
> setResponse(currentPage.getClass(), currentPage.getPageParameters());
>
>                                                }
>
>                                });
>
>
>
> The response from ajax debug is "ERROR: Wicket.Ajax.Call.failure: Error
> while parsing response: Could not find root <ajax-response> element". I
> receive the content from ajax but it is not between <ajax-response> element.
>
>
>
> I verify this problem on AjaxLink and the response is the same as from
> OnChangeAjaxBehavior.
>
>
>
> Do you have any idea how to reload the page from an AjaxLink or
> OnChangeAjaxBehavior ?
>
>
>
> Thanks,
>
> Mihai
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to