>From the docs: https://struts.apache.org/docs/iterator.html
The id attribute is deprecated in Struts 2.1.x, and has been replaced by the var attribute. Which version are you upgrading from? On 22 June 2016 at 10:57, <dario.liber...@javelingroup.com> wrote: > Hi Greg, > > Providing a value explicitly is not typical, most would provide a name and > expect Apache Struts framework to retrieve the value. > Example illustrated here in the documentation: > https://struts.apache.org/docs/type-conversion.html#TypeConversion-AnadvancedexampleforindexedListsandMaps > > See FILE: MyBeanAction.jsp > > <s:iterator value="beanList" id="bean"> > <s:textfield name="beanList(%{bean.id}).name" /> > </s:iterator> > > > That is the same as in simpler cases: > https://struts.apache.org/docs/tag-syntax.html > > <s:textfield name="postalCode"/> > > ..."If there is a 'postalCode' property on the value stack, its value will > be set to the input field"... > > > Notice there is no value attribute provided to the tag in either case, the > tag just evaluates the name expression for you to retrieve the value. > > Thanks, > Dario. > > -----Original Message----- > From: Greg Huber [mailto:gregh3...@gmail.com] > Sent: 22 June 2016 10:44 > To: Struts Developers List <dev@struts.apache.org> > Subject: Re: [VOTE][FASTTRACK] Struts 2.3.29 > > ....for > > <s:hidden id="xxxx" name="eventList({#list.sequence}).id.eventCategory" > value="%{#list.id.eventCategory}" /> > > renders > > <input id="xxxx" type="hidden" value="myvalue" name=" > eventList(1).id.facilityCategory"> > > which is correct ie it has a 1 > > On 22 June 2016 at 10:21, <dario.liber...@javelingroup.com> wrote: > > > Hi Greg, > > > > Many thanks for the suggestion, we were going through that when we > > posted the comment on JIRA WWW-4641. > > The issue indeed only happens when the value is automatically > > extracted from the form rather than provided. > > But we have too many usages (over a thousand) of <s:tag > > name="....%{...}..." /> without a value attribute to be able to "fix" > > all of them with such a work-around in a reasonable time-frame. > > > > Regards, > > Dario. > > > > -----Original Message----- > > From: Lukasz Lenart [mailto:lukaszlen...@apache.org] > > Sent: 22 June 2016 10:15 > > To: Struts Developers List <dev@struts.apache.org> > > Subject: Re: [VOTE][FASTTRACK] Struts 2.3.29 > > > > 2016-06-22 11:10 GMT+02:00 Greg Huber <gregh3...@gmail.com>: > > > not really sure on your example, but this works, is this the same? > > > > > > <s:iterator var="list" value="eventList" status="rowstatus"> <s:set > > > var="sequence" value="#list.sequence" /> ..... > > > <s:textfield name="eventList(%{#sequence}).description" > > > value="%{#list.description}" maxlength="60" size="60" /> ..... > > > </s:iterator> > > > > WoW! I'm impressed :) > > > > Greg > > can you post your answer here as well > > https://issues.apache.org/jira/browse/WW-4641 > > > > Maybe that will solve Martin's issue :) > > > > > > Regards > > -- > > Ćukasz > > + 48 606 323 122 http://www.lenart.org.pl/ > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For > > additional commands, e-mail: dev-h...@struts.apache.org > > > > > > ________________________________ > > > > This message is for the designated recipient only and may contain > > privileged, proprietary, or otherwise private information. If you have > > received it in error, please notify the sender immediately and delete > > the original. Any other use of the email by you is prohibited. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For > > additional commands, e-mail: dev-h...@struts.apache.org > > > > > > ________________________________ > > This message is for the designated recipient only and may contain > privileged, proprietary, or otherwise private information. If you have > received it in error, please notify the sender immediately and delete the > original. Any other use of the email by you is prohibited. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org > For additional commands, e-mail: dev-h...@struts.apache.org > >