File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DynaValidatorForm vs DynaValidatorActionForm what's the difference?

 
dave sag
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a bit confised about whn I would use a DynaValidatorActionForm vs a DynaValidatorForm. The only difference that I can see is that in the DynaValidatorActionForm (which extends DynaValidatorForm) is that in the validate method it calls

whereas in DynaValidatorForm the validate method calls

the key difference seems to be use of mapping.getPath() rather than mapping.getAttribute()
could someone explain what the differences are and why you would choose to use one over the other.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This might help:
http://www.manning.com/ao/readforum.html?forum=siaao&readthread=422
 
Amy Smith
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My understanding is that DynaValidatorActionForm will let you define different validations for different actions that share the same form. With DynaValidatorForm all actions that share the form must share the validation.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic