Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 21603 invoked from network); 11 Sep 2006 01:58:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Sep 2006 01:58:24 -0000 Received: (qmail 51794 invoked by uid 500); 11 Sep 2006 01:58:18 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 51425 invoked by uid 500); 11 Sep 2006 01:58:17 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 51414 invoked by uid 99); 11 Sep 2006 01:58:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Sep 2006 18:58:17 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.48.170] (HELO web52407.mail.yahoo.com) (206.190.48.170) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 10 Sep 2006 18:58:16 -0700 Received: (qmail 53908 invoked by uid 60001); 11 Sep 2006 01:57:54 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MeOKjQfjnKDGjoUI592fqm5JB8oFkNcXb+j6gS/p8PFOtjIndUP0sHN5ZT4TY7qkjj1B7W48U1R/DOyWzjj9CmEcY2Lx+UOZdDC9/PbFq+gxoM5llA+Ht/8COP1dhFTMuHZLZ2H/VTML953pwurIl8pz6R/YW+x53+d84ZaolKw= ; Message-ID: <20060911015754.53906.qmail@web52407.mail.yahoo.com> Received: from [141.153.190.242] by web52407.mail.yahoo.com via HTTP; Sun, 10 Sep 2006 18:57:54 PDT Date: Sun, 10 Sep 2006 18:57:54 -0700 (PDT) From: Sherwin Wang Subject: Re: De-select sticky options doesn't work To: Struts Developers List Cc: Lan N Phan In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N FYI. --- Lan N Phan wrote: > http://www.mail-archive.com/dev@struts.apache.org/msg24522.html > > I found a work-around for this, but I don't know how > to post it up. Can > you please post it for me? > > Assume that the name of the checkboxes is > 'myCheckbox' > > What I do is: > - Do not reset the checkbox(es) in the reset() > method > - In the validate() method, retrieve the value of > 'myCheckbox' by > String[] userSelectedCheckboxes = > request.getParameterValues("myCheckbox"); > if (userSelectedCheckboxes == null) { > // we know that the user did not > select anything > // so we create ActionMessage here, > and reset the > checkboxes > } > It works for me. > > Lan Phan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org