Re: validation excludeMethods version 2.0.11
--- akash agrawal <[EMAIL PROTECTED]> wrote: > Thanks for the response. > Could you give an example of how to use the approach you suggested? > Here is my code: > > > delete, getA, getB > > Oops, chalk another one up to my lack of sleep. I was confusing your question with an earlier thread regarding the ParameterNameAware interface, which is pretty far off the mark and not even remotely related. Sorry. That said, you could instead supply an "includeMethods" parameter which is a whitelist of methods for which validation should be run: it's the opposite of "excludeMethods" and may server you better in this case. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validation excludeMethods version 2.0.11
Dave, Thanks for the response. Could you give an example of how to use the approach you suggested? Here is my code: delete, getA, getB Thanks, -Akash Dave Newton <[EMAIL PROTECTED]> wrote: --- akash agrawal wrote: > I am using validation framework and would like to disable validation for > all the query methods like getA(), getB(), getC(). > > There is a excludeMethods property using which I can turn off validation > for above methods by spelling out each method. > > 1. Is there a way to generalize this so that we don't need to spell out > each getX method? Yeah. String's startWith method. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Never miss a thing. Make Yahoo your homepage.
Re: validation excludeMethods version 2.0.11
--- akash agrawal <[EMAIL PROTECTED]> wrote: > I am using validation framework and would like to disable validation for > all the query methods like getA(), getB(), getC(). > > There is a excludeMethods property using which I can turn off validation > for above methods by spelling out each method. > > 1. Is there a way to generalize this so that we don't need to spell out > each getX method? Yeah. String's startWith method. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
validation excludeMethods version 2.0.11
Hi, I am using validation framework and would like to disable validation for all the query methods like getA(), getB(), getC(). There is a excludeMethods property using which I can turn off validation for above methods by spelling out each method. 1. Is there a way to generalize this so that we don't need to spell out each getX method? Any better ideas are welcome. Thanks, -Akash - Looking for last minute shopping deals? Find them fast with Yahoo! Search.