}
@Override
protected void setProperties(final UIComponent uiComponent) {
super.setProperties(uiComponent);
final UIReload component = (UIReload) 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 (immediate != null) {
if (!immediate.isLiteralText()) {
component.setValueExpression("immediate", immediate);
} else {
component.setImmediate(Boolean.parseBoolean(immediate.getExpressionString()));
}
}
if (frequency != null) {
if (!frequency.isLiteralText()) {
component.setValueExpression("frequency", frequency);
} else {
component.setFrequency(Integer.parseInt(frequency.getExpressionString()));
}
}
}