[
http://www.stripesframework.org/jira/browse/STS-644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11688#action_11688
]
Ben Gunter commented on STS-644:
--------------------------------
I'd also like you test this against 1.5.1 to see if it behaves the same. What
you are describing sounds a lot like it involves a flashed ActionBean. The page
would display one way and then when you refresh it the flash scope is gone so
the display changes. This happens with messages.
> 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
> Fix For: Release 1.5.2
>
>
> 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
------------------------------------------------------------------------------
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development