Re: T5 Persistence Question

2009-07-09 Thread Jack Nuzbit
I recently struggled with the same issue and in the end implemented a cookie persist strategy similar to the one on the tapestry wiki. I've since concluded that cookie persist strategies are far from ideal. It would be great if tapestry could accommodate non-redirects on form errors so persistent

Re: T5 Persistence Question

2009-07-08 Thread Norman Franke
So let me be a little clearer: I don't want to run with SUPPRESS_REDIRECT_FROM_ACTION_REQUESTS = false, since that affects the entire application. There are definite benefits to the redirect model with bookmark-able URLs and proper operation of the browser's back button. However, it seems t

Re: T5 Persistence Question

2009-07-08 Thread Norman Franke
That did fix it, and seems to imply that the client strategy is rather useless in all but a very few cases. Is there some way to suppress redirect for a specific action? Norman Franke Answering Service for Directors, Inc. www.myasd.com On Jul 8, 2009, at 1:30 PM, Robert Zeigler wrote: I t

Re: T5 Persistence Question

2009-07-08 Thread Robert Zeigler
I think the previous reply to this post is correct: the form is correctly submitting w/ the various values stashed as hidden form fields. But on returning null from onSuccess, to re-render the current page, tapestry is sending a client redirect to the url for the page, and that url, of nec

Re: T5 Persistence Question

2009-07-08 Thread Norman Franke
How should the client strategy work? Am I misusing it from the onSuccess callback? Norman Franke Answering Service for Directors, Inc. www.myasd.com On Jul 7, 2009, at 7:09 PM, Norman Franke wrote: On my page, it isn't happening. It gets stuck in the URL. My "onSuccess()" method does some

Re: T5 Persistence Question

2009-07-08 Thread Martin Strand
Perhaps the form submission leads to an url without parameters: /yourpage.form.action but then results in a redirect to /yourpage?t:state=... where the state is visible? In T4, if you returned null from a listener it would render the current page. T5 redirects back to the current page before the

Re: T5 Persistence Question

2009-07-07 Thread Norman Franke
On my page, it isn't happening. It gets stuck in the URL. My "onSuccess()" method does some further checking, and then returns. I get a huge URL. Does this not work from onSuccess? Norman Franke Answering Service for Directors, Inc. www.myasd.com On Jul 7, 2009, at 6:59 PM, Robert Zeigler

Re: T5 Persistence Question

2009-07-07 Thread Robert Zeigler
I haven't looked closely, but my impression was that T5's @Persist("client") will encode the values to form fields when there's a form present. I'm pretty sure that's what's intended... Robert On Jul 7, 2009, at 7/75:50 PM , Norman W. Franke wrote: In the good old T4 days, I was able to pe

T5 Persistence Question

2009-07-07 Thread Norman W. Franke
In the good old T4 days, I was able to persist form data between submissions without using any session state since the values were persisted in the fields themselves. This was very efficient, particularly for very large forms (with several text areas containing 50K of data each.) As a furth