What are you actually trying to accomplish here? In other words, why
do you need two distinct listeners instead of one listener called
"doSubmitAndLogin"?

        --- Pat

> -----Original Message-----
> From: Ananya Goswami [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 13, 2005 11:43 PM
> To: 'Tapestry users'
> Subject: Hi how to add multiple lsteners to a form???
> 
> Hi All,
> 
> I am using Tapestry 4
> And I need to implement 2 listeners for my form component in my Login Page
> I tried this way but it is not working:-
> 
> <form jwcid="[EMAIL PROTECTED]" delegate="ognl:delegate"
> listener="listener:onSubmit,doLogin">
> 
> and the code in my java file to load the cookie value in the text fields
> at
> the time of user login page load.
> Is the correct way to do???
> 
> public void doLogin(IRequestCycle cycle) {
>       String user_read_cookie =null;
>       user_read_cookie = cookieSource.readCookieValue("username_cookie");
>       cycle.setAttribute("username",user_read_cookie);
>     }
> 
> If this is not the right approach can u suggest a mechanism through which
> I
> can implement the mechanism.
> 
> Thanks,
> Ananya Goswami



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to