Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-6147

Webwork: Selected test in "selectmultiple.jsp" template fails with Long objects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 3.1.1
    • 3.1
    • None

    Description

      This issue materialises as JRA-6080 - where the selected component is lost once the search request is viewwed.

      The selectmultiple.jsp "is selected" test fails if the iterator is working with Long objects. As the current jsp is written, the iterator requires strings in order for the equality test to succeed.

      This occurred afterthe upgrade with the webwork jar.

      There are three alternatives:

      1. Ensure strings are always passed into this iterator.
      2. Set the parameter value in a webwork property and then test against that value - e.g.:

      <webwork:property value="

      {parameters['listKey']}

      " >
      <option value="<webwork:property value="."/>"<webwork:if test="parameters['nameValue']"><webwork:iterator value="parameters['nameValue']"><webwork:if test=". == .."> SELECTED</webwork:if></webwork:iterator></webwork:if>>
      </webwork:property>

      3. Check what changed with webwork!

      Attachments

        Activity

          People

            keith@atlassian.com Keith Brophy
            keith@atlassian.com Keith Brophy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: