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()) { // make sure this only works when the form i
submited
   // get the value you need, and update to database
}
}


Petri Wessman wrote:
> 
> Ok, I'm a bit stumped here. I'm using Tapestry 4.1.3, and I'm trying to
> use (sub)components which have form input fields inside a For loop.
> 
> I have a list of items, initialized by a "calling" page, and one as
> placeholder for the current value, something like this:
> 
>     public abstract Foobar getCurrentFoobar();
> 
>     @Persist
>     public abstract List<Foo> getFoobars();
>     public abstract void setFoobars(List<Foobar> value);
> 
> 
> The template has code like this:
> 
> .........
> 

-- 
View this message in context: 
http://www.nabble.com/T4%3A-form-input-components-inside-a-For-loop-tp15736420p15742114.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to