struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Huber <gregh3...@gmail.com>
Subject Re: [VOTE][FASTTRACK] Struts 2.3.29
Date Wed, 22 Jun 2016 09:10:48 GMT
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>

On 22 June 2016 at 10:00, Lukasz Lenart <lukaszlenart@apache.org> wrote:

> 2016-06-22 10:56 GMT+02:00 Greg Huber <gregh3269@gmail.com>:
> > If the style %{#entry.entryId} did not work it would completely break my
> > system?  Which is working OK.
>
> It's a case when you have a list and dynamically fetching elements
> from this list, i.e.:
>
> // given
> String[] list = new String[]{"foo", "bar};
> int index = 1;
>
> // when
> <s:someTag name="list[%{index}]" />
>
> // then
> <someTag name=list[1] value="bar"/>
>
>
> Regards
> --
> Ɓukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message