*/
protected void setProperties(UIComponent component)
{
// TODO Auto-generated method stub
super.setProperties(component);
HtmlEqualityValidator comp = (HtmlEqualityValidator) component;
if (this._for != null) {
if (this._for.isLiteralText()) {
try {
java.lang.String __for = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._for.getExpressionString(),
java.lang.String.class);
comp.setFor(__for);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("for", this._for);
}
}
if (this._message != null) {
if (this._message.isLiteralText()) {
try {
java.lang.String __message = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._message.getExpressionString(),
java.lang.String.class);
comp.setMessage(__message);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("message", this._message);
}
}
if (this._messageId != null) {
if (this._messageId.isLiteralText()) {
try {
java.lang.String __messageId = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._messageId.getExpressionString(),
java.lang.String.class);
comp.setMessageId(__messageId);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("messageId", this._messageId);
}
}
if (this._operator != null) {
if (this._operator.isLiteralText()) {
try {
java.lang.String __operator = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._operator.getExpressionString(),
java.lang.String.class);
comp.setOperator(__operator);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("operator", this._operator);
}
}
if (this._required != null) {
if (this._required.isLiteralText()) {
try {
Boolean __required = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._required.getExpressionString(),
Boolean.class);
comp.setRequired(__required.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("required", this._required);