}
@Override
protected void setProperties(final UIComponent uiComponent) {
super.setProperties(uiComponent);
final UISuggest component = (UISuggest) uiComponent;
final FacesContext context = FacesContext.getCurrentInstance();
final Application application = context.getApplication();
if (update != null) {
if (!update.isLiteralText()) {
component.setValueExpression("update", update);
} else {
component.setUpdate(Boolean.parseBoolean(update.getExpressionString()));
}
}
if (maximumItems != null) {
if (!maximumItems.isLiteralText()) {
component.setValueExpression("maximumItems", maximumItems);
} else {
component.setMaximumItems(Integer.parseInt(maximumItems.getExpressionString()));
}
}
if (suggestMethod != null) {
component.setSuggestMethodExpression(suggestMethod);
}
if (markup != null) {
if (!markup.isLiteralText()) {
component.setValueExpression("markup", markup);
} else {
component.setMarkup(org.apache.myfaces.tobago.context.Markup.valueOf(markup.getExpressionString()));
}
}
if (totalCount != null) {
if (!totalCount.isLiteralText()) {
component.setValueExpression("totalCount", totalCount);
} else {
component.setTotalCount(Integer.parseInt(totalCount.getExpressionString()));
}
}
if (minimumCharacters != null) {
if (!minimumCharacters.isLiteralText()) {
component.setValueExpression("minimumCharacters", minimumCharacters);
} else {
component.setMinimumCharacters(Integer.parseInt(minimumCharacters.getExpressionString()));
}
}
if (delay != null) {
if (!delay.isLiteralText()) {
component.setValueExpression("delay", delay);
} else {
component.setDelay(Integer.parseInt(delay.getExpressionString()));
}
}
if (filter != null) {
if (!filter.isLiteralText()) {
component.setValueExpression("filter", filter);
} else {
component.setFilter(org.apache.myfaces.tobago.model.SuggestFilter.parse(filter.getExpressionString()));
}
}
}