HI,

We've created a bunch of forms to allow users to create new object in our database. All the forms have a "name" property in them, and depending on the object, there are other properties. Most of our validation is just a simple "required".

However, we have a business rule which states that two objects o f the same type cannot have the same name. In order to check this, we have to query the database.

In order to implement this, I was wondering if it was better to try and extend the DynaValidatorActionForm, or whether puttin git in the action is the best way to do it? We always want the same behaviour for all our objects: if the name exists already, send the user back to the entry page with an error messagae that asks to use a different name.

I'm sure others have done something similar. What approaches have you taken?

Thanks,

L


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to