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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]