Thanks!
Joe
David Graham wrote:
--- "Joe @ Team345" <[EMAIL PROTECTED]> wrote:
Thanks David. This was the only "workaround" I could think of as well. Yet it doesn't make sense to me - why are all the non-Collection fields on the form maintained (i.e. upon returning the input page text fields, etc. are all populated with previous values), but the Collections are
not?
Anyone know?
Think of it in terms of HTTP requests/responses. 1. User requests form url.
2. Collection is placed into the request
3. Control is passed to form.jsp which renders the collection.
4. Form is sent to user and all request data is lost in your server.
5. User fills out the form and presses submit.
6. Only the values in the submitted form are sent back to the server *not*
the whole collection.
7. Server validates data and sends back *submitted* values to input page.
So, storing the collection in the session allows it to persist through the entire HTTP conversation instead of getting lost on the first response.
David
David Graham wrote:
collectionsMake sure your collection is stored in the session. If it's in the request you will lose it when returning to the input page.
David
--- Joe at Team345 <[EMAIL PROTECTED]> wrote:
Hi,
I'm using the Struts Validator (version 1.1 release) on
DynaValidatorForms.
Everything seems to work just fine on forms that don't have
failedon them. However, several of my forms have pull-down lists where I do something like:
<bean:define id="reasons" name="MyFormName" property="reasonCodes" /> <html:select property="selectedReason" > <html:options collection="reasons" property="value" labelProperty="label" /> </html:select>
Without validation everything works perfectly. When validation is enabled and control returns to this form (because of invalid input), I get a null access error for the bean:define.
Anyone else see such behavior and/or know how to fix it?
I tried using <html:optionsCollection...> instead (to eliminate the
bean:define). However, this just results in a different error:
to obtain specified collection. Thus, I think there is a problem with combining the three things listed in the subject.
Sorry for being so long winded - especially on a Friday!
any help appreciated,
Joe Gamache
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
--------------------------------------------------------------------- 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]
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
--------------------------------------------------------------------- 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]

