Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DynaValidatorForm vs DynaValidatorActionForm what's the difference?

 
dave sag
Ranch Hand
Posts: 47
  • 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
 
Amy Smith
Greenhorn
Posts: 24
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic