Re: [T5] Form and Zone inside a loop

2010-02-02 Thread lebenski
devs. -- View this message in context: http://old.nabble.com/-T5--Form-and-Zone-inside-a-loop-tp27400993p27417440.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-uns

Re: [T5] Form and Zone inside a loop

2010-02-01 Thread cordenier christophe
gested in the documentation here: > >>>> > >>>> > http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Zone.html > >>>> > >>>> After I submit the form the page refreshes rather that updating t

Re: [T5] Form and Zone inside a loop

2010-02-01 Thread lebenski
efreshes rather that updating the >>>> zone. >>>> The loop runs 45 times so I end up with 45 micro forms and 45 zones on >>>> my >>>> page. Can anyone see what I'm doing wrong here? >>> >>> -

Re: [T5] Form and Zone inside a loop

2010-02-01 Thread Ulrich Stärk
Normally that happens when zone and form aren't set up correctly on the client side, e.g. due to inconsistent IDs. Did you try as Christophe suggested? Replace t:zone="${zoneId}" with t:zone="prop:zoneId" (same for the id parameter of zone). Does that help? Uli On 01.02.2010 12:15 schrieb le

Re: [T5] Form and Zone inside a loop

2010-02-01 Thread lebenski
ing the zone. >> The loop runs 45 times so I end up with 45 micro forms and 45 zones on my >> page. Can anyone see what I'm doing wrong here? > > --------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestr

Re: [T5] Form and Zone inside a loop

2010-02-01 Thread Thiago H. de Paula Figueiredo
On Mon, 01 Feb 2010 06:29:14 -0200, lebenski wrote: I have a loop that contains a form and a zone. In each iteration of the loop, submission of that form should update it's relevant zone: ... ... I would create a simple component wrapping

Re: [T5] Form and Zone inside a loop

2010-02-01 Thread Ulrich Stärk
You should @InjectComponent private Zone otherCommentsZone and return otherCommentsZone.getBody() from your onSuccess handler method after checking whether this is a XHR request (@Inject Request and do request.isXHR()). Uli On 01.02.2010 09:29 schrieb lebenski: I have a loop that contains a

Re: [T5] Form and Zone inside a loop

2010-02-01 Thread cordenier christophe
5 micro forms and 45 zones on my > page. Can anyone see what I'm doing wrong here? > -- > View this message in context: > http://old.nabble.com/-T5--Form-and-Zone-inside-a-loop-tp27400993p27400993.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > &

[T5] Form and Zone inside a loop

2010-02-01 Thread lebenski
I'm doing wrong here? -- View this message in context: http://old.nabble.com/-T5--Form-and-Zone-inside-a-loop-tp27400993p27400993.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe