Re: T4: form input components inside a For loop

2008-02-29 Thread Petri Wessman
Pai911 wrote: > Put an InvokeListener component in the For > > when the rewinding occures, it will invoke the listener with each Iteration. > > In each iteration, the page property is stored with different value which > you can use > > The listener is like > > public void updateUser(IRequestCyc

Re: T4: form input components inside a For loop

2008-02-28 Thread Pai911
Put an InvokeListener component in the For when the rewinding occures, it will invoke the listener with each Iteration. In each iteration, the page property is stored with different value which you can use The listener is like public void updateUser(IRequestCycle cycle) { if (cycle.isRewinding

Re: T4: form input components inside a For loop

2008-02-28 Thread Andreas Andreou
it is doable with components - the idea is that on rewind, each iteration can store the current data in a 'global' structure which your listener will then work on On Thu, Feb 28, 2008 at 4:33 PM, Petri Wessman <[EMAIL PROTECTED]> wrote: > Andreas Andreou wrote: > > Why do you need to "iterate thr

Re: T4: form input components inside a For loop

2008-02-28 Thread Petri Wessman
Andreas Andreou wrote: > Why do you need to "iterate through the components thing in the listener"? > Can you explain what you're after? Maybe I wasn't clear enough. What I want to do is to edit 1-N identical records on one page. I currently have a component which encapsulates the editing of field

Re: T4: form input components inside a For loop

2008-02-28 Thread Andreas Andreou
Why do you need to "iterate through the components thing in the listener"? Can you explain what you're after? BTW, there's only one FoobarEdit instance, so, that's why you get one! On Thu, Feb 28, 2008 at 3:32 PM, Petri Wessman <[EMAIL PROTECTED]> wrote: > Ok, I'm a bit stumped here. I'm using T