Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 35899 invoked from network); 4 May 2010 14:52:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 May 2010 14:52:08 -0000 Received: (qmail 7287 invoked by uid 500); 4 May 2010 14:52:05 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 7195 invoked by uid 500); 4 May 2010 14:52:05 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 7187 invoked by uid 99); 4 May 2010 14:52:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 14:52:05 +0000 X-ASF-Spam-Status: No, hits=-0.9 required=10.0 tests=AWL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dale@newfield.org designates 74.125.83.176 as permitted sender) Received: from [74.125.83.176] (HELO mail-pv0-f176.google.com) (74.125.83.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 May 2010 14:51:58 +0000 Received: by pvd12 with SMTP id 12so766756pvd.35 for ; Tue, 04 May 2010 07:51:37 -0700 (PDT) Received: by 10.114.33.26 with SMTP id g26mr10969120wag.216.1272984697301; Tue, 04 May 2010 07:51:37 -0700 (PDT) Received: from Dales-MacBook.local (adsl-068-209-053-125.sip.asm.bellsouth.net [68.209.53.125]) by mx.google.com with ESMTPS id 21sm4235703ywh.2.2010.05.04.07.51.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 04 May 2010 07:51:33 -0700 (PDT) Message-ID: <4BE03474.8040701@Newfield.org> Date: Tue, 04 May 2010 10:51:32 -0400 From: Dale Newfield User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Struts Users Mailing List CC: RogerV Subject: Re: Where is the documentation for Struts tags .... References: <28413026.post@talk.nabble.com> <4BDAF762.4060008@Newfield.org> <28432059.post@talk.nabble.com> <4BE02061.5000302@Newfield.org> <28447736.post@talk.nabble.com> In-Reply-To: <28447736.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 5/4/10 10:08 AM, RogerV wrote: >>> >> value="%{preselectedroles}"/> > > checked="checked"/> > > The rendering is a bit odd, which makes me feel I'm still missing > something. Due to the fact that there are three checkboxes with the right values and the right pre-selection, we know that the list attribute and the value attribute of the tag are working as desired. The name clearly isn't working. I've never used a checkboxlist, and I'm unclear as to how the values are aggregated on submission into the map you desire, but this brief documentation seems to jive with my understanding that "name" is usually just that--the name the input tag will use to submit the field to the server: "name false false String The name to set for element" So if it's looking for a string, let's make sure you're giving it one, and not the .toString of an empty map that it got from your prepare method: I must admit I don't understand what you expect this to submit, or how that should become a map -- there are only one set of values, not pairs...Even if you get this to render the html I'm guessing that you expect: I don't see how you'd get a map out of that. You could get a String[] easily, which would be the ROLE_ values that were checked... -Dale --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org