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 5B58218326 for ; Mon, 30 Nov 2015 08:04:11 +0000 (UTC) Received: (qmail 66798 invoked by uid 500); 30 Nov 2015 08:04:11 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 66760 invoked by uid 500); 30 Nov 2015 08:04:11 -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 66748 invoked by uid 99); 30 Nov 2015 08:04:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2015 08:04:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 09F9D2C1F6B for ; Mon, 30 Nov 2015 08:04:11 +0000 (UTC) Date: Mon, 30 Nov 2015 08:04:11 +0000 (UTC) From: "Hudson (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4365) Problems with "optiontransferselect, attributes doubleHeaderKey and doubleHeaderValue" 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-4365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15031467#comment-15031467 ] Hudson commented on WW-4365: ---------------------------- SUCCESS: Integrated in Struts-JDK7-master #391 (See [https://builds.apache.org/job/Struts-JDK7-master/391/]) WW-4365 Fixes issue with evaluating doubleHeaderValue and (lukaszlenart: rev 30fd44f0efde6e34be6a749a9b8e60d34ed4c745) * core/src/main/resources/template/simple/doubleselect.ftl > Problems with "optiontransferselect, attributes doubleHeaderKey and doubleHeaderValue" > -------------------------------------------------------------------------------------- > > Key: WW-4365 > URL: https://issues.apache.org/jira/browse/WW-4365 > Project: Struts 2 > Issue Type: Bug > Affects Versions: 2.3.15.3 > Reporter: Fechner > Assignee: Lukasz Lenart > Fix For: 2.3.25, 2.5 > > Attachments: Muster_struts2_2.315_migration_without_libs.tgz > > > s:optiontransferselect: Can not remove initial doublelist entries if attributes "doubleHeaderKey" and "doubleHeaderValue" are used > Code example: > ============= > Action: > {code:java} > package de.dwd.prodkat.action; > import java.util.ArrayList; > import java.util.List; > import org.apache.log4j.Logger; > import com.opensymphony.xwork2.ActionSupport; > import de.dwd.prodkat.model.Keyword; > public class OptionTransferSelectAction extends ActionSupport{ > private static Logger log = Logger.getLogger("log." +OptionTransferSelectAction.class.getName()); > private static final long serialVersionUID = 1L; > private Keyword kw; > private List leftKwList= new ArrayList(); > private List rightKwList= new ArrayList(); > private List selectMetElement=new ArrayList(); > private List metElement=new ArrayList(); > > public OptionTransferSelectAction(){ > kw =new Keyword(); > kw.setId(1); > kw.setAnzeige("erster Wert"); > leftKwList.add(kw); > kw =new Keyword(); > kw.setId(2); > kw.setAnzeige("zweiter Wert"); > leftKwList.add(kw); > > kw =new Keyword(); > kw.setId(20); > kw.setAnzeige("Vorgabewert"); > rightKwList.add(kw); > } > > public Keyword getKw() { return kw; } > public void setKw(Keyword kw) { this.kw = kw; } > public List getLeftKwList() { return leftKwList; } > public void setLeftKwList(List leftKwList) { this.leftKwList = leftKwList; } > public List getRightKwList() { return rightKwList; } > public void setRightKwList(List rightKwList) { this.rightKwList = rightKwList; } > public List getSelectMetElement() { return selectMetElement; } > public void setSelectMetElement(List selectMetElement) { this.selectMetElement = selectMetElement; } > public List getMetElement() { return metElement; } > public void setMetElement(List metElement) { this.metElement = metElement; } > public String execute() { return SUCCESS; } > public String display() { return NONE; } > } > {code} > website (jsp): > ============== > Case 1: doubleHeaderKey&doubleHeaderValue > {code:html} > ... > > id="metElement" > label="Tranfer from List to List (ArrayList of Objekt)" > name="metElement" > leftTitle="vorgabe" > rightTitle="auswahl" > list="leftKwList" > listKey="id" > listValue="anzeige" > multiple="true" > headerKey="0" > headerValue="%{getText('select')}" > cssClass="input_text_mittel" > listCssClass="input_text_langExt" > doubleList="rightKwList" > doubleListKey="id" > doubleListValue="anzeige" > doubleName="selectMetElement" > doubleHeaderKey="0" > doubleHeaderValue="%{getText('select')}" > doubleCssClass="input_text_mittel" > doubleListCssClass="input_text_langExt" > /> > > > ... > {code} > Case 2: without doubleHeaderKey and doubleHeaderValue > {code:html} > ... > > id="metElement" > label="Tranfer from List to List (ArrayList of Objekt)" > name="metElement" > leftTitle="vorgabe" > rightTitle="auswahl" > list="leftKwList" > listKey="id" > listValue="anzeige" > multiple="true" > headerKey="0" > headerValue="%{getText('select')}" > cssClass="input_text_mittel" > listCssClass="input_text_langExt" > doubleList="rightKwList" > doubleListKey="id" > doubleListValue="anzeige" > doubleName="selectMetElement" > doubleCssClass="input_text_mittel" > doubleListCssClass="input_text_langExt" > /> > {code} > Problem: > Case1: can not remove initional doublelist entry "Vorgabewert" > Case2: can remove initional doublelist entry "Vorgabewert" -- This message was sent by Atlassian JIRA (v6.3.4#6332)