[
https://issues.apache.org/jira/browse/WW-4666?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15395645#comment-15395645
]
Lukasz Lenart edited comment on WW-4666 at 7/27/16 2:04 PM:
------------------------------------------------------------
issue is fixed. after adding a value attribute to dropdown list. which was not
needed in older version.
not working version:
{code:xml}
<s:select list="#session.statusList"
id="updStatus_%{#stat.index}"
name="statList[%{#stat.index}].updStatus"
listKey="label" listValue="value"
headerKey="-1"
headerValue="--Select One--"/>
{code}
Fixed version of code:
{code:xml}
<s:select list="#session.statusList"
id="updStatus_%{#stat.index}"
name="statList[%{#stat.index}].updStatus"
listKey="label" listValue="value"
headerKey="-1"
headerValue="--Select One--"
value="%{updStatus}"/>
{code}
was (Author: shar_kumar):
issue is fixed. after adding a value attribute to dropdown list. which was not
needed in older version.
not working version:
<s:select list="#session.statusList"
id="updStatus_%{#stat.index}"
name="statList[%{#stat.index}].updStatus"
listKey="label" listValue="value"
headerKey="-1"
headerValue="--Select One--"/>
Fixed version of code:
<s:select list="#session.statusList"
id="updStatus_%{#stat.index}"
name="statList[%{#stat.index}].updStatus"
listKey="label" listValue="value"
headerKey="-1"
headerValue="--Select One--"
value="%{updStatus}"/>
> Values stored in a Set a object is not displayed using <s:iterator>
> -------------------------------------------------------------------
>
> Key: WW-4666
> URL: https://issues.apache.org/jira/browse/WW-4666
> Project: Struts 2
> Issue Type: Bug
> Components: Other
> Affects Versions: 2.3.29
> Environment: Windows operating system, Oracle Jdeveloper IDE,
> WebLogic, struts, jsp, Jquery
> Reporter: sharmila
> Priority: Critical
> Attachments: Pag1.JPG, Page2.JPG
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> This block used to display values when I had Struts2.3.16.3 version.
> After upgrading I am not able to display values. Please help me out. If I
> need to make any changes.
> <s:iterator value="sFY">
> <th><s:property /></th>
> </s:iterator>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)