Hello list

I have a very strange problem. I have some Ajax buttons on a webpage. They switch between list and detail view and start the edit mode. All of them are replacing a form tag on the page.

When clicking on them in the wrong sequence, I get this error in the Wicket Ajax Debug Window:

> ERROR: Wicket.Ajax.Call.failure: Error while parsing response:
> Could not find root <ajax-response> element

And when looking at a few lines above, right after this one:

> INFO: Received ajax response (11438 characters)

I first get some HTML tags and then in the middle of the response I get the <ajax-response> tag:

> INFO:
> <span id="detail70">
>
> ...some snipped HTML tags...
>
> </span><?xml version="1.0" encoding="UTF-8"?><ajax-response>
> <header-contribution encoding="wicket1" ><![CDATA[<head
> xmlns:wicket="http://wicket.apache.org";>
>
> ...well formatted ajax response...
>
> </component></ajax-response>

Which means, I get the ajax-response as expected, but there is some text right in front of it, breaking the frontend-script which tries to parse the result.

I switched to the latest version of Wicket (1.4.10) but I still have the problem. And only when clicking in the wrong order. Normally everything works.

Now I am not expecting anybody having the answer to this, but probably there is somebody out there who can point me into the right direction? I guess I need to find out what is pushing that content in the front of the ajax-response. But I have no idea where I should look at. Any ideas?

Thanks!

Cheers,
Adrian

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

Reply via email to