Re: [T5] Removing project name and port number from URL

2010-12-30 Thread niksami
Thanks, I'll try that. :) - Niksa Mijanovic Java developer, jr. www.fleka.me -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Removing-project-name-and-port-number-from-URL-tp3322312p3322495.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

[T5] Removing project name and port number from URL

2010-12-30 Thread niksami
Hi guys, I have the following problem. I'm developing application in Tapestry 5.1.0.5, and now when I deploy the app to the server I access it in this way: http://myApp.com:8080/myApp However, now I have to deploy it on the root domain name. So now I need to access home page of the application i

Re: XML requests

2010-11-17 Thread niksami
OK, I added JDOM to Maven, and when I tried this code I got following error: org.apache.tapestry5.ioc.internal.OperationException org.jdom.JDOMException: Error on line -1: Premature end of file. pointing to this line of code: Document xmlRequest = builder.build(inputStream); As I sad earlier I

Re: XML requests

2010-11-17 Thread niksami
Thanks, next time I'll ask Google before asking a dumb question :) - Niksa Mijanovic Java developer, jr. www.fleka.me -- View this message in context: http://tapestry.1045711.n5.nabble.com/XML-requests-tp3265672p3268918.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: XML requests

2010-11-17 Thread niksami
gt; return "text/xml"; > } > > public InputStream getStream() throws IOException { > return output; > } > > public void prepareResponse(Response response) { > } >

Re: XML requests

2010-11-17 Thread niksami
Thanks, but this is the simplest thing that worked for me (thanks to Thiago): Test page for submitting XML contains only form with textarea (with no Java code on the back): http://mypath/testXml";> Then on other page I have this (in the Java code of the page, the tml is empty

Re: setupRender not called for components

2010-11-17 Thread niksami
That's strange... Did you do everything else what component needs to work? TML code inside t:container, called into the page with t:yourComponentName etc? -- View this message in context: http://tapestry.1045711.n5.nabble.com/setupRender-not-called-for-components-tp3268695p3268748.html Sent from

Re: setupRender not called for components

2010-11-17 Thread niksami
Components can have only one setupRender(), for initalisation of variables, etc. Try to have only one setupRender(), and of course you don't have onActivate() inside the component. -- View this message in context: http://tapestry.1045711.n5.nabble.com/setupRender-not-called-for-components-tp3268

Re: Re: XML requests

2010-11-16 Thread niksami
Thank you. I'll try that, and then I'll inform you about success. Kind regards, Niksa -- View this message in context: http://tapestry.1045711.n5.nabble.com/XML-requests-tp3265672p3267210.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Re: XML requests

2010-11-16 Thread niksami
And parameter name should be? Name of textarea from which is sent XML POST request? -- View this message in context: http://tapestry.1045711.n5.nabble.com/XML-requests-tp3265672p3267201.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Re: XML requests

2010-11-16 Thread niksami
Ok... This is simplified situation... Another application needs to communicate with my Tapestry application (to get some data). That application will send XML to my page. On my page I will get that XML, add some data to it, and then return the XML back to that application. So my problem is how I

Re: Re: XML requests

2010-11-16 Thread niksami
Thank you again for your answer. But I don't understand you completely. Form with TextArea can be used to obtain XML from another page that is sent to my page with POST, or just to send POST? How can I access that XML that other page sent me? Do I need to use Request, and then access it from param

Re: Form field inputs automatically cleared when "success" reached!?

2010-11-16 Thread niksami
Mark fields used in form with @Persist("flash") annotation, so they won't be cleared if you catch some error during validation. These fields will be cleared after second reload of page, and that will supply your needs I think. If you need to stay on that page after the form is successfully submitt

Re: Re: XML requests

2010-11-16 Thread niksami
Thank you for your answers. Yes, I forgot about special signs, but also I found that activation context would not supply my needs (because that other app can not access my page with added arguments to URL). Yes, I need POST to receive XML and then GET to return the new XML back to that app. Text

Re: XML requests

2010-11-15 Thread niksami
; public TextStreamResponse onActivate() { > > String xml = getMyXMLFromSomeWhere > > return new TextStreamResponse("text/xml", xml); > > } > > > R. > > > > -Original Message- > From: niksami > Reply-to: "Tapestr

Re: XML requests

2010-11-15 Thread niksami
Thanks, I'll try this. -- View this message in context: http://tapestry.1045711.n5.nabble.com/XML-requests-tp3265672p3265787.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

XML requests

2010-11-15 Thread niksami
Hello everyone. In my application I need to receive XML requests, and then to send the response back to the client in XML format too. I tried to find some nice solution here, but with no success. I hope you can give me some short code examples. Best regards, Niksa -- View this message in contex