Try using array notation (index inside square brackets, like [n]) if order is important. At some point that may have stopped being a requirement--I noticed that it wasn't strictly necessary, but I don't know if it was always like that, or if it was a change.
will zhang
Ranch Hand
Joined: Sep 11, 2008
Posts: 46
posted
0
David Newton wrote:Try using array notation (index inside square brackets, like [n]) if order is important. At some point that may have stopped being a requirement--I noticed that it wasn't strictly necessary, but I don't know if it was always like that, or if it was a change.
Thanks, Dave, I used
and it works for form tags, such as textfield, hidden.
However, it doesn't work for data tags(such as<s:property> tag) and ajax tags(such as <s:datetimepicker> tag).
You're improperly embedding OGNL escapes; you'd want %{segmentList[#stat.index]} or something like that (if you even need the #; depends on which S2 version you're using).
will zhang
Ranch Hand
Joined: Sep 11, 2008
Posts: 46
posted
0
David Newton wrote:You're improperly embedding OGNL escapes; you'd want %{segmentList[#stat.index]} or something like that (if you even need the #; depends on which S2 version you're using).
Thanks, Dave, I tried <s:property value="%{segmentList[#stat.index].comment}" /> and found it displays value well but couldn't pass value back to the segmentList.
I also tried <s:property value="segmentList[#stat.index].comment" />, it's the same with above.
segmentList[stat.index] doesn't work for me, even for the display.
jainitya jaiyswal
Greenhorn
Joined: Mar 28, 2011
Posts: 10
posted
0
Hi
I am also getting the same problem as
couldn't get value back from <s:iterator> after submitting the <s:form>
I have tried the code below
<s:iterator value="shopLog.selllogs" status="SellLogs">
<tr align="left" valign="top">