PDA

View Full Version : AbstractBeanValidator's getFormName method


whatsinaname
Apr 12th, 2006, 07:19 PM
Looks like AbstractBeanValidator uses getFormName (Class) method to identify which form to use from validator.xml files. Here Class is the class of the command bean.

I have a requirement where I need to use two parameters to determine the form name. One is the class of the bean. Other is the action taken place (which is also wrapped in the command bean). I am wondering if there is a work around for this without writing my own code.

Also, wouldn't it be nice to have the signature of the getFormName as getFormName(Object) instead of getFormName(Classand pass the command object itself as a parameter to the extending class?

Thanks
Subu