From issues-return-32726-archive-asf-public=cust-asf.ponee.io@struts.apache.org Thu Nov 29 07:56:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 7AED3180677 for ; Thu, 29 Nov 2018 07:56:05 +0100 (CET) Received: (qmail 560 invoked by uid 500); 29 Nov 2018 06:56:04 -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 550 invoked by uid 99); 29 Nov 2018 06:56:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2018 06:56:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 14823C1A84 for ; Thu, 29 Nov 2018 06:56:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id nPk0PKENnIZQ for ; Thu, 29 Nov 2018 06:56:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id C26D960D9A for ; Thu, 29 Nov 2018 06:56:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D47C8E25AA for ; Thu, 29 Nov 2018 06:56:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4BBB224DD5 for ; Thu, 29 Nov 2018 06:56:00 +0000 (UTC) Date: Thu, 29 Nov 2018 06:56:00 +0000 (UTC) From: "Muhammad Salman (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (WW-4987) Setting Struts2 options Css Class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4987?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1670278= 7#comment-16702787 ]=20 Muhammad Salman edited comment on WW-4987 at 11/29/18 6:55 AM: --------------------------------------------------------------- Hi [~aleksandr-m] I have tried your proposed solution, here is what I did: {code:xml} =09 =09=09" list=3D"%{value}" li= stKey=3D"templateId" listValue=3D"templateName" > =09 {code} Here is the output HTML Being generated by jsp :=20 {code:xml} =09=09=09=09=09=09=09 {code} I know that the {color:red}list=3D"%{value}" listKey=3D"templateId" listVal= ue=3D"templateName" {color} should not go as is in the tag but I= f I remove these values then how would struts taglib know that this particu= lar option would go into that particular Let me share with you my datastructure as well which I am using to populate= s:select which was working in struts 2.2.3: {code:xml}Map> map =3D new LinkedHashMap>();{code} Now I hope you can related this data-structure to my orignal def= ination. was (Author: mfsalmani678): Hi [~aleksandr-m] I have tried your proposed solution, here is what I did: {code:xml} =09=09=09=09=09=09=09 =09=09=09=09=09=09=09=09" li= st=3D"%{value}" listKey=3D"templateId" listValue=3D"templateName" > =09=09=09=09=09=09=09 =09=09=09=09=09=09 {code} Here is the output HTML Being generated by jsp :=20 {code:xml} =09=09=09=09=09=09=09 =09=09=09=09=09=09=09=09 =09=09=09=09=09=09=09 =09=09=09=09=09=09=09=09 =09=09=09=09=09=09=09 =09=09=09=09=09=09=09=09 =09=09=09=09=09=09=09 =09=09=09=09=09=09=09=09 =09=09=09=09=09=09=09 =09=09=09=09=09=09=09=09 =09=09=09=09=09=09=09 =09=09=09=09=09=09=09=09 {code} I know that the {color:red}list=3D"%{value}" listKey=3D"templateId" listVal= ue=3D"templateName" {color} should not go as is in the tag but I= f I remove these values then how would struts taglib know that this particu= lar option would go into that particular Let me share with you my datastructure as well which I am using to populate= s:select which was working in struts 2.2.3: {code:xml}Map> map =3D new LinkedHashMap>();{code} Now I hope you can related this data-structure to my orignal def= ination. > Setting Struts2 options Css Class > -------------------------------------------- > > Key: WW-4987 > URL: https://issues.apache.org/jira/browse/WW-4987 > Project: Struts 2 > Issue Type: Bug > Components: Core Tags > Affects Versions: 2.5.17 > Reporter: Muhammad Salman > Assignee: Aleksandr Mashchenko > Priority: Major > Fix For: 2.6, 2.5.19 > > > Hi > I am working on an application that is built on struts 2.5.17. I have {{<= s:select>}} tag with and