*/
protected void setProperties(UIComponent component)
{
// TODO Auto-generated method stub
super.setProperties(component);
HtmlColorPicker comp = (HtmlColorPicker) component;
if (this._colorMode != null) {
if (this._colorMode.isLiteralText()) {
try {
java.lang.String __colorMode = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._colorMode.getExpressionString(),
java.lang.String.class);
comp.setColorMode(__colorMode);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("colorMode", this._colorMode);
}
}
setConverterProperty(comp, this._converter);
if (this._converterMessage != null) {
if (this._converterMessage.isLiteralText()) {
try {
java.lang.String __converterMessage = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._converterMessage.getExpressionString(),
java.lang.String.class);
comp.setConverterMessage(__converterMessage);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("converterMessage", this._converterMessage);
}
}
if (this._disabled != null) {
if (this._disabled.isLiteralText()) {
try {
java.lang.Boolean __disabled = (java.lang.Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._disabled.getExpressionString(),
java.lang.Boolean.class);
comp.setDisabled(__disabled);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("disabled", this._disabled);
}
}
if (this._flat != null) {
if (this._flat.isLiteralText()) {
try {
java.lang.Boolean __flat = (java.lang.Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._flat.getExpressionString(),
java.lang.Boolean.class);
comp.setFlat(__flat);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("flat", this._flat);
}
}
if (this._immediate != null) {
if (this._immediate.isLiteralText()) {
try {
Boolean __immediate = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._immediate.getExpressionString(),
Boolean.class);
comp.setImmediate(__immediate.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("immediate", this._immediate);
}
}
if (this._localValueSet != null) {
if (this._localValueSet.isLiteralText()) {
try {
Boolean __localValueSet = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._localValueSet.getExpressionString(),
Boolean.class);
comp.setLocalValueSet(__localValueSet.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("localValueSet", this._localValueSet);
}
}
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);
}
}
if (this._requiredMessage != null) {
if (this._requiredMessage.isLiteralText()) {
try {
java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._requiredMessage.getExpressionString(),
java.lang.String.class);
comp.setRequiredMessage(__requiredMessage);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("requiredMessage", this._requiredMessage);
}
}
if (this._showEvent != null) {
if (this._showEvent.isLiteralText()) {
try {
java.lang.String __showEvent = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._showEvent.getExpressionString(),
java.lang.String.class);
comp.setShowEvent(__showEvent);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("showEvent", this._showEvent);
}
}
if (this._valid != null) {
if (this._valid.isLiteralText()) {
try {
Boolean __valid = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._valid.getExpressionString(),
Boolean.class);
comp.setValid(__valid.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("valid", this._valid);
}
}
setValidatorProperty(comp, this._validator);
if (this._validatorMessage != null) {
if (this._validatorMessage.isLiteralText()) {
try {
java.lang.String __validatorMessage = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._validatorMessage.getExpressionString(),
java.lang.String.class);
comp.setValidatorMessage(__validatorMessage);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("validatorMessage", this._validatorMessage);
}
}
if (this._value != null) {
if (this._value.isLiteralText()) {
try {
java.lang.Object __value = (java.lang.Object) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._value.getExpressionString(),
java.lang.Object.class);
comp.setValue(__value);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("value", this._value);