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 EA9F311019 for ; Fri, 27 Jun 2014 05:50:24 +0000 (UTC) Received: (qmail 61054 invoked by uid 500); 27 Jun 2014 05:50:24 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 61014 invoked by uid 500); 27 Jun 2014 05:50:24 -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 61002 invoked by uid 99); 27 Jun 2014 05:50:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jun 2014 05:50:24 +0000 Date: Fri, 27 Jun 2014 05:50:24 +0000 (UTC) From: "Lukasz Lenart (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (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:all-tabpanel ] Lukasz Lenart updated WW-4365: ------------------------------ Fix Version/s: 2.3.18 > 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 > Fix For: 2.3.18 > > > 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.2#6252)