From issues-return-16534-apmail-struts-issues-archive=struts.apache.org@struts.apache.org Tue Oct 11 14:49:34 2011 Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0DFFD9BB3 for ; Tue, 11 Oct 2011 14:49:34 +0000 (UTC) Received: (qmail 27458 invoked by uid 500); 11 Oct 2011 14:49:33 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 27396 invoked by uid 500); 11 Oct 2011 14:49:33 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 27381 invoked by uid 99); 11 Oct 2011 14:49:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2011 14:49:33 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2011 14:49:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2077830347B for ; Tue, 11 Oct 2011 14:49:12 +0000 (UTC) Date: Tue, 11 Oct 2011 14:49:12 +0000 (UTC) From: "Miguel Diaz (Commented) (JIRA)" To: issues@struts.apache.org Message-ID: <2113505179.995.1318344552134.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (WW-2357) doubleEmptyOption, doubleHeaderKey and doubleHeaderValue ignored in doubleselect tag MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-2357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125082#comment-13125082 ] Miguel Diaz commented on WW-2357: --------------------------------- I fixed this locally in my proyect (that uses version 2.1.8.1 of Struts), by adding the following lines after line 88: <#if parameters.doubleHeaderKey?exists && parameters.doubleHeaderValue?exists> ${parameters.id}Group[${itemCount}][${doubleItemCount}] = new Option("${parameters.doubleHeaderValue}", "${parameters.doubleHeaderKey}"); <#assign doubleItemCount = doubleItemCount + 1/> <#if parameters.doubleEmptyOption?default(false)> ${parameters.id}Group[${itemCount}][${doubleItemCount}] = new Option("", ""); <#assign doubleItemCount = doubleItemCount + 1/> > doubleEmptyOption, doubleHeaderKey and doubleHeaderValue ignored in doubleselect tag > ------------------------------------------------------------------------------------ > > Key: WW-2357 > URL: https://issues.apache.org/jira/browse/WW-2357 > Project: Struts 2 > Issue Type: Bug > Affects Versions: 2.0.11 > Reporter: Marcello Teodori > Fix For: Future > > > In the doubleselect tag the doubleEmptyOption, doubleHeaderKey and doubleHeaderValue parameter are ignored, from what I can see in the code the doubleselect.ftl template does not reference these variables so I guess the functionality is missing. > It would be also useful to have two separated labels for the two selects with a parameter called for example doubleLabel. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira