Hello Kirk, Wednesday, December 18, 2002, 7:01:25 PM, you wrote:
KR> --__--__-- KR> Message: 3 KR> Date: Tue, 17 Dec 2002 18:46:02 -0800 KR> From: "Kirk Rasmussen" <[EMAIL PROTECTED]> KR> To: <[EMAIL PROTECTED]> KR> Subject: [OS-webwork] Maintaining checkbox state in feedback loop KR> Reply-To: [EMAIL PROTECTED] KR> Hello everyone, KR> Please excuse this newbie question but I'm still coming up to speed on = KR> WW and I've run into a little problem with checkboxes. There wasn't an = KR> example in the distribution that I could find for the following = KR> situation. KR> On my form I have the following: KR> <form action=3D"<webwork:url page=3D"foo.action"/>" method=3D"POST"> KR> <ui:textfield label=3D"'Email'" name=3D"'email'" maxlength=3D"100"/> KR> <ui:textfield label=3D"'Confirm email'" name=3D"'confirmedEmail'" = maxlength=3D"100"/>> KR> <ui:checkbox label=3D"'Check here to receive newsletter'" = KR> name=3D"'newsletter'" fieldValue=3D"true"/> KR> </form> KR> On initial load I want the checkbox to default to checked. In my Action = KR> class I have: KR> protected boolean newsletter =3D true; KR> protected boolean promotions =3D true; KR> public boolean getNewsletter() KR> { KR> System.err.println( "getNewsletter()" ); KR> =20 KR> return newsletter; KR> } KR> =20 KR> public void setNewsletter( boolean checked ) KR> { KR> System.err.println( "setNewsletter()" ); KR> =20 KR> this.newsletter =3D checked; KR> } KR> This works fine on initial load (foo!default.action) but fails on the = KR> POST feedback loop (e.g. user enters invalid e-mail address) if I = KR> deselect the newsletter checkbox. The checkbox will stay checked = Hi ! Where can i found the JSR 168 ? I do not found how to download a PDF version. Thanks Joel ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork