At 2:49 PM -0400 8/31/05, Dilip Ladhani wrote:
Hello all,
I was searching for the best way to do this.
I want all the fields on my form to be trimmed before they are sent
for validation (I call validate from my action class). What's the
best way to do this if I have DynaValidatorActionForm?
Personally, I'd make this part of an onsubmit handler in the page.
You can't really intervene in the form population process on the
Struts side right now (although arguably that's something which
should be exposed for user customization better).
I suppose maybe you could extend DynaValidatorActionForm and try to
intervene in how it handles property setting, but it's pretty
abstract, so that may be a big challenge.
And, of course, you could sacrifice your dynaforms and implement your
own form bean classes which trim any non-null string value which is
applied.
Joe
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]