Should the following work:
@ValidateNestedProperties({
@Validate(field="wireframe", required=true, label="Wireframe
Selection", on="createProject"),
@Validate(field="colorPalette", required=true, label="Color
Palette", on="createProject"),
@Validate(field="fonts", required=true, label="Fonts",
on="createProject"),
@Validate(field="quantity", required=true, minvalue=1,
label="Quantity", on="createProject"),
@Validate(field="logoSource", required=true, label="Logo
Source", on="createProject"),
@Validate(field="copySource", required=true, label="Copy
Source", on="createProject"),
@Validate(field="printingType", required=true, label="Printing
Type", on="createProject"),
@Validate(field="printingFinish", required=true, label="Printing
Finish", on="createProject"),
@Validate(field="photographySource", required=true,
label="Photography Source", on="createProject"),
@Validate(field="project.name", required=true, label="Project
Name", on="createProject"),
@Validate(field="project.companyName", required=true,
label="Company Name", on="createProject"),
@Validate(field="project.phone", required=true, label="Company
Phone", on="createProject"),
@Validate(field="project.contactName", required=true,
label="Company Contact", on="createProject"),
@Validate(field="project.email", required=true, label="Company
Email", on="createProject")
})
public FourPageBrochure getFourPageBrochure() {
return fourPageBrochure;
}
Where I have project.email, will it go down the object path and check that
property on the project object which is member variable on FourPageBrochure?
Alex
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users