I have a scenario where .I have a login page with fields username, password , a checkbox for "remember username and password" and a submit button-"login". . when the user checks the checkbox and submits , his username and password has to be stored . when the user visits the login page a second time, he should see the username and password fields populated with the values that were entered earlier.
Please suggest a way of doing this......... Thanks & Regards ----------------------------- Ananya Goswami Software Developer ----------------------------- mail: [EMAIL PROTECTED] mob: 09886886320 ph: 080-57561000 extn:3720 -----Original Message----- From: Patrick Casey [mailto:[EMAIL PROTECTED] Sent: 14 September 2005 12:20 To: 'Tapestry users' Subject: RE: Hi how to add multiple lsteners to a form??? 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
