}
@Override
protected void setProperties(final UIComponent uiComponent) {
super.setProperties(uiComponent);
final UISelectItem component = (UISelectItem) uiComponent;
final FacesContext context = FacesContext.getCurrentInstance();
final Application application = context.getApplication();
if (itemDescription != null) {
component.setValueExpression("itemDescription", itemDescription);
}
if (markup != null) {
if (!markup.isLiteralText()) {
component.setValueExpression("markup", markup);
} else {
component.setMarkup(org.apache.myfaces.tobago.context.Markup.valueOf(markup.getExpressionString()));
}
}
if (itemValue != null) {
component.setValueExpression("itemValue", itemValue);
}
if (itemLabel != null) {
component.setValueExpression("itemLabel", itemLabel);
}
if (value != null) {
if (!value.isLiteralText()) {
component.setValueExpression("value", value);
/*} else {
component.setValue(value.getExpressionString());*/
}
}
if (tip != null) {
component.setValueExpression("tip", tip);
}
if (itemImage != null) {
component.setValueExpression("itemImage", itemImage);
}
if (itemDisabled != null) {
if (!itemDisabled.isLiteralText()) {
component.setValueExpression("itemDisabled", itemDisabled);
} else {
component.setItemDisabled(Boolean.parseBoolean(itemDisabled.getExpressionString()));
}
}
}