*/
protected void setProperties(UIComponent component)
{
// TODO Auto-generated method stub
super.setProperties(component);
HtmlToken comp = (HtmlToken) component;
if (this._allowMultiplePosts != null) {
if (this._allowMultiplePosts.isLiteralText()) {
try {
Boolean __allowMultiplePosts = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._allowMultiplePosts.getExpressionString(),
Boolean.class);
comp.setAllowMultiplePosts(__allowMultiplePosts.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("allowMultiplePosts", this._allowMultiplePosts);
}
}
setConverterProperty(comp, this._converter);
if (this._enableCookieNotice != null) {
if (this._enableCookieNotice.isLiteralText()) {
try {
Boolean __enableCookieNotice = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._enableCookieNotice.getExpressionString(),
Boolean.class);
comp.setEnableCookieNotice(__enableCookieNotice.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("enableCookieNotice", this._enableCookieNotice);
}
}
if (this._requireSession != null) {
if (this._requireSession.isLiteralText()) {
try {
Boolean __requireSession = (Boolean) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._requireSession.getExpressionString(),
Boolean.class);
comp.setRequireSession(__requireSession.booleanValue());
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("requireSession", this._requireSession);
}
}
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);