*/
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._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._inputSize != null) {
if (this._inputSize.isLiteralText()) {
try {
java.lang.Integer __inputSize = (java.lang.Integer) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._inputSize.getExpressionString(),
java.lang.Integer.class);
comp.setInputSize(__inputSize);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("inputSize", this._inputSize);
}
}
if (this._onbeforeshow != null) {
if (this._onbeforeshow.isLiteralText()) {
try {
java.lang.String __onbeforeshow = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onbeforeshow.getExpressionString(),
java.lang.String.class);
comp.setOnbeforeshow(__onbeforeshow);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onbeforeshow", this._onbeforeshow);
}
}
if (this._onchange != null) {
if (this._onchange.isLiteralText()) {
try {
java.lang.String __onchange = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onchange.getExpressionString(),
java.lang.String.class);
comp.setOnchange(__onchange);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onchange", this._onchange);
}
}
if (this._onhide != null) {
if (this._onhide.isLiteralText()) {
try {
java.lang.String __onhide = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onhide.getExpressionString(),
java.lang.String.class);
comp.setOnhide(__onhide);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onhide", this._onhide);
}
}
if (this._onselect != null) {
if (this._onselect.isLiteralText()) {
try {
java.lang.String __onselect = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onselect.getExpressionString(),
java.lang.String.class);
comp.setOnselect(__onselect);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onselect", this._onselect);
}
}
if (this._onshow != null) {
if (this._onshow.isLiteralText()) {
try {
java.lang.String __onshow = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._onshow.getExpressionString(),
java.lang.String.class);
comp.setOnshow(__onshow);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("onshow", this._onshow);
}
}
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);
}
}
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);