FileDocCategorySizeDatePackage
ValidateLaterThanTag.javaAPI DocExample1313Tue Jun 08 11:26:42 BST 2004com.mycompany.jsf.taglib

ValidateLaterThanTag

public class ValidateLaterThanTag extends javax.faces.webapp.ValidatorTag
This class is a tag handler that creates and configures a "com.mycompany.jsf.validator.LATER_THAN" validator.
author
Hans Bergsten, Gefion Software
version
1.0

Fields Summary
private String
peerId
Constructors Summary
Methods Summary
protected javax.faces.validator.ValidatorcreateValidator()
Returns a new instance of the validator registered under the name "com.mycompany.jsf.validator.LATER_THAN", configured with the "than" property value.

	Application application = 
	    FacesContext.getCurrentInstance().getApplication();
	LaterThanValidator validator = (LaterThanValidator)
	    application.createValidator("com.mycompany.jsf.validator.LATER_THAN");
	validator.setPeerId(peerId);
	return validator;
    
public voidsetThan(java.lang.String peerId)
Sets the client ID for the component holding the value to compare the value of the component with this validator to.

	this.peerId = peerId;