27 lines
1.9 KiB
Plaintext
Executable File
27 lines
1.9 KiB
Plaintext
Executable File
<ui:composition 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">
|
|
<script type="text/javascript">
|
|
/* <![CDATA[ */
|
|
$(document).ready(function() {
|
|
Maia.focus('#{focus}');
|
|
Maia.focusContainer('#{focusContainer}');
|
|
});
|
|
/* ]]> */
|
|
</script>
|
|
|
|
<p:remoteCommand name="queryFunc" action="#{controller.query()}" update="#{paramQueryUpdate}" process="@this #{paramQueryProcess}" rendered="#{query!=null ? query:true}"/>
|
|
<p:remoteCommand name="previousFunc" action="#{controller.previous()}" update="#{paramQueryUpdate}" process="@this, #{paramQueryProcess}" rendered="#{query!=null ? query:true}"/>
|
|
<p:remoteCommand name="nextFunc" action="#{controller.next()}" update="#{paramQueryUpdate}" process="@this, #{paramQueryProcess}" rendered="#{query!=null ? query:true}"/>
|
|
<p:remoteCommand name="saveFunc" action="#{controller.save()}" update="#{paramSaveUpdate}" process="@this, #{paramSaveProcess}" rendered="#{save!=null ? save:true}"/>
|
|
|
|
<p:confirmDialog header="#{msg_general.lbl_pendding_changes}" global="true" showEffect="fade" hideEffect="explode" rendered="#{query!=null ? query:(save!=null ? save:true)}"
|
|
widgetVar="queryConfirmDialog" message="#{msg_general.btn_controlcambios}">
|
|
<p:commandButton value="Si" styleClass="ui-confirmdialog-yes" icon="ui-icon-check"
|
|
action="#{controller.forcedQuery()}" update="#{paramQueryUpdate}" process="@this, #{paramQueryProcess}"
|
|
oncomplete="PF('queryConfirmDialog').hide()" />
|
|
<p:commandButton value="No" type="button" styleClass="ui-confirmdialog-no" icon="ui-icon-close" onclick="PF('queryConfirmDialog').hide()"/>
|
|
</p:confirmDialog>
|
|
</ui:composition> |