I have a micky mouse example that does something similar. The live example and source code is at
http://lombok.demon.co.uk/tapestry5Demo/test/sum Shing --- Kevin Menard <[EMAIL PROTECTED]> wrote: > You could keep track of an index variable and use > that to index a List in > your page class. Something like the following: > > public String getValue() > { > return values.get(index); > } > > public void setValue(final String value) > { > values.set(index, value); > } > > Then the trick is updating the index value, but that > may be simpler for you. > I've used that trick to avoid serializing Cayenne > objects in a Loop. Of > course, in that case, the semantics of the index > value are very well-defined > so YMMV. > > -- > Kevin > > > On 1/8/08 1:50 PM, in article > [EMAIL PROTECTED], "Hugo Palma" > <[EMAIL PROTECTED]> wrote: > > > My use case is this, > > > > i would like to let the user to enter an undefined > number of values. I > > have the UI implemented with a loop component > getting the number of > > cycles from a page property and in each cycle it > places a new textfield > > component. > > > > The problem is, what property do i put in each of > the textfield value > > paramters ? I'm holding the values in a List > property in my page. > > I can't do <input t:type="textfield" > value="myList.0"/>. > > > > Any ideas ? > > I'm thinking that i may be complicating something > that probably is much > > simpler. > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > Home page : http://www.lombok.demon.co.uk/ ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
