Re: XHR request to return a test/xml payload

2011-04-04 Thread Richard Hill
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

Re: XHR request to return a test/xml payload

2011-04-04 Thread David Uttley
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

Re: XHR request to return a test/xml payload

2011-04-04 Thread Thiago H. de Paula Figueiredo
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

Re: XHR request to return a test/xml payload

2011-04-03 Thread based2
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. -