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 344A910481 for ; Fri, 21 Mar 2014 23:45:58 +0000 (UTC) Received: (qmail 34222 invoked by uid 500); 21 Mar 2014 23:45:47 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 34190 invoked by uid 500); 21 Mar 2014 23:45:46 -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 34167 invoked by uid 99); 21 Mar 2014 23:45:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2014 23:45:45 +0000 Date: Fri, 21 Mar 2014 23:45:45 +0000 (UTC) From: "Hudson (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4299) Components: "id" parameter is deleted 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-4299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13943730#comment-13943730 ] Hudson commented on WW-4299: ---------------------------- SUCCESS: Integrated in Struts-JDK6-features #37 (See [https://builds.apache.org/job/Struts-JDK6-features/37/]) https://issues.apache.org/jira/browse/WW-4299 - do not assign value to id parameter if tryId value is null this prevents overwriting a parameter with a name of id used with the component tag (phillips1021: rev cb9f0f5645d05b2f1c7c66640716acff61c4425f) * core/src/main/java/org/apache/struts2/components/UIBean.java > Components: "id" parameter is deleted > ------------------------------------- > > Key: WW-4299 > URL: https://issues.apache.org/jira/browse/WW-4299 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - Tags > Affects Versions: 2.3.16.1 > Reporter: Walid Ghafir > Assignee: Bruce Phillips > Fix For: 2.3.17 > > > When using tag, *parameter* named "id" is not accessible in component. That seems to be due to UIBean.populateComponentHtmlId() method which always overwrites it with value of *attribute* named "id", even if id attribute has not been specified. > For example, here is a call to a test JSP component: > {code} > > > > > {code} > If TestComponent.jsp, {{parameters.test}} will have value "testTestValue" and {{parameters.id}} will be null although it's expected to be "testIdValue". > I think that it's due to method {{populateComponentHtmlId(Form form)}} in {{org.apache.struts2.components.UIBean}} class that always does this, at the end of the method body: > {code} > addParameter("id", tryId); > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)