Hi,

I assume that you are not using intakt in this scenarion for mapping the
validated values against an OM Object.

So why not have in your intake.xml file something like:

<field name="hola" multiValued="true" key="TemplateNameKey"
type="String">
...
</field>
and
<field name="holaId" multiValued="true" key="HolaIdKey" type="String">
...
</field>

and then you have inside your template

#foreach($field in $fields)
    <input name="$testgroup.hola.Key" value="$!field.value" size="25"
type="text">
    <input name="$testgroup.holaId.Key" value="$field.id" size="25"
type="hidden">
#end
...

then you have two arrays which are in the right order for updates.

Kind regards

J�rgen Hoffmann

Am Fr, den 24.09.2004 schrieb Andreas Schwersenz um 11:47:

> Hi,
> 
> thanks for your answer, but I still got a question.
> Ok, I can do something like this:
> 
> <field name="hola" multiValued="true" key="TemplateNameKey" type="String">
> ...
> </field>
> 
> And in my template:
> 
> ...
> <input name="$testgroup.hola.Key" value="$!testgroup.hola" size="25"
> type="text">
> <input name="$ testgroup.hola.Key" value="$!testgroup.hola" size="25"
> type="text">
> ...
> 
> But I need to match every one of these input fields with an id. 
> Did you mean something like this:
> 
> ...
> <input name="$testgroup.hola.Key" value="$!testgroup.hola" size="25"
> type="text">
> <input name="$testgroup.hola.Key" value="id_1" size="25" type="hidden">
> <input name="$ testgroup.hola.Key" value="$!testgroup.hola" size="25"
> type="text">
> <input name="$testgroup.hola.Key" value="id_2" size="25" type="hidden">
> ...
> 
> But this is not a very nice way, I think, as it is not really matching the
> fields via some name.
> 
> Thy Andreas
> 
> > -----Urspr�ngliche Nachricht-----
> > Von: J�rgen Hoffmann [mailto:[EMAIL PROTECTED]
> > Gesendet: Freitag, 24. September 2004 09:12
> > An: Turbine Users List
> > Betreff: Re: Intake - check dynamically generated forms
> > 
> > Hi,
> > 
> > why not use one name for this field and make it multivalued? If this
> > number is one sort of database id then use a hidden field wit name id,
> > make this field multivalued, and then iterate over the corresponding
> > array.
> > 
> > Kind regards
> > 
> > J�rgen Hoffmann
> > 
> > Am Do, den 23.09.2004 schrieb [EMAIL PROTECTED] um 22:58:
> > 
> > > Hi,
> > >
> > > ok, I want to validate some dynamically generated forms with intake. My
> > > problem is that the actual number of input fields depends on the user
> > and
> > > can change every time the form is loaded, so it is not possible to match
> > > every field with an entry in intake.xml. The names of the input-fields
> > all
> > > start with the same identifier, but end with an unique id. I thought
> > that I
> > > can cut of this id in some way and than check the fields using intake.
> > Is
> > > this possible? My problem is that I can't figure out when exactly the
> > data
> > > from the form is passed to intake.
> > >
> > > Thx Andreas
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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]
> 
> 
> !EXCUBATOR:4153d7c0124191496420726!

Reply via email to