Search in sources :

Example 1 with UIRecentSpacesShelfItem

use of org.alfresco.web.ui.repo.component.shelf.UIRecentSpacesShelfItem in project acs-community-packaging by Alfresco.

the class RecentSpacesShelfItemTag method setProperties.

/**
 * @see javax.faces.webapp.UIComponentTag#setProperties(javax.faces.component.UIComponent)
 */
protected void setProperties(UIComponent component) {
    super.setProperties(component);
    setStringBindingProperty(component, "value", this.value);
    if (isValueReference(this.navigateActionListener)) {
        MethodBinding vb = getFacesContext().getApplication().createMethodBinding(this.navigateActionListener, ACTION_CLASS_ARGS);
        ((UIRecentSpacesShelfItem) component).setNavigateActionListener(vb);
    } else {
        throw new FacesException("Navigate Action listener method binding incorrectly specified: " + this.navigateActionListener);
    }
}
Also used : UIRecentSpacesShelfItem(org.alfresco.web.ui.repo.component.shelf.UIRecentSpacesShelfItem) MethodBinding(javax.faces.el.MethodBinding) FacesException(javax.faces.FacesException)

Aggregations

FacesException (javax.faces.FacesException)1 MethodBinding (javax.faces.el.MethodBinding)1 UIRecentSpacesShelfItem (org.alfresco.web.ui.repo.component.shelf.UIRecentSpacesShelfItem)1