Indexed properties fail to populate fields on page
--------------------------------------------------
Key: STS-644
URL: http://www.stripesframework.org/jira/browse/STS-644
Project: Stripes
Issue Type: Bug
Components: ActionBean Dispatching
Affects Versions: Release 1.5
Environment: Version 1.5 under JBoss 4.2.2 with newest JBoss native WS
installed and Java 6.0.11
Reporter: Arjan Seesing
Short description:
When using indexed properties on a map in an field, it only populates the
webpage once. It stops working after the first page load and will not populate
the webpage again.
Situation:
ActionBean with property.
Property has an Map<String, Object> property
and a List<String> of properties.
JSP:
<c:forEach items="${actionBean.field.properties}" var="property">
<tr>
<td>${property}:</td>
<td><stripes:text name="field.map[${property}]"/></td>
</tr>
</c:forEach>
In a seperate field on the page I enter a userId, this will make the actionBean
fetch the user and display its properties on the page. The first time I fetch
the user, it will populate the table in the webpage correctly. When I do a
clean refresh of the page and fetch the same (or another user) again the data
is correctly fetched and present in the Map but it will not populate the screen
anymore and all the text fields will stay empty.
Exactly the same happens when I use ' around the property in the stripes:text
tag. The page only starts working again when I change something on the page and
redeploy the application. (I was constantly switching between map[${property}]
and map['${property}']) which worked only once every time.
I now have a workaround which works but is not pretty:
<input type="text" name="field.map[${property}]"
value="${actionBean.field.map[property]}"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development