Return-Path: X-Original-To: apmail-struts-dev-archive@www.apache.org Delivered-To: apmail-struts-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 96D1E10DF0 for ; Wed, 31 Jul 2013 14:23:33 +0000 (UTC) Received: (qmail 80087 invoked by uid 500); 31 Jul 2013 14:23:32 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 79961 invoked by uid 500); 31 Jul 2013 14:23:26 -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 79952 invoked by uid 99); 31 Jul 2013 14:23:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 14:23:24 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of bphillips@ku.edu does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 14:23:18 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1V4XIm-0006TU-V8 for dev@struts.apache.org; Wed, 31 Jul 2013 07:22:56 -0700 Date: Wed, 31 Jul 2013 07:22:56 -0700 (PDT) From: "bphillips@ku.edu" To: dev@struts.apache.org Message-ID: <1375280576923-5713372.post@n5.nabble.com> Subject: Freemarker Template Issue For Select Tag When Multiple is True MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Please see: https://issues.apache.org/jira/browse/WW-4153 which I'm working on. I thought about modifying template/simple/select.ftl to: <#assign i = 1 > <#if parameters.multiple?default(false)> <#if (parameters.id?? && parameters.name??)> <#if (parameters.id?? && !parameters.name??)> <#if ( !parameters.id?? && parameters.name??)> <#if ( !parameters.id?? && !parameters.name??)> <#assign i = i + 1> <#if parameters.disabled?default(false)> disabled="disabled"<#rt/> /> But I think my solution will not work if the user has 2 or more select inputs with multiple="true" and no name and no id attribute specified. I think both would get a name value of __multiselect_1 Any suggestions would be appreciated for how to create a unique id and name value for the hidden input type when the user uses a select input type with multiple="true" and no name and no id attribute is specified. Bruce -- View this message in context: http://struts.1045723.n5.nabble.com/Freemarker-Template-Issue-For-Select-Tag-When-Multiple-is-True-tp5713372.html Sent from the Struts - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org