specifying a non-Tapestry form submission URL ?

2008-12-14 Thread Jean Luc
Hello,

Is it possible to specify an explicit URL as the action for a form
submission? What and why I need it:


   - I need a login form to post directly to j_spring_security_check
   (because I still see  problems integrating T5 and Spring Security 2.0.4, see
   below)
   - I cannot use a forward from the page's onSubmit() because SS somehow
   messes up URL resolution in a forward. If I hit
   /myApp/j_spring_security_check from a browser, the URL is valid. When I
   forward to /j_spring_security_check (also tried j_spring_security_check)
   from onSubmit(), it's not resolved. That's not a T5 issue most likely.

So what I'd like to do is to define Login.tml to have the submission target
to /j_spring_security_check, thus sending the POST directly to its final
destination.

I read
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.htmland
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Submit.html

but didn't see how. Also, I cannot use the approach suggested in
http://wiki.apache.org/tapestry/Tapestry5HowToUseForms for multiple forms,
since again it relies on a server-side forward from Tapestry to SS.

I've also tried to use t:form t:id=loginForm action=/somewherebut the
action attribute in the template was ignored and the real form still has
action=login.loginform

Any suggestions are highly appreciated.

Thanks,
JL


Re: specifying a non-Tapestry form submission URL ?

2008-12-14 Thread Ulrich Stärk
See here 
http://www.localhost.nu/svn/public/tapestry-spring-security-sample/src/main/webapp/LoginPage.tml for 
an example.


Cheers,

Uli

Jean Luc schrieb:

Hello,

Is it possible to specify an explicit URL as the action for a form
submission? What and why I need it:


   - I need a login form to post directly to j_spring_security_check
   (because I still see  problems integrating T5 and Spring Security 2.0.4, see
   below)
   - I cannot use a forward from the page's onSubmit() because SS somehow
   messes up URL resolution in a forward. If I hit
   /myApp/j_spring_security_check from a browser, the URL is valid. When I
   forward to /j_spring_security_check (also tried j_spring_security_check)
   from onSubmit(), it's not resolved. That's not a T5 issue most likely.

So what I'd like to do is to define Login.tml to have the submission target
to /j_spring_security_check, thus sending the POST directly to its final
destination.

I read
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.htmland
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Submit.html

but didn't see how. Also, I cannot use the approach suggested in
http://wiki.apache.org/tapestry/Tapestry5HowToUseForms for multiple forms,
since again it relies on a server-side forward from Tapestry to SS.

I've also tried to use t:form t:id=loginForm action=/somewherebut the
action attribute in the template was ignored and the real form still has
action=login.loginform

Any suggestions are highly appreciated.

Thanks,
JL




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