RE: Dynamic list of strings in a form

2008-05-02 Thread Blower, Andy
- From: Igor Drobiazko [mailto:[EMAIL PROTECTED] Sent: 15 April 2008 15:28 To: Tapestry users Subject: Re: Dynamic list of strings in a form Ups, wrong template url. This one is the correct one: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry- core/src/test/app1

RE: Dynamic list of strings in a form

2008-05-02 Thread Blower, Andy
- From: Igor Drobiazko [mailto:[EMAIL PROTECTED] Sent: 15 April 2008 15:28 To: Tapestry users Subject: Re: Dynamic list of strings in a form Ups, wrong template url. This one is the correct one: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry- core/src/test/app1

RE: Dynamic list of strings in a form

2008-05-02 Thread Blower, Andy
() { return _newRow; } } -Original Message- From: Igor Drobiazko [mailto:[EMAIL PROTECTED] Sent: 15 April 2008 15:28 To: Tapestry users Subject: Re: Dynamic list of strings in a form Ups, wrong template url. This one is the correct one: http://svn.apache.org/viewvc

Re: Dynamic list of strings in a form

2008-04-23 Thread Michael Dukaczewski
Thank you very much, that was exactly what I was looking for. I am new to tapestry and it was not clear for me how loops are working, but now I understand it. :-) Also many thanks to the other guys that replied. @Marcus: Grid didn’t work for me, because I didn't have any Bean that I could pass.

Re: Dynamic list of strings in a form

2008-04-15 Thread Igor Drobiazko
Ups, wrong template url. This one is the correct one: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/app1/FormInjectorDemo.tml?view=markup On Tue, Apr 15, 2008 at 4:20 PM, Igor Drobiazko [EMAIL PROTECTED] wrote: Have a look at the FormInjector component. This

Re: Dynamic list of strings in a form

2008-04-15 Thread Igor Drobiazko
Have a look at the FormInjector component. This component is what you need. http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/FormInjector.html An example can be found here:

Re: Dynamic list of strings in a form

2008-04-15 Thread Francois Armand
Michael Dukaczewski wrote: [...] t:form div t:type=loop t:source=items t:value=item t:textfield value=item / /div divt:submit t:id=add value=more//div divt:submit t:id=save value=save//div /t:form I have a list of values, the user has to enter. The number of values,

Re: Dynamic list of strings in a form

2008-04-15 Thread Josh Canfield
Hey Michael, I know a couple of guys have replied, but I think there is a much simpler answer to your problem. drop the item property from your page and add getter/setters that update the your items list based on the index in the loop: @Property private int _index; public String getItem() {