23 lines
1.5 KiB
Plaintext
Executable File
23 lines
1.5 KiB
Plaintext
Executable File
<ui:component xmlns="http://www.w3.org/1999/xhtml"
|
|
xmlns:f="http://java.sun.com/jsf/core"
|
|
xmlns:ui="http://java.sun.com/jsf/facelets"
|
|
xmlns:p="http://primefaces.org/ui"
|
|
xmlns:comp="http://java.sun.com/jsf/composite" >
|
|
<comp:interface shortDescription="Componente para subir documentos a Alfresco">
|
|
<comp:attribute name="controllerAlfresco" shortDescription="Controlador de alfresco que esta dentro del controlador principal" />
|
|
<comp:attribute name="xPathLocation" shortDescription="Ruta de la carpeta en formato xPath" />
|
|
<comp:attribute name="idAlfrescoPopup" shortDescription="Identificador del componente popup de alfresco" />
|
|
<comp:attribute name="label" shortDescription="Etiqueta a mostrar para descargar" />
|
|
<comp:attribute name="value" shortDescription="Etiqueta a mostrar en el boton de descarga" />
|
|
</comp:interface>
|
|
|
|
<comp:implementation>
|
|
<div id="#{cc.clientId}">
|
|
<p:commandButton actionListener="#{cc.attrs.controllerAlfresco.prepareDocumentList}" label="#{cc.attrs.label}" icon="ui-icon-arrowthick-1-s" value="#{cc.attrs.value}"
|
|
oncomplete="popupAlfrescoFolder.show()" update=":#{cc.attrs.idAlfrescoPopup}:formPanelAlfrescoFolder">
|
|
<f:attribute name="xPathLocation" value="#{cc.attrs.xPathLocation}" />
|
|
</p:commandButton>
|
|
</div>
|
|
</comp:implementation>
|
|
</ui:component>
|