You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "James Holmes (JIRA)" <ji...@apache.org> on 2008/12/05 17:51:38 UTC

[jira] Updated: (WW-2811) ListUIBean does not strip %{} off listKey

     [ https://issues.apache.org/struts/browse/WW-2811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2811:
-----------------------------

            Flags: [Patch, Important]  (was: [Important])
    Fix Version/s: 2.1.3

> ListUIBean does not strip %{} off listKey
> -----------------------------------------
>
>                 Key: WW-2811
>                 URL: https://issues.apache.org/struts/browse/WW-2811
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.1.2
>            Reporter: Scott Stanlick
>            Priority: Minor
>             Fix For: 2.1.3
>
>         Attachments: ListUIBean.patch
>
>
> The ListUIBean method evaluateExtraParams() is stripping %{} off listValue but *not* listKey!  Therefore, the following was failing:
> <s:select list="departments" listKey="%{departmentId}" listValue="%{departmentName}"/>
> changing my code to this worked!
> <s:select list="departments" listKey="departmentId" listValue="%{departmentName}"/>
> This crazy hybrid-expression language is messy enough without landmines like this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.