I've not seen these demos before and although they look like integration tests, 
they also look really informative and very useful starting points for 
experimentation. There doesn't seem to be any release or package with them in 
and I can't figure out how to retrieve them en masse from the svn repository 
(probably don't have permissions anyway) so is there any way to get hold the 
source of these demo/test apps to learn and play around with? Obviously I could 
get a file at a time from the viewvc webpages.. but that would take a rather 
long (and boring) time.

> -----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/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 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:
> >
> > http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-
> core/src/test/java/org/apache/tapestry/integration/app1/pages/FormInjec
> torDemo.java?view=markup
> >
> > http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-
> core/src/test/app1/FormFragmentDemo.tml?view=markup
> >
> >
> >
> > On Tue, Apr 15, 2008 at 3:51 PM, Michael Dukaczewski <
> > [EMAIL PROTECTED]> wrote:
> >
> > > I am using Tapestry 5.0.11 and have a problem with a dynamic list
> of
> > > strings in a form. What I am trying, is the following:
> > >
> > > In the Page.java:
> > >
> > > @Persist
> > > private List<String> items;
> > >
> > > @Property
> > > private String item;
> > >
> > > public List<String> getItems() {
> > >        if (items == null) {
> > >                items = new LinkedList<String>();
> > >        }
> > >        return items;
> > > }
> > >
> > > public void onSelectedFromAdd() {
> > >        getItems().add("");
> > > }
> > >
> > > And in the Page.tml:
> > >
> > > <t:form>
> > >        <div t:type="loop" t:source="items" t:value="item">
> > >                <t:textfield value="item" />
> > >        </div>
> > >        <div><t:submit t:id="add" value="more"/></div>
> > >        <div><t:submit t:id="save" value="save"/></div>
> > > </t:form>
> > >
> > >
> > > I have a list of values, the user has to enter. The number of
> values,
> > > that have to be typed in, is dynamic, so the user has to extend the
> form.
> > > The add button works, but the values are not saved. Can someone
> tell me,
> > > that I am doing wrong?
> > >
> > >
> > > -------------------------------------------------------------------
> --
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Best regards,
> >
> > Igor Drobiazko
>
>
>
>
> --
> Best regards,
>
> Igor Drobiazko

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

Reply via email to