You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Lance Arlaus <la...@codeberet.com> on 2005/10/21 19:45:14 UTC
Submitting to a companion form on another page
I'm faced with a typical problem that I'm trying to solve in Tapestry.
I have two pages, Home and Login, both of which contain fields for entering
login information.
I'd simply like to process the submission of credentials on the home page as
if they'd been directly submitted via the login page.
Is it possible to either:
(1) generate the appropriate action on the form to have the client directly
submit to the login page; or
(2) activate the login page from the home page as if it had been directly
submitted (invoking validation and the appropriate listener method)
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: Submitting to a companion form on another page
Posted by Lance Arlaus <la...@codeberet.com>.
True, but what I really need is for the Login form to render with any
validation errors.
Think Yahoo login from their home page where credentials are directly
submitted to the login page.
Ideas?
-----Original Message-----
From: Darío Vasconcelos [mailto:dario.vasconcelos@gmail.com]
Sent: Friday, October 21, 2005 3:38 PM
To: Tapestry users
Subject: Re: Submitting to a companion form on another page
My guess is that the best approach is to have a login method or bean
that does all the hard work and simply calling it from both the Home
and Login pages...
On 10/21/05, Lance Arlaus <la...@codeberet.com> wrote:
> I'm faced with a typical problem that I'm trying to solve in Tapestry.
> I have two pages, Home and Login, both of which contain fields for
entering
> login information.
> I'd simply like to process the submission of credentials on the home page
as
> if they'd been directly submitted via the login page.
> Is it possible to either:
> (1) generate the appropriate action on the form to have the client
directly
> submit to the login page; or
> (2) activate the login page from the home page as if it had been directly
> submitted (invoking validation and the appropriate listener method)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
--
An expert is a person who has made all the mistakes that can be made
in a very narrow field.
Niels Bohr
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Submitting to a companion form on another page
Posted by Darío Vasconcelos <da...@gmail.com>.
My guess is that the best approach is to have a login method or bean
that does all the hard work and simply calling it from both the Home
and Login pages...
On 10/21/05, Lance Arlaus <la...@codeberet.com> wrote:
> I'm faced with a typical problem that I'm trying to solve in Tapestry.
> I have two pages, Home and Login, both of which contain fields for entering
> login information.
> I'd simply like to process the submission of credentials on the home page as
> if they'd been directly submitted via the login page.
> Is it possible to either:
> (1) generate the appropriate action on the form to have the client directly
> submit to the login page; or
> (2) activate the login page from the home page as if it had been directly
> submitted (invoking validation and the appropriate listener method)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
--
An expert is a person who has made all the mistakes that can be made
in a very narrow field.
Niels Bohr
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Submitting to a companion form on another page
Posted by Ron Piterman <rp...@gmx.net>.
Hi,
I would guess the workflow should be something like-
HomePage -> user logs in ->
Error ?
-> yes -> error page -> login page -> back to "Error ?"
-> no -> HomePage
Login page -> the same but if no error go to some specific page.
I Think the simplest is to implement 2 component, both using the same
class, with different templates. If you are using annotations the .jwc
might be also very small, so the duplicate work can be limited to
different templates, which you have to do anyhow...
you can pass the target page to your component as a parameter.
Hope that helps,
Ron
ציטוט Lance Arlaus:
> I'm faced with a typical problem that I'm trying to solve in Tapestry.
> I have two pages, Home and Login, both of which contain fields for entering
> login information.
> I'd simply like to process the submission of credentials on the home page as
> if they'd been directly submitted via the login page.
> Is it possible to either:
> (1) generate the appropriate action on the form to have the client directly
> submit to the login page; or
> (2) activate the login page from the home page as if it had been directly
> submitted (invoking validation and the appropriate listener method)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org