[appfuse-user] Validator and access to *.properties

2007-06-19 Thread pat79
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

Re: [appfuse-user] Validation of nested objects

2007-01-10 Thread pat79
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

[appfuse-user] Validation of nested objects

2007-01-08 Thread pat79
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; }

[appfuse-user] Validation Rules at Runtime from DB

2006-11-28 Thread pat79
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