Hi Adam,

Try specifying the index of each textarea explicitly.

Mon: <stripes:textarea name="messages[0]" />
Tue: <stripes:textarea name="messages[1]" />
Wed: <stripes:textarea name="messages[2]" />
...

FYI, all 7 values are submitted by the browser unless the form element
is disabled.
The difference is how these values are bound by Stripes.

Hope this helps,
Iwao

2011/3/15 Adam Stokar <ajsto...@gmail.com>:
> Hi All,
>
> I am trying to submit a form with for a user's weekly hours.
>
> At the top of the form, there is a textarea for each day of the week to type
> a message.  The message is optional.
>
> My intention is to submit the form and get 7 values, 1 for each textarea,
> regardless of whether the textarea is blank or not.  Currently, if i have a
> message on Mon, Tues, and Thurs, I am only seeing 3 Strings in my ActionBean
> since Wed, Fri, Sat and Sun are all null when submitted.  Is there a way to
> guarantee I submit 7 String values regardless of if the textarea have a
> message or not?
>
> Thanks in advance,
>
> Adam

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to