01: package org.obe.worklist;
02:
03: import javax.faces.component.UIComponent;
04: import javax.faces.context.FacesContext;
05: import javax.faces.validator.Validator;
06: import javax.faces.validator.ValidatorException;
07: import java.io.Serializable;
08:
09: /**
10: * Validates an OBE attribute values.
11: *
12: * @author Adrian Price
13: */
14: public class AttributeValidator implements Serializable, Validator {
15: private static final long serialVersionUID = 2220847907139265610L;
16:
17: public AttributeValidator() {
18: }
19:
20: public void validate(FacesContext context, UIComponent component,
21: Object value) throws ValidatorException {
22:
23: component.getValueBinding("what?");
24: }
25: }
|