maia/.svn/pristine/39/393ec3519fe3715080c1ddbf6d2...

39 lines
2.6 KiB
Plaintext
Executable File

<ui:component xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
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"
xmlns:maia="http://java.sun.com/jsf/composite/maiaComponents">
<comp:interface shortDescription="Componente para comentarios del bpm ">
<comp:attribute name="controller" shortDescription="Controlador para los comentarios del bpm" />
<comp:attribute name="updateControls" shortDescription="Actualiza los controles"/>
</comp:interface>
<comp:implementation>
<div id="#{cc.clientId}">
<p:dialog widgetVar="popupSignature" resizable="false" closeOnEscape="true" modal="true" appendTo="@(body)"
showEffect="explode" hideEffect="explode" styleClass="m-dialog">
<f:facet name="header">#{msg_general.lbl_firmadoDoc}</f:facet>
<h:form id="formSignature">
<p:messages autoUpdate="true" globalOnly="true"/>
<h:panelGrid id="pEdit" columns="3" bodyrows="1">
<p:outputLabel for="pass" value="#{msg_security.password}"/>
<p:password id="pass" value="#{cc.attrs.controller.signaturePass}" required="true" autocomplete="off" maxlength="25"/>
<p:message for="pass" />
<p:outputLabel for="comment" value="#{msg_general.lbl_motivo}:" />
<p:inputTextarea id="comment" value="#{cc.attrs.controller.signatureComments}" required="true" rows="3" cols="50" autoResize="false" maxlength="60" onkeyup="Maia.forceupper(event, this);"/>
<p:message for="comment" />
</h:panelGrid>
<h:panelGrid columns="2" styleClass="m-dialog-controls">
<p:commandButton id="idComplete" value="#{msg_general.btn_signature}" icon="ui-icon-check" update="#{cc.attrs.updateControls}, pEdit " process="@this, :#{cc.attrs.id}:formSignature:pEdit" action="#{cc.attrs.controller.signatureDocument()}" oncomplete="if(args.validationFailed){return false;} popupSignature.hide();"/>
<p:commandButton id="idCancel" value="#{msg_general.btn_cancell}" icon="ui-icon-trash" oncomplete="popupSignature.hide()" process="@this" />
</h:panelGrid>
</h:form>
</p:dialog>
</div>
</comp:implementation>
</ui:component>