Re: Is it possible to perform form submit after being redirected via a loginform?

2011-09-10 Thread Joakim Olsson
I'm still struggling with this. I tried to extract all request
parameters and then re-add them back as parameters to the Link I
return back from a successful login but they disappear somewhere
before I get to the actual form post. I can see that the request is a
POST but the t:formdata is missing (along with any other parameters).

I have tried to trace through the request handling but I can't really
see where the parameters are dropped.

I'll go for the next best thing for the moment and at least get the
user back to the correct page but with some lost data.

Regards,
Joakim


On Tue, Sep 6, 2011 at 6:46 AM, Joakim Olsson joa...@unbound.se wrote:
 You got it right. Then I would have to save all request parameters and
 re-populate the form when the user gets back to the page.

 My problem-case is when the session has terminated due to inactivity
 and then the bean in the session is lost as well. Maybe it's not
 possible in that case.

 Thanks,
 Joakim


 On Tue, Sep 6, 2011 at 1:17 AM, nillehammer
 tapestry.nilleham...@winfonet.eu wrote:
 Did I get it right? The user enters data into a form and submits. If he were
 logged in, you would forward to success page. But not being logged in you
 would like to do a round trip via login page and after sucessfull login
 forward to success page?

 You could store the values entered by the user in the bean that is bound to
 the form in the session. After sucessfull login you could forward to the
 form-page again. Not a full solution, but at least the user would not have
 to enter data again.

 -
 http://www.winfonet.eu
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Is-it-possible-to-perform-form-submit-after-being-redirected-via-a-loginform-tp4771930p4772413.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Is it possible to perform form submit after being redirected via a loginform?

2011-09-05 Thread Joakim Olsson
Hi,

I have a ComponentRequestFilter for handling access to pages in my
application and if the user is not logged in I store the requested
page (actually I store PageRenderRequestParameters or
ComponentEventRequestParameters) in ApplicationStateManager and send
the user to the requested page after successful login.

This works fine for page requests but form submits breaks with a
Forms require that the request method be POST and that the t:formdata
query parameter have values..

Does anyone have a solution for keeping the form parameters and making
sure that the request is a POST?

Regards,
Joakim

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Is it possible to perform form submit after being redirected via a loginform?

2011-09-05 Thread nillehammer
Did I get it right? The user enters data into a form and submits. If he were
logged in, you would forward to success page. But not being logged in you
would like to do a round trip via login page and after sucessfull login
forward to success page?

You could store the values entered by the user in the bean that is bound to
the form in the session. After sucessfull login you could forward to the
form-page again. Not a full solution, but at least the user would not have
to enter data again.

-
http://www.winfonet.eu
--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Is-it-possible-to-perform-form-submit-after-being-redirected-via-a-loginform-tp4771930p4772413.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Is it possible to perform form submit after being redirected via a loginform?

2011-09-05 Thread Joakim Olsson
You got it right. Then I would have to save all request parameters and
re-populate the form when the user gets back to the page.

My problem-case is when the session has terminated due to inactivity
and then the bean in the session is lost as well. Maybe it's not
possible in that case.

Thanks,
Joakim


On Tue, Sep 6, 2011 at 1:17 AM, nillehammer
tapestry.nilleham...@winfonet.eu wrote:
 Did I get it right? The user enters data into a form and submits. If he were
 logged in, you would forward to success page. But not being logged in you
 would like to do a round trip via login page and after sucessfull login
 forward to success page?

 You could store the values entered by the user in the bean that is bound to
 the form in the session. After sucessfull login you could forward to the
 form-page again. Not a full solution, but at least the user would not have
 to enter data again.

 -
 http://www.winfonet.eu
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/Is-it-possible-to-perform-form-submit-after-being-redirected-via-a-loginform-tp4771930p4772413.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org