If you want to make ajax requests from your own javascript, you can do
the following:
In MyPage.java put the following method (handler):
public StreamResponse onMyMethod() {
// Construct your xml string
String xml =
return new TextStreamResponse("text/xml", xml);
}
Then in your
Hi,
I do the following in the page code so that I don't have to manipulate urls,
you never know if the format could change;
@Inject
private ComponentResources resources;
public String getUrl() {
return resources.createEventLink("someEvent", 'some
context
On Sat, 02 Apr 2011 01:53:47 -0300, coriolisguy
wrote:
Hi All,
Hi!
I have an ajax request that needs to return a text/xml payload.
Return a StreamResponse (TextStreamResponse will probably be useful to you.
I need to dynamically make the URL string in the browser to send to the
serve
http://code.google.com/p/tapestry-addons/
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/XHR-request-to-return-a-test-xml-payload-tp4277254p4278996.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-