Search in sources :

Example 1 with UIClipboardShelfItem

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

the class ClipboardShelfItemTag method setProperties.

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

Aggregations

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