Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2811

ListUIBean does not strip %{} off listKey

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.2
    • 2.1.3
    • Expression Language
    • None
    • Patch, Important

    Description

      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.

      Attachments

        1. ListUIBean.patch
          0.7 kB
          Gabriel Belingueres

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stanlick Scott Stanlick
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: