Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.1
-
None
-
3.01
-
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!