On Thursday 11 December 2008 23:26:02 Musachy Barroso wrote: > The problem with your suggestion is that it works for simple, and > specific cases, but given OGNL "power", there is a large way of cases > when it would break. Like > > <s:push value="foo"> > <s:iterator value="bars[#action.index - 1 * Math.PI]"> > <s:textfield name="baz" /> > </s:iterator> > </s:push> > > what would the name be in that case?
That's a more complex one, for which I don't have an answer at the moment. But the IteratorComponent must be able to somehow find out which index this actually results in, ant stuff that into the piggy-banking nested-context. -- Andreas Joseph Krogh <andr...@officenet.no> Senior Software Developer / CEO ------------------------+---------------------------------------------+ OfficeNet AS | The most difficult thing in the world is to | Karenslyst Allé 11 | know how to do a thing and to watch | PO. Box 529 Skøyen | somebody else doing it wrong, without | 0214 Oslo | comment. | NORWAY | | Tlf: +47 24 15 38 90 | | Fax: +47 24 15 38 91 | | Mobile: +47 909 56 963 | | ------------------------+---------------------------------------------+ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org