protected void setProperties(UIComponent component) {
super.setProperties(component);
if (action != null) {
if (isValueReference(action)) {
MethodBinding mb = FacesContext.getCurrentInstance().
getApplication().createMethodBinding(action, null);
((ActionSource) component).setAction(mb);
} else {
final String outcome = action;
MethodBinding mb = new ConstantMethodBinding(outcome);
((ActionSource) component).setAction(mb);
}
}
setStringAttribute(component, "accesskey", accesskey);
setStringAttribute(component, "charset", charset);