Hi.

Is there a way to answer an ajax-response XML asked from a Wicket
application from another?
Let me explain, I have an ajax filled DropDownChoice just like the
example one [1], but it's filled from another webapp generating the
ajax-response XML with a JSP.
Now I need to emulate the ajax-response from another Wicket
application and I wanted to use Wicket instead of JSP. I made a Page
that answers the ajax-response XML. The Page works ok when it's
invoked pasting the URL in a browser. But, when the DropDownChoice
invokes the Page it's redirected to the wrong webapp.
In other words, I have a DropDownChoice in webapp A
(http://example.com/a/dropDownPage), a Page that answers an
ajax-response XML in webapp B (http://example.com/b/AjaxResponsePage,
pasting this URL in a browser works) and when /a/dropDownPage asks for
/b/AjaxResponsePage the browser it's redirected to /a/AjaxResponsePage
(note that it's redirected to /a and not /b) and fails.

Debuging I've found that WebRequestCycle.isRedirect() returns true
when WebRequest.isAjax() is true and that triggers a redirect to
AjaxResponsePage (a relative URL, so the browser is changing the base
URL, not Wicket).
Maybe I'm taking the wrong approach and there is a better way to do it
or there is a simple way to bypass this mechanism and make it work.

[1] http://goo.gl/H7jlG

Thanks!

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

Reply via email to