Hi there,
i have a custom validator for uploading files checking the max size of a
file:
public class ImageUploadValidator implements Validator {
public void validate(Object obj, Errors errors) {
UploadCommand cmd = (UploadCommand) obj;
/* filesize < 5MB
ype() method. Also, you only need @spring.validator to
> include nested validations - not the specific type.
>
> HTH,
>
> Matt
>
> On 1/8/07, pat79 <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> i've a problem validating a form with a nested obj
Hi,
i've a problem validating a form with a nested object. let's assume there
are two classes:
public class Person implements java.io.Serializable {
private Integer id;
private String name;
/**
* @spring.validator type="required"
*/
private PersonType personType;
}
Hi,
i'm working on a project, where attributes and entities are stored in
different tables. The reason therefore is, that attributes depend on the
type of an entity. e.g. For a lorry you may need an attribute "load_in_kg",
for a cabriolet this isn't very important, instead you need the attribute