This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Yes and no. The main key is to use DynaValidatorForm rather than a simple DynaForm. DynaForm will not invoke the Validator framework while DynaValidatorForm will. You may then configure validation as with any other form.
"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
Joined: Sep 01, 2004
Yeah, I understand the usage of DynaValidatorForm, but what do I have as my field? Typically on file upload you use a FormFile object. I'm not sure I know how to do validation on that (ie, file extension = .csv).
Joined: Dec 19, 2002
Guess I misunderstood the question. Anyway, I don't know... I haven't used the upload piece specifically.
You could write a validator class Facade for the FormFile validation, though.