<!DOCTYPE html> <html xmlns="http://w...content-available-to-author-only...3.org/1999/xhtml" xmlns:h="http://x...content-available-to-author-only...p.org/jsf/html" xmlns:p="http://p...content-available-to-author-only...s.org/ui" xmlns:f="http://x...content-available-to-author-only...p.org/jsf/core" xmlns:ui="http://x...content-available-to-author-only...p.org/jsf/facelets"> <h:head> <title>Gerenciamento de Requisições</title> <h:outputStylesheet name="styles.css"/> </h:head> <h:body> <ui:composition template="/WEB-INF/templates/main.xhtml"> <h1>Gerenciamento de Requisições</h1> <h:form id="RMForm"> <p:dataTable var="row" value="#{RequestsManagement.requests}" id="rmTable" scrollable="true" scrollHeight="400" widgetVar="rmDataTable"> <p:column headerText="#{i18n['general.actions']}" exportable="false" style="text-align: center; width: #{RequestsManagement.getColWidth('ACTIONS')}px;" visible="#{RequestsManagement.getColVis('ACTIONS')}"> <!-- Cancelar Requisição --> <p:commandLink id="rmCancel" actionListener="#{RequestsManagement.requestCancel}" styleClass="icon-size blockUiButton" disabled="#{RequestsManagement.disableCancel(row.status, row.centralUid, row.startdate, row.id, row.idUnge, row.requestType)}"> <p:tooltip for="rmCancel" value="#{i18n['rm.datatable.cancel']}" position="left"/> <em class="far fa-window-close" style="color: Red;" /> <f:param name="rmId" value="#{row.id}" /> </p:commandLink> <!-- Editar Requisição --> <p:commandLink id="rmEdit" actionListener="#{RequestsManagement.requestEditRM}" styleClass="icon-size blockUiButton" disabled="#{RequestsManagement.disableEdition(row.status, row.centralUid, row.id, row.requestType, row.enddate)}"> <p:tooltip for="rmEdit" value="#{i18n['rm.datatable.edit']}" position="left"/> <em class="fa fa-edit" style="color: DodgerBlue;" /> <f:param name="rmId" value="#{row.id}" /> <f:param name="rmRequestType" value="#{row.requestType}" /> <f:param name="pageFrom" value="#{view.viewId}" /> </p:commandLink> <!-- Visualizar Detalhes --> <p:commandLink id="rmDetail" actionListener="#{RequestsManagement.requestViewRM}" styleClass="icon-size blockUiButton" disabled="#{RequestsManagement.disableVisualization(row.centralUid)}"> <p:tooltip for="rmDetail" value="#{i18n['rm.datatable.show']}" position="left"/> <em class="fa fa-search" style="color: DodgerBlue;" /> <f:param name="rmId" value="#{row.id}" /> <f:param name="rmRequestType" value="#{row.requestType}" /> <f:param name="pageFrom" value="#{view.viewId}" /> </p:commandLink> </p:column> <f:facet name="footer"> <div style="text-align: right;"> <p:spacer width="10" /> </div> </f:facet> </p:dataTable> <script> $(DATATABLE_SCROLLABLE_BODY).on('scroll', buildPositionLabel); </script> <p:commandButton style="display:none;" id="triggerUpdateLabel" update="RMForm:rmTable:disclaimerLabel" /> <p:commandButton style="display:none;" id="updAllPage" update="RMForm loadedByScroll accordion:searchRMList" onclick="saveScrollPos();" oncomplete="refreshDone();" /> <p:commandButton style="display:none;" id="updTable" update="RMForm" onclick="saveScrollPos();" oncomplete="refreshDone();" /> <!-- Diálogo de Confirmação --> <p:confirmDialog global="true" showEffect="fade" hideEffect="fade" responsive="true" width="350"> <div class="grid-buttons"> <p:commandButton value="#{i18n['rm.confirmdialog.no']}" type="button" styleClass="ui-confirmdialog-no"/> <p:commandButton value="#{i18n['rm.confirmdialog.yes']}" type="button" styleClass="ui-confirmdialog-yes" /> </div> </p:confirmDialog> <!-- Atualiza a página automaticamente a cada 30 segundos --> <p:poll interval="30" listener="#{RequestsManagement.pollRefresh}" /> </h:form> <h:inputHidden id="loadedByScroll" value="#{RequestsManagement.loadingByScroll}" /> <!-- Formulário de Confirmação de Cancelamento --> <h:form id="confirmCancelForm"> <p:dialog header="#{i18n['rm.confirmdialog.header.confirmation']}" resizable="false" widgetVar="confirmCancelDlg" width="350"> <p:outputLabel value="#{i18n['rm.confirmdialog.cancelation.restriction']}" /> <br /><br /> <div class="grid-buttons"> <p:commandButton value="#{i18n['rm.confirmdialog.no']}" type="button" styleClass="blockUiButton" onclick="PF('confirmCancelDlg').hide();" /> <p:commandButton value="#{i18n['rm.confirmdialog.yes']}" type="submit" styleClass="blockUiButton" action="#{RequestsManagement.confirmCancel()}" id="submitCancel" oncomplete="PF('confirmCancelDlg').hide();"/> </div> </p:dialog> </h:form> </ui:define> </ui:composition> </h:body> </html>
Standard input is empty
<!DOCTYPE html> <html xmlns="http://w...content-available-to-author-only...3.org/1999/xhtml" xmlns:h="http://x...content-available-to-author-only...p.org/jsf/html" xmlns:p="http://p...content-available-to-author-only...s.org/ui" xmlns:f="http://x...content-available-to-author-only...p.org/jsf/core" xmlns:ui="http://x...content-available-to-author-only...p.org/jsf/facelets"> <h:head> <title>Gerenciamento de Requisições</title> <h:outputStylesheet name="styles.css"/> </h:head> <h:body> <ui:composition template="/WEB-INF/templates/main.xhtml"> <ui:define name="content"> <h1>Gerenciamento de Requisições</h1> <h:form id="RMForm"> <p:dataTable var="row" value="#{RequestsManagement.requests}" id="rmTable" scrollable="true" scrollHeight="400" widgetVar="rmDataTable"> <p:column headerText="#{i18n['general.actions']}" exportable="false" style="text-align: center; width: #{RequestsManagement.getColWidth('ACTIONS')}px;" visible="#{RequestsManagement.getColVis('ACTIONS')}"> <!-- Cancelar Requisição --> <p:commandLink id="rmCancel" actionListener="#{RequestsManagement.requestCancel}" styleClass="icon-size blockUiButton" disabled="#{RequestsManagement.disableCancel(row.status, row.centralUid, row.startdate, row.id, row.idUnge, row.requestType)}"> <p:tooltip for="rmCancel" value="#{i18n['rm.datatable.cancel']}" position="left"/> <em class="far fa-window-close" style="color: Red;" /> <f:param name="rmId" value="#{row.id}" /> </p:commandLink> <!-- Editar Requisição --> <p:commandLink id="rmEdit" actionListener="#{RequestsManagement.requestEditRM}" styleClass="icon-size blockUiButton" disabled="#{RequestsManagement.disableEdition(row.status, row.centralUid, row.id, row.requestType, row.enddate)}"> <p:tooltip for="rmEdit" value="#{i18n['rm.datatable.edit']}" position="left"/> <em class="fa fa-edit" style="color: DodgerBlue;" /> <f:param name="rmId" value="#{row.id}" /> <f:param name="rmRequestType" value="#{row.requestType}" /> <f:param name="pageFrom" value="#{view.viewId}" /> </p:commandLink> <!-- Visualizar Detalhes --> <p:commandLink id="rmDetail" actionListener="#{RequestsManagement.requestViewRM}" styleClass="icon-size blockUiButton" disabled="#{RequestsManagement.disableVisualization(row.centralUid)}"> <p:tooltip for="rmDetail" value="#{i18n['rm.datatable.show']}" position="left"/> <em class="fa fa-search" style="color: DodgerBlue;" /> <f:param name="rmId" value="#{row.id}" /> <f:param name="rmRequestType" value="#{row.requestType}" /> <f:param name="pageFrom" value="#{view.viewId}" /> </p:commandLink> </p:column> <f:facet name="footer"> <div style="text-align: right;"> <p:spacer width="10" /> </div> </f:facet> </p:dataTable> <script> $(DATATABLE_SCROLLABLE_BODY).on('scroll', buildPositionLabel); </script> <p:commandButton style="display:none;" id="triggerUpdateLabel" update="RMForm:rmTable:disclaimerLabel" /> <p:commandButton style="display:none;" id="updAllPage" update="RMForm loadedByScroll accordion:searchRMList" onclick="saveScrollPos();" oncomplete="refreshDone();" /> <p:commandButton style="display:none;" id="updTable" update="RMForm" onclick="saveScrollPos();" oncomplete="refreshDone();" /> <!-- Diálogo de Confirmação --> <p:confirmDialog global="true" showEffect="fade" hideEffect="fade" responsive="true" width="350"> <div class="grid-buttons"> <p:commandButton value="#{i18n['rm.confirmdialog.no']}" type="button" styleClass="ui-confirmdialog-no"/> <p:commandButton value="#{i18n['rm.confirmdialog.yes']}" type="button" styleClass="ui-confirmdialog-yes" /> </div> </p:confirmDialog> <!-- Atualiza a página automaticamente a cada 30 segundos --> <p:poll interval="30" listener="#{RequestsManagement.pollRefresh}" /> </h:form> <h:inputHidden id="loadedByScroll" value="#{RequestsManagement.loadingByScroll}" /> <!-- Formulário de Confirmação de Cancelamento --> <h:form id="confirmCancelForm"> <p:dialog header="#{i18n['rm.confirmdialog.header.confirmation']}" resizable="false" widgetVar="confirmCancelDlg" width="350"> <p:outputLabel value="#{i18n['rm.confirmdialog.cancelation.restriction']}" /> <br /><br /> <div class="grid-buttons"> <p:commandButton value="#{i18n['rm.confirmdialog.no']}" type="button" styleClass="blockUiButton" onclick="PF('confirmCancelDlg').hide();" /> <p:commandButton value="#{i18n['rm.confirmdialog.yes']}" type="submit" styleClass="blockUiButton" action="#{RequestsManagement.confirmCancel()}" id="submitCancel" oncomplete="PF('confirmCancelDlg').hide();"/> </div> </p:dialog> </h:form> </ui:define> </ui:composition> </h:body> </html>