Currently FormProc would not convert multiple fields with the same name
into an array, rather it uses the ServletRequest.getParameter() method
to return the first value. I will look into updating FormProc to handle
arrays today - it shouldn't be too hard.
As for storing those values afterwards, you can either use the
ReflectionStorer which should work fine with arrays once I implement the
arrays as described previously, or you can create your own Storer
implementation and provide whatever storage mechanism you need.
Sincerely,
Anthony Eden
> -----Original Message-----
> From: for...@li...
> [mailto:for...@li...] On
> Behalf Of Gandulf
> Sent: Friday, November 08, 2002 3:57 AM
> To: for...@li...
> Subject: [FormProc-developer] formproc an alternativ to
> Intake. should I change???
>
>
> Hello,
>
> I'm currently working an an turbine/velocity/torque
> environment and use
> intake as the buildin formprocessing tool.
>
> But since working with Intake is rather anoying I'm thinking about
> switching to another formprocessing tool.
> I looked at the documentation of Formproc and it's seems to be an
> alternative to Intake. But I'd need some special Information about
> FormProc, especially about how it handels arrays of formelements.
>
> Here is an short example ...(a little bit minimalized)
>
> ----
> <form>
> <input type="text" name="name1">
> <input type="text" name="name1">
>
> <input type="text" name="name2">
> <input type="text" name="name2">
> </form>
> ----
>
> Now If I submit such an Form, it would create two arrays
> (name1[], name2[])
> wich contain the values for the two inputs with the same names.
>
> Now my Question:
>
> Is Formproc able to handle such a form and save the values in
> an object
> (via the store.ReflectionMapper), since Intake is not ???
>
> thx Gandulf
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: See the NEW Palm
> Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
FormProc-developer mailing list For...@li...
https://lists.sourceforge.net/lists/listinfo/formproc-developer
|