Mite, You must use a property of your source as select value.
2010/8/11 Josh Canfield <joshcanfi...@gmail.com> > Are you saying that when you post the form you are getting the last value > from the form stored in the currentBetType and currentAvailableBet > properties? > > With loops you have to remember that you only have one property in the page > so it gets set repeatedly when you post the form. You can collect the values > in a list in the property setter. If you search the list you should find > several examples. > > -- Josh > > On Aug 10, 2010, at 5:30 PM, Mite <mitemeis...@gmail.com> wrote: > > > > > Hi > > > > I have the following loop containing two select components. > > > > <form t:type="form" id="form1"> > > <p> > > <table> > > <tr t:type="loop" t:source="selectedMatches" t:value="currentSelected" > > formState="none"> > > <td>${currentSelected.date}</td> > > <td>${currentSelected.time}</td> > > <td>${currentSelected.host}</td> > > <td>${currentSelected.hScore}</td> > > <td>-</td> > > <td>${currentSelected.vScore}</td> > > <td>${currentSelected.visitor}</td> > > <td>${currentSelected.minute}</td> > > <td>${currentSelected.league}</td> > > > > <td><t:select t:id="betTypes" clientId="${currentSelected.id}" > > model="betTypes" value="currentBetType" > > labelField="${currentBetType}" > onChange="this.form.submit();"/> > > </td> > > <td><t:select t:id="availableBets" model="availableBets" > > value="currentAvailableBet" > > > labelField="${currentAvailableBet}" > > onChange="this.form.submit();"/> > > </td> > > </tr> > > </table> > > </p> > > </form> > > > > All the selects get the value from the last select, something which I > don't > > want. I need them to all have their own independent values. > > > > Is there any way to make this happen? > > > > Thank you > > > > -- > > View this message in context: > http://tapestry.1045711.n5.nabble.com/Select-in-Loop-tp2471420p2471420.html > > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Pablo Henrique dos Reis