Re: Tapestry Testify with Tapestry 5.3

2011-09-02 Thread Steve Eynon
Hi Jerome, I've munky patched Testify myself to work with T5.3 - I can send you over the jar if you like? Steve. -- Steve Eynon On 3 September 2011 01:49, Jérôme BERNARD wrote: > Hi, > > I'm currently working on a new app and I'm wondering if there is any plan to > compatibility of Tapestry T

Re: outputting < > with outputRaw

2011-09-02 Thread Robert Zeigler
Default prefix for outputraw is "prop" (see http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html). Tapestry is trying to convert your string to a property expression. Solution: 1) surround your string with ' ' (so: value="' << '") or 2

Re: outputting < > with outputRaw

2011-09-02 Thread Ken in Nashua
Can someone help me resolve this markup... I went with the symbols but tap5 is not holding water. Thanks KEN Could not convert ' << ' into a component parameter binding: Error parsing property expression ' << ': Unable to parse input at character position 2.locationclasspath:org/tynamo/examp

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread Thiago H. de Paula Figueiredo
On Fri, 02 Sep 2011 21:25:20 -0300, hese <1024h...@gmail.com> wrote: DEBUG [http-8080-6] UrlAnalysis._$advised$onSubmit(122) What is this UrlAnalysis thing? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars M

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread hese
Hey Taha, there you are! Yes, it is getting called. The log message "Streaming back the results." is from within onSubmit. Also I debugged it and saw the method is being called. It works for you? Then i guess it is something to do with my env then..some jars not playing well together or som

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread Taha Hafeez
Hi I just copied your code and it works for me. I have tried it on 5.2.6. Are you sure your onSubmit action is getting called. Can you put a break point or simply a log message so see if it is getting called On Sat, Sep 3, 2011 at 4:04 AM, hese <1024h...@gmail.com> wrote: > > @Thiago - I am usin

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread hese
I upgraded to Tap 5.2.6 and now I see an interesting error message... Notice that just before the exception, I print the contents of the StreamResponse and it does print my test lines. Any idea? DEBUG [http-8080-6] UrlAnalysis._$advised$onSubmit(122) | Streaming back the results. DEBUG [http-80

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread hese
@Thiago - I am using Tapestry 5.1.0.5. @Martin - here is my code. This code works when called from onActivate() and returns the file. JAVA @Log StreamResponse onSuccess() { try { File tmpFile = File.createTempFile(urlFile.getFileName(), null); BufferedWriter br = new BufferedWrit

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread cqasker
That's pretty smart -- but yeah does seem hacky. I will await the responses from the gurus as I am curious myself. -- View this message in context: http://tapestry.1045711.n5.nabble.com/redirect-after-post-messes-with-my-StreamResponse-tp4763647p4764032.html Sent from the Tapestry - User mailing

Re: T5.3 Grid, inPlace Update and expired Sessions

2011-09-02 Thread Lenny Primak
Seems to me that this would be a common thing with any of the AJAX components. Should I open up a JIRA issue? On Fri, 02 Sep 2011 18:14:28 -0300, Lenny Primak wrote: > I figured that was a simple one. Should not have thought so. > all my questions are complicated, otherwise I would have not ask

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread Lenny Primak
I figured that was a simple one. Should not have thought so. all my questions are complicated, otherwise I would have not asked :) On Sep 2, 2011, at 5:11 PM, Thiago H. de Paula Figueiredo wrote: > On Fri, 02 Sep 2011 17:43:42 -0300, Lenny Primak > wrote: > >> Oh you are here Thiago! > > I'm

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread Thiago H. de Paula Figueiredo
On Fri, 02 Sep 2011 17:43:42 -0300, Lenny Primak wrote: Oh you are here Thiago! I'm always here, but I don't know the answers for all questions nor the time to investigate them. (I wish I had). How about my Grid/Sessino invalidation session question? I have no idea . . . -- Thiago H

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread Thiago H. de Paula Figueiredo
On Fri, 02 Sep 2011 18:03:25 -0300, hese <1024h...@gmail.com> wrote: (lol...looks like people are clamoring for you Thiago :) ) :P I dont mind having a separate page for streaming the csv, but i would like to know why my current onSuccess StreamResponse is not streaming back the file.

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread Martin Strand
I am doing something similar for a reporting form and it works as expected (in tap 5.2) 1. user fills out a few fields 2. user submits the form 3. onSuccess() returns a StreamResponse with a text file 4. a download dialog pops up in the browser Although I haven't looked closely into the matter,

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread hese
(lol...looks like people are clamoring for you Thiago :) ) I dont mind having a separate page for streaming the csv, but i would like to know why my current onSuccess StreamResponse is not streaming back the file. I checked if it is null or something by printing it out in my onSuccess method bef

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread Lenny Primak
Oh you are here Thiago! How about my Grid/Sessino invalidation session question? Thanks! - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread Thiago H. de Paula Figueiredo
On Fri, 02 Sep 2011 17:28:30 -0300, hese <1024h...@gmail.com> wrote: I worked around the problem like this: storing the name of the return file in a property (FLASH, so it stays just for a single refresh), and returning the contents of the file in onActivate, so when the page reloads the fi

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread hese
I worked around the problem like this: storing the name of the return file in a property (FLASH, so it stays just for a single refresh), and returning the contents of the file in onActivate, so when the page reloads the file will be streamed back. But this seems ugly :( Still looking for a solut

Re: redirect-after-post messes with my StreamResponse

2011-09-02 Thread hese
Please help tapestry gurus! Thiago? Taha?? Anyone? -- View this message in context: http://tapestry.1045711.n5.nabble.com/redirect-after-post-messes-with-my-StreamResponse-tp4763647p4763719.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

redirect-after-post messes with my StreamResponse

2011-09-02 Thread hese
I've started a new thread because my older post regarding this issue lead me to think on different lines, than my subject line and i didnt want to re-edit it and mess with all the following threads. (http://tapestry.1045711.n5.nabble.com/StreamResponse-onSuccess-does-not-stream-back-data-td4759347

Re: StreamResponse onSuccess does not stream back data

2011-09-02 Thread hese
Thanks, I see it now. Yeah, I think it is not my code, because i tried using the LinkSubmit control, exactly as you did and I am still getting the same 302 error. Ok, i'll try to debug my post headers. thanks for the responses! -- View this message in context: http://tapestry.1045711.n5.nab

Re: StreamResponse onSuccess does not stream back data

2011-09-02 Thread cqasker
Doh I guess my email program doesn't looks like it doesn't like this tag: --a t:id="link"--CSV--/a-- just replace the "--" with > and < as appropriate. -- View this message in context: http://tapestry.1045711.n5.nabble.com/StreamResponse-onSuccess-does-not-stream-back-data-tp4759347p47633

Re: StreamResponse onSuccess does not stream back data

2011-09-02 Thread cqasker
Sorry hese: The missing tml is just simply: CSV Yeah I don't think it's your code -- i just prefer annotations over convention. You could try something like https://addons.mozilla.org/en-US/firefox/addon/tamper-data/ for your browser you will be able to follow the each request/response -- p

Re: StreamResponse onSuccess does not stream back data

2011-09-02 Thread hese
I just see the string "CSV" within no link or anything else within it. The different in the java class between yours and mine is you've used @OnEvent and captured submit, and I've used onSuccess()...i tried changing it to your style, but still i get the 302 Moved Temporarily error. Not able to

Tapestry Testify with Tapestry 5.3

2011-09-02 Thread Jérôme BERNARD
Hi, I'm currently working on a new app and I'm wondering if there is any plan to compatibility of Tapestry Testify with Tapestry 5.3? Thanks, Jerome.

Re: StreamResponse and inPlace Grid question

2011-09-02 Thread cqasker
Sure (and thanks as usual Taha!) so I have a wrapper around a grid and the csv export. I simplified the code quite a bit so hopefully its easy to understand. page tml: in myGrid.tml Move along, nothing to see. in MyGrid.java @Compo

T5.3 Grid, inPlace Update and expired Sessions

2011-09-02 Thread Lenny Primak
Hi, I've looked all over the Internet for this, but nothing works. I have a basic Grid pulling data from an Entity bean. Obviously, when session expires, I get the "there is no data to display" message. What I really want to do is to redirect to the current page, so the user gets to relogin and

Re: Implications of putting Tapestry JARs into common ClassLoader

2011-09-02 Thread Jonathan Barker
http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd";> ca.itstrategic:loader=somethingunique< loader-repository-config>java2ParentDelegation=false This is obviously for an older JBoss, and this is the result of some searching and some experimentation, rather than a full understanding of the

Re: Implications of putting Tapestry JARs into common ClassLoader

2011-09-02 Thread Lenny Primak
Thanks, Jonathan, can you share your config file? Perhaps you can share your config file so I can get similar options up and running in Glassfish? Thanks On Sep 2, 2011, at 10:26 AM, Jonathan Barker wrote: > I'm no guru, but I do support multiple applications on a single JBoss > server, using co

Re: Implications of putting Tapestry JARs into common ClassLoader

2011-09-02 Thread Jonathan Barker
I'm no guru, but I do support multiple applications on a single JBoss server, using common libraries (some of them mine, and obviously Tapestry). I've had to hit JBoss over the head with configuration options in jboss-web.xml to stop if from doing exactly what you are trying to do. The problem I

Re: StreamResponse and inPlace Grid question

2011-09-02 Thread Taha Hafeez
Hi My guess is that you are updating some zone around the grid which causes the javascript id of grid's own zone to change after the first call and so ajax fails after that. If you share some code, may be we can suggest a solution. On Fri, Sep 2, 2011 at 2:48 AM, cqasker wrote: > Basically I ha

Re: AjaxFormLoop/AddRowLink + Client-Side Callback?

2011-09-02 Thread Jochen Berger
Michael, Am 01.09.2011 21:46, schrieb Michael Gentry: I have an AjaxFormLoop with an AddRowLink in it. I was wondering if anyone had an elegant way to do a client-side callback when a row is added? No, not an elegant one, I'm afraid. When I wanted a "callback" to be executed after the adding