Return-Path: Delivered-To: apmail-struts-issues-archive@locus.apache.org Received: (qmail 44885 invoked from network); 2 Jun 2008 13:26:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Jun 2008 13:26:32 -0000 Received: (qmail 22973 invoked by uid 500); 2 Jun 2008 13:26:33 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 22926 invoked by uid 500); 2 Jun 2008 13:26:32 -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 22913 invoked by uid 99); 2 Jun 2008 13:26:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 06:26:32 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jun 2008 13:25:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 377CF234C12E for ; Mon, 2 Jun 2008 06:26:07 -0700 (PDT) Message-ID: <2093232804.1212413167226.JavaMail.jira@brutus> Date: Mon, 2 Jun 2008 06:26:07 -0700 (PDT) From: "Mike Calmus (JIRA)" To: issues@struts.apache.org Subject: [jira] Updated: (WW-2480) Some OGNL expressions do not work with DateTimePicker component In-Reply-To: <18470757.1202770420937.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-2480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mike Calmus updated WW-2480: ---------------------------- Priority: Blocker (was: Major) > Some OGNL expressions do not work with DateTimePicker component > --------------------------------------------------------------- > > Key: WW-2480 > URL: https://issues.apache.org/struts/browse/WW-2480 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - Dojo Tags > Affects Versions: 2.0.11, 2.0.11.1, 2.0.12, 2.1.0, 2.1.1 > Reporter: Mike Calmus > Priority: Blocker > > Certain expressions do not parse when using the DateTimePicker tag. This same expression works fine with the textfield tag: > The following line throws a parse exception. > > whereas this works fine: > > The problem seems to be that the latter uses the standard UIBean evaluateParams() implementation whereas the former overrides it. This caused a problem with a third-party component as well. Based upon code usage, I believe this may affect other components as well. The following patch should fix both built-in as well as third-party modules: > Index: core/src/main/java/org/apache/struts2/components/UIBean.java > =================================================================== > --- core/src/main/java/org/apache/struts2/components/UIBean.java (revision 620628) > +++ core/src/main/java/org/apache/struts2/components/UIBean.java (working copy) > @@ -588,8 +588,6 @@ > addParameter("templateDir", getTemplateDir()); > addParameter("theme", getTheme()); > - String name = null; > - > if (this.key != null) { > if(this.name == null) { > @@ -603,8 +601,8 @@ > } > if (this.name != null) { > - name = findString(this.name); > - addParameter("name", name); > + this.name = findString(this.name); > + addParameter("name", this.name); > } > if (label != null) { -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.