A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
strtus2: howto validate a form where not all fields are mandatory?
Joined: Sep 10, 2004
Jan 29, 2008 12:10:00
Below I have a class name entity (name, address, type...)
The end-user provides some information but not all fields are mandatory.
Q: how can I have 'name' and 'address' to be mandatory but 'type' can be left out? (using annotation)
public class CustomizeAction extends BaseSupport
private Entity entity = new Entity();
public Entity getEntity()
/// WHAT COMES HERE ?!?
public void setEntity(Entity entity)
this.entity = entity;
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: strtus2: howto validate a form where not all fields are mandatory?
EJB 3: Dynamic Element Values
How to query a value typed object
Is it mandatory to configure a primarykey in the deployment descriptor.
Composite Primary Key
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015