- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想知道在更新 p:outputPanel
时是否有一个 ajax
事件调用 js
方法?
因为我在代码的许多部分都调用了一种方法。
为了理解,我将标题放入 rowEditor 中,因此当某些内容更新此 p:outputPanel
时,会再次渲染并释放标题,因此我在中调用此方法 createTitlesRowEditor()
许多部分。
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition template="/template/common/pagelayout.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:ez="http://java.sun.com/jsf/composite">
<ui:define name="content">
<script type="text/javascript">
function disableBtnCorrenteExcluir() {
$('button[id*="tabelaVigenciaCorrente"]').prop('disabled', true).addClass('ui-state-disabled');
}
function enableBtnCorrenteExcluir() {
$('button[id*="tabelaVigenciaCorrente"]').removeClass('ui-state-disabled');
createTitlesRowEditor();
}
function disableBtnProximaExcluir() {
$('button[id*="tabelaVigenciaProxima"]').prop('disabled', true).addClass('ui-state-disabled');
}
function enableBtnProximaExcluir() {
$('button[id*="tabelaVigenciaProxima"]').removeClass('ui-state-disabled');
createTitlesRowEditor();
}
function createTitlesRowEditor() {
$('span[class*="ui-icon-pencil"]').prop('title', 'Editar').addClass('.ui-state-hover');
$('span[class*="ui-icon-close"]').prop('title', 'Cancelar').addClass('.ui-state-hover');
$('span[class*="ui-icon-check"]').prop('title', 'Confirmar').addClass('.ui-state-hover');
}
function inserirMascara() {
$('input[class*="hasDatepicker"]').mask('99/99/9999');
}
</script>
<f:metadata>
<f:event listener="#{tabelaTaxasComissoesEmprestimoBean.load}" type="preRenderView" />
</f:metadata>
<div id="content">
<br />
<br />
<div class="form_title">
<span class="active"><h:outputText
value="#{lbl['TITLE.TABELATAXA.FORM.TABELATAXASECOMISSOES']}" /></span>
</div>
<h:form id="form">
<p:messages id="messages" />
<p:focus/>
<p:remoteCommand autoRun="true" oncomplete=" createTitlesRowEditor();"/>
<p:outputPanel id="vigenciaPanel">
<div style="margin: 0 auto; width: 70%">
<p:dataTable id="tabelaVigenciaCorrente" editable="true"
value="#{tabelaTaxasComissoesEmprestimoBean.pojo.vigenciaCorrente.faixas}"
emptyMessage="#{lbl['LABEL.TABELATAXA.ADICIONEPELOUMAFAIXA.MSG']}"
var="corrente" sortBy="prazoMinimo"
rendered="#{tabelaTaxasComissoesEmprestimoBean.pojo.vigenciaCorrente != null}">
<p:ajax event="rowEditInit" onstart="disableBtnCorrenteExcluir();" />
<p:ajax event="rowEdit" oncomplete="if (args.validationFailed) disableBtnCorrenteExcluir(); else enableBtnCorrenteExcluir();" />
<p:ajax event="rowEditCancel" oncomplete="enableBtnCorrenteExcluir();" />
<f:facet name="header">
<div align="left">
<p:outputLabel
value="#{tabelaTaxasComissoesEmprestimoBean.pojo.vigenciaCorrente} " />
<p:outputLabel
rendered="#{tabelaTaxasComissoesEmprestimoBean.pojo.vigenciaCorrente != null}"
value="#{lbl['LABEL.TABELATAXA.VIGENCIACORRENTE']}" />
</div>
</f:facet>
<p:column headerText="#{lbl['LABEL.TABELATAXA.PRAZOEMMESES']}"
styleClass="columnCenter" style="width:25%">
<p:cellEditor>
<f:facet name="output">
<p:outputLabel
value="#{corrente.prazoMinimo} #{((corrente.prazoMinimo == corrente.prazoMaximo) || (corrente.prazoMaximo == null)) ? '' : ' a '.concat(corrente.prazoMaximo)}" />
</f:facet>
<f:facet name="input">
<p:inputText id="prazoMinimoCorrente"
label="#{lbl['LABEL.TABELATAXA.PRAZOINICIAL']}"
styleClass="columnRight" value="#{corrente.prazoMinimo}"
size="8" maxlength="3" onkeypress="mascara(this, soNumeros)"
required="true"
title="#{lbl['LABEL.TABELATAXA.PARAPRAZOSIMPLESINFORMESOMENTEOPRAZOINICIAL.HELP']}" />
<p:tooltip for="prazoMinimoCorrente" showEvent="focus"
hideEvent="blur" />
<p:outputLabel value=" a " />
<p:inputText label="#{lbl['LABEL.TABELATAXA.PRAZOFINAL']}"
styleClass="columnRight" value="#{corrente.prazoMaximo}"
size="8" maxlength="3" onkeypress="mascara(this, soNumeros)" />
</f:facet>
</p:cellEditor>
</p:column>
<p:column headerText="#{lbl['LABEL.TABELATAXA.TAXAJUROS']}"
styleClass="columnRight">
<p:cellEditor>
<f:facet name="output">
<p:outputLabel value="#{corrente.taxaJuros}">
<f:convertNumber locale="pt_BR" minFractionDigits="2"
maxFractionDigits="2" />
</p:outputLabel>
<p:outputLabel value="%" />
</f:facet>
<f:facet name="input">
<p:inputText label="#{lbl['LABEL.TABELATAXA.TAXAJUROS']}"
styleClass="columnRight" value="#{corrente.taxaJuros}"
onkeypress="mascara(this,valorMonetario)" size="11"
maxlength="6" required="true">
<f:convertNumber locale="pt_BR" minFractionDigits="2"
maxFractionDigits="2" />
</p:inputText>
</f:facet>
</p:cellEditor>
</p:column>
<p:column
headerText="#{lbl['LABEL.TABELATAXA.TAXADIFERENCIADAOBANCOEMPRESA']}"
styleClass="columnRight">
<p:cellEditor>
<f:facet name="output">
<p:outputLabel value="#{corrente.taxaDiferenciadaParaBanco}">
<f:convertNumber locale="pt_BR" minFractionDigits="2"
maxFractionDigits="2" />
</p:outputLabel>
<p:outputLabel
value="#{corrente.taxaDiferenciadaParaBanco == null ? '' : '%'}" />
</f:facet>
<f:facet name="input">
<p:inputText
label="#{lbl['LABEL.TABELATAXA.TAXADIFERENCIADAOBANCOEMPRESA']}"
value="#{corrente.taxaDiferenciadaParaBanco}"
styleClass="columnRight"
required="#{tabelaTaxasComissoesEmprestimoBean.pojo.tabelaExclusivaParaCPGarantia}"
onkeypress="mascara(this,valorMonetario)" size="11"
maxlength="6">
<f:convertNumber locale="pt_BR" minFractionDigits="2"
maxFractionDigits="2" />
</p:inputText>
</f:facet>
</p:cellEditor>
</p:column>
<p:column headerText="#{lbl['LABEL.TABELATAXA.COMISSAO']}"
styleClass="columnRight">
<p:cellEditor>
<f:facet name="output">
<p:outputLabel value="#{corrente.comissao}">
<f:convertNumber locale="pt_BR" minFractionDigits="2"
maxFractionDigits="2" />
</p:outputLabel>
<p:outputLabel value="%" />
</f:facet>
<f:facet name="input">
<p:inputText label="#{lbl['LABEL.TABELATAXA.COMISSAO']}"
value="#{corrente.comissao}" styleClass="columnRight"
onkeypress="mascara(this,valorMonetario)" size="11"
maxlength="6" required="true">
<f:convertNumber locale="pt_BR" minFractionDigits="2"
maxFractionDigits="2" />
</p:inputText>
</f:facet>
</p:cellEditor>
</p:column>
<p:column headerText="#{lbl['LABEL.TABELATAXA.COMPLEMENTO']}"
styleClass="columnRight">
<p:cellEditor>
<f:facet name="output">
<p:outputLabel value="#{corrente.complementoComissao}">
<f:convertNumber locale="pt_BR" minFractionDigits="2"
maxFractionDigits="2" />
</p:outputLabel>
<p:outputLabel
value="#{corrente.complementoComissao == null ? '' : '%'}" />
</f:facet>
<f:facet name="input">
<p:inputText label="#{lbl['LABEL.TABELATAXA.COMPLEMENTO']}"
value="#{corrente.complementoComissao}"
styleClass="columnRight"
onkeypress="mascara(this,valorMonetario)" size="11"
maxlength="6">
<f:convertNumber locale="pt_BR" minFractionDigits="2"
maxFractionDigits="2" />
</p:inputText>
</f:facet>
</p:cellEditor>
</p:column>
<p:column headerText="#{lbl['LABEL.TABELATAXA.ACAO']}"
styleClass="coluna-acao">
<p:rowEditor />
<p:commandButton process="@this" styleClass="botaoImagem"
icon="botaoExcluir"
title="#{lbl['TITLE.TABELATAXA.FORM.EXCLUIR']}"
oncomplete="confirmationFaixaExclusao.show();">
<f:setPropertyActionListener
target="#{tabelaTaxasComissoesEmprestimoBean.vigenciaTipo}"
value="corrente" />
<f:setPropertyActionListener
target="#{tabelaTaxasComissoesEmprestimoBean.faixa}"
value="#{corrente}" />
</p:commandButton>
</p:column>
<f:facet name="footer">
<div align="right">
<p:commandButton
disabled="#{tabelaTaxasComissoesEmprestimoBean.pojo.vigenciaCorrente == null}"
process="@this"
value="#{lbl['BTN.TABELATAXA.ADICIONARFAIXA']}"
update=":dialogAdicionarFaixa" oncomplete="dlgFaixa.show();"
action="#{tabelaTaxasComissoesEmprestimoBean.criarFaixa()}">
<f:setPropertyActionListener
target="#{tabelaTaxasComissoesEmprestimoBean.vigenciaTipo}"
value="corrente" />
</p:commandButton>
<p:commandButton process="@this" update=":dialogVigencia"
oncomplete="dlgVigencia.show(); createTitlesRowEditor();"
value="#{lbl['BTN.TABELATAXA.EDITARVIGENCIA']}"
action="#{tabelaTaxasComissoesEmprestimoBean.editarVigencia}"
disabled="#{tabelaTaxasComissoesEmprestimoBean.pojo.id ne null}">
<f:setPropertyActionListener
target="#{tabelaTaxasComissoesEmprestimoBean.modoOperacao}"
value="editar" />
<f:setPropertyActionListener
target="#{tabelaTaxasComissoesEmprestimoBean.vigenciaTipo}"
value="corrente" />
</p:commandButton>
<p:commandButton process="@this" update=":dialogVigencia"
oncomplete="confirmationVigenciaExclusao.show();"
value="#{lbl['BTN.TABELATAXA.EXCLUIRVIGENCIA']}"
disabled="#{tabelaTaxasComissoesEmprestimoBean.pojo.id ne null}">
<f:setPropertyActionListener
target="#{tabelaTaxasComissoesEmprestimoBean.vigenciaTipo}"
value="corrente" />
</p:commandButton>
</div>
</f:facet>
</p:dataTable>
<br />
<div align="right">
<p:commandButton id="btnAdicionarNovaVigencia" process="@this" update="messages :dialogVigencia"
actionListener="#{tabelaTaxasComissoesEmprestimoBean.criarVigencia()}"
value="#{lbl['BTN.TABELATAXA.ADICIONARVIGENCIA']}">
<f:setPropertyActionListener target="#{tabelaTaxasComissoesEmprestimoBean.modoOperacao}" value="inserir"/>
</p:commandButton>
<p:commandButton id="btnHistoricoVigencias" type="button"
value="#{lbl['BTN.TABELATAXA.HISTORICODASVIGENCIAS']}"
onclick="blockUIForm.show(); dlgHistoricoVigencias.show(); "
rendered="#{tabelaTaxasComissoesEmprestimoBean.pojo.id != null}" />
</div>
</div>
</p:outputPanel>
</h:form>
</div>
<p:dialog id="dialogVigencia" widgetVar="dlgVigencia"
resizable="false" modal="true" closable="false"
onHide="createTitlesRowEditor();"
header="#{tabelaTaxasComissoesEmprestimoBean.vigencia.id eq null ? lbl['LABEL.TABELATAXA.ADICIONARVIGENCIA.HEADER']
: lbl['LABEL.TABELATAXA.EDITARVIGENCIA.HEADER']}"
width="30%">
<h:form id="vigenciaForm">
<p:messages id="messagesAdicionar" />
<div class="form_title">
<span class="active"><h:outputText
value="#{tabelaTaxasComissoesEmprestimoBean.vigencia.id == null ? lbl['LABEL.TABELATAXA.ADICIONARVIGENCIA.HEADER'] : lbl['LABEL.TABELATAXA.EDITARVIGENCIA.HEADER']}" /></span>
</div>
<p:panelGrid id="gridVigencia"
styleClass="panelGridCenter gridNoBackground noBorders">
<p:row>
<p:column styleClass="columnRight" width="50%">
<p:outputLabel
value="#{lbl['LABEL.TABELATAXA.VIGENCIA.DATAINICIAL']}" />
</p:column>
<p:column width="50%">
<p:calendar
label="#{lbl['LABEL.TABELATAXA.VIGENCIA.DATAINICIAL']}"
value="#{tabelaTaxasComissoesEmprestimoBean.vigencia.dataInicial}"
pattern="dd/MM/yyyy" mode="popup" required="true" locale="pt_BR"
size="16" onfocus="inserirMascara();" />
</p:column>
</p:row>
<p:row
rendered="#{tabelaTaxasComissoesEmprestimoBean.vigencia.dataFinal != null and tabelaTaxasComissoesEmprestimoBean.vigencia.id != null}">
<p:column styleClass="columnRight">
<p:outputLabel
value="#{lbl['LABEL.TABELATAXA.VIGENCIA.DATAFINAL']}" />
</p:column>
<p:column>
<p:calendar label="#{lbl['LABEL.TABELATAXA.VIGENCIA.DATAFINAL']}"
value="#{tabelaTaxasComissoesEmprestimoBean.vigencia.dataFinal}"
pattern="dd/MM/yyyy" mode="popup" disabled="true" locale="pt_BR"
size="16" />
</p:column>
</p:row>
</p:panelGrid>
<div class="form_title" />
<div align="right">
<p:commandButton process="vigenciaForm"
value="#{lbl['BTN.TABELATAXA.CONFIRMAR']}"
actionListener="#{tabelaTaxasComissoesEmprestimoBean.salvarVigencia()}"
oncomplete="createTitlesRowEditor();"
update=":form:vigenciaPanel messagesAdicionar gridVigencia @parent :form:btnAdicionarNovaVigencia" />
<p:commandButton type="button"
value="#{lbl['BTN.TABELATAXA.CANCELAR']}"
onclick="confirmDialogCancelViagencia.show();" />
</div>
</h:form>
</p:dialog>
<p:confirmDialog message="#{lbl['LABEL.TABELATAXA.DESEJAREALMENTECANCELAR.MSG']}"
header="#{lbl['LABEL.TABELATAXA.CONFIRMACAOCANCELAMENTO.HEADER']}" severity="alert"
widgetVar="confirmDialogCancelViagencia">
<p:commandButton process="@this" value="#{lbl['BTN.TABELATAXA.SIM']}"
update=":form:vigenciaPanel"
oncomplete="createTitlesRowEditor();"
onclick="dlgVigencia.hide(); confirmDialogCancelViagencia.hide();">
<p:ajax event="click" listener="#{tabelaTaxasComissoesEmprestimoBean.resetDialog(':dialogVigencia')}" />
</p:commandButton>
<p:commandButton type="button" value="#{lbl['BTN.TABELATAXA.NAO']}"
onclick="confirmDialogCancelViagencia.hide();" />
</p:confirmDialog>
<p:confirmDialog showEffect="false"
message="#{lbl['LABEL.TABELATAXA.DESEJAREALMENTEEXCLUIRESTAVIGENCIA.MSG']}"
header="#{lbl['LABEL.TABELATAXA.CONFIRMACAOEXCLUSAO.HEADER']}"
widgetVar="confirmationVigenciaExclusao">
<p:commandButton process="@this" value="#{lbl['BTN.TABELATAXA.SIM']}"
actionListener="#{tabelaTaxasComissoesEmprestimoBean.removerVigencia()}"
oncomplete="confirmationVigenciaExclusao.hide(); createTitlesRowEditor(); window.scrollTo(0, 0);"
update=":form:vigenciaPanel :form:messages" />
<p:commandButton type="button" value="#{lbl['BTN.TABELATAXA.NAO']}"
onclick="confirmationVigenciaExclusao.hide();" />
</p:confirmDialog>
<p:dialog id="dialogAdicionarFaixa" header="#{lbl['LABEL.TABELATAXA.ADICIONARFAIXA.HEADER']}"
widgetVar="dlgFaixa" resizable="false" modal="true" closable="false">
<h:form id="faixaForm">
<p:messages id="messagesAdicionar" />
<div class="form_title">
<span class="active"><h:outputText value="#{lbl['TITLE.TABELATAXA.FORM.ADICIONARFAIXA']}" /></span>
</div>
<p:panelGrid id="gridFaixa"
styleClass="panelGridCenter noBorders gridNoBackground">
<p:row>
<p:column styleClass="columnRight">
<p:outputLabel value="#{lbl['LABEL.TABELATAXA.PRAZO']}" />
</p:column>
<p:column>
<p:inputText label="#{lbl['LABEL.TABELATAXA.PRAZOINICIAL']}"
styleClass="columnRight"
value="#{tabelaTaxasComissoesEmprestimoBean.faixa.prazoMinimo}"
size="11" maxlength="3" onkeypress="mascara(this, soNumeros)"
required="true" />
<p:outputLabel value="a" />
</p:column>
<p:column style="padding-left: 0">
<p:inputText label="#{lbl['LABEL.TABELATAXA.PRAZOFINAL']}"
styleClass="columnRight"
value="#{tabelaTaxasComissoesEmprestimoBean.faixa.prazoMaximo}"
size="11" maxlength="3" onkeypress="mascara(this, soNumeros)"/>
</p:column>
<p:column styleClass="noPadding">
<p:outputLabel value="#{lbl['LABEL.TABELATAXA.MESES']}" />
</p:column>
<p:column>
<p:graphicImage url="#{resource['images:help-icon.png']}"
title="#{lbl['LABEL.TABELATAXA.PARAPRAZOSIMPLESINFORMESOMENTEOPRAZOINICIAL.HELP']}" />
</p:column>
</p:row>
<p:row>
<p:column styleClass="columnRight">
<p:outputLabel value="#{lbl['LABEL.TABELATAXA.TAXAJUROS']}" />
</p:column>
<p:column>
<p:inputText label="#{lbl['LABEL.TABELATAXA.TAXAJUROS']}"
styleClass="columnRight"
value="#{tabelaTaxasComissoesEmprestimoBean.faixa.taxaJuros}"
onkeypress="mascara(this,valorMonetario)" size="11"
maxlength="6" required="true">
<f:convertNumber locale="pt_BR" minFractionDigits="2"
maxFractionDigits="2" />
</p:inputText>
<p:outputLabel value=" %" />
</p:column>
</p:row>
<p:row>
<p:column styleClass="columnRight">
<p:outputLabel value="#{lbl['LABEL.TABELATAXA.TAXADIFERENCIADAOBANCOEMPRESA']}" />
</p:column>
<p:column>
<p:inputText
label="#{lbl['LABEL.TABELATAXA.TAXADIFERENCIADAOBANCOEMPRESA']}"
styleClass="columnRight"
value="#{tabelaTaxasComissoesEmprestimoBean.faixa.taxaDiferenciadaParaBanco}"
required="#{tabelaTaxasComissoesEmprestimoBean.pojo.tabelaExclusivaParaCPGarantia}"
onkeypress="mascara(this,valorMonetario)" size="11"
maxlength="6">
<f:convertNumber locale="pt_BR" minFractionDigits="2"
maxFractionDigits="2" />
</p:inputText>
<p:outputLabel value=" %" />
</p:column>
</p:row>
<p:row>
<p:column styleClass="columnRight">
<p:outputLabel value="#{lbl['LABEL.TABELATAXA.COMISSAO']}" />
</p:column>
<p:column>
<p:inputText label="#{lbl['LABEL.TABELATAXA.COMISSAO']}"
styleClass="columnRight"
value="#{tabelaTaxasComissoesEmprestimoBean.faixa.comissao}"
onkeypress="mascara(this,valorMonetario)" size="11"
maxlength="6" required="true">
<f:convertNumber locale="pt_BR" minFractionDigits="2"
maxFractionDigits="2" />
</p:inputText>
<p:outputLabel value=" %" />
</p:column>
</p:row>
<p:row>
<p:column styleClass="columnRight">
<p:outputLabel value="#{lbl['LABEL.TABELATAXA.COMPLEMENTO']}" />
</p:column>
<p:column>
<p:inputText label="#{lbl['LABEL.TABELATAXA.COMPLEMENTO']}"
styleClass="columnRight"
value="#{tabelaTaxasComissoesEmprestimoBean.faixa.complementoComissao}"
onkeypress="mascara(this,valorMonetario)" size="11"
maxlength="6">
<f:convertNumber locale="pt_BR" minFractionDigits="2"
maxFractionDigits="2" />
</p:inputText>
<p:outputLabel value=" %" />
</p:column>
</p:row>
</p:panelGrid>
<div class="form_title" />
<div align="right">
<p:commandButton process="faixaForm" value="#{lbl['BTN.TABELATAXA.CONFIRMAR']}"
oncomplete="if (!args.validationFailed) dlgFaixa.hide(); createTitlesRowEditor();"
update=":form:vigenciaPanel messagesAdicionar gridFaixa @parent">
<p:collector unique="false" addTo="#{tabelaTaxasComissoesEmprestimoBean.faixasVigencia}"
value="#{tabelaTaxasComissoesEmprestimoBean.faixa}" />
</p:commandButton>
<p:commandButton type="button" value="#{lbl['BTN.TABELATAXA.CANCELAR']}"
onclick="confirmDialogCancelFaixa.show();" />
</div>
</h:form>
</p:dialog>
<p:confirmDialog message="#{lbl['LABEL.TABELATAXA.DESEJAREALMENTECANCELAR.MSG']}"
header="#{lbl['LABEL.TABELATAXA.CONFIRMACAOCANCELAMENTO.HEADER']}" severity="alert"
widgetVar="confirmDialogCancelFaixa">
<p:commandButton process="@this" type="button" value="#{lbl['BTN.TABELATAXA.SIM']}"
onclick="dlgFaixa.hide(), confirmDialogCancelFaixa.hide();">
<p:ajax event="click" listener="#{tabelaTaxasComissoesEmprestimoBean.resetDialog(':dialogAdicionarFaixa')}" />
</p:commandButton>
<p:commandButton type="button" value="#{lbl['BTN.TABELATAXA.NAO']}"
onclick="confirmDialogCancelFaixa.hide();" />
</p:confirmDialog>
<p:confirmDialog showEffect="false"
message="#{lbl['LABEL.TABELATAXA.DESEJAREALMENTEEXCLUIRESTAFAIXAVIGENCIA.MSG']}"
header="#{lbl['LABEL.TABELATAXA.CONFIRMACAOEXCLUSAO.HEADER']}" widgetVar="confirmationFaixaExclusao">
<p:commandButton process="@this" value="#{lbl['BTN.TABELATAXA.SIM']}"
oncomplete="confirmationFaixaExclusao.hide(); createTitlesRowEditor(); window.scrollTo(0, 0);"
update=":form:vigenciaPanel :form:messages">
<p:collector removeFrom="#{tabelaTaxasComissoesEmprestimoBean.faixasVigencia}"
value="#{tabelaTaxasComissoesEmprestimoBean.faixa}" />
</p:commandButton>
<p:commandButton type="button" value="#{lbl['BTN.TABELATAXA.NAO']}"
onclick="confirmationFaixaExclusao.hide();" />
</p:confirmDialog>
<p:dialog header="#{lbl['LABEL.TABELATAXA.HISTORICODATABELA.HEADER']}"
widgetVar="dlgLog" resizable="false" modal="true" height="450"
onShow="blockUIForm.hide();" width="1000" dynamic="true">
<ui:include src="#{tabelaTaxasComissoesEmprestimoBean.viewLog}" />
</p:dialog>
<p:confirmDialog id="confirmDialogCancelForm"
message="#{lbl['LABEL.TABELATAXA.DESEJAREALMENTECANCELAR.MSG']}"
header="#{lbl['LABEL.TABELATAXA.CONFIRMACAOCANCELAMENTO.HEADER']}" severity="alert"
widgetVar="cancelConfirmationForm">
<p:commandButton process="confirmDialogCancelForm"
value="#{lbl['BTN.TABELATAXA.SIM']}" action="#{tabelaTaxasComissoesEmprestimoBean.cancelar}"
oncomplete="cancelConfirmationForm.hide();" />
<p:commandButton type="button" value="#{lbl['BTN.TABELATAXA.NAO']}"
onclick="cancelConfirmationForm.hide();" />
</p:confirmDialog>
<p:dialog header="#{lbl['LABEL.TABELATAXA.HISTORICODASVIGENCIAS.HEADER']}" widgetVar="dlgHistoricoVigencias"
resizable="false" modal="true" height="500" width="1000" dynamic="true" onShow="blockUIForm.hide()">
<ui:include src="#{tabelaTaxasComissoesEmprestimoBean.getViewVigenciasLog()}" />
</p:dialog>
</ui:define>
</ui:composition>
谢谢
最佳答案
您可以将要执行的 JavaScript 添加到 p:outputPanel
,因此您不需要使用 autoRun="true 的
并且每次更新 outputPanel 时都会执行 JS:p:remoteCommand
"
<p:outputPanel id="vigenciaPanel">
...
<script type="text/javascript">
$(document).ready(createTitlesRowEditor);
</script>
</p:outputPanel>
关于javascript - p :outputPanel being updated 之后的事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25503771/
命令 npm update 有什么区别和包裹npm-check-updates ?使用后者是否完全安全? 执行后好像是npm update并非所有软件包都已更新,因此似乎不完整。许多其他 popula
我有使用 ExpressJS 和 ORM Sequelize 的 API。我正在尝试使用 Sequelize 中的 update() 方法进行更新。默认情况下,it 方法将返回更新的行数。但我希望结果
关于如何更新 rubygems 有点困惑。过程不断变化(或者至少我从互联网上得到了相互矛盾的信息)。 $ gem outdated rubygems-update (1.8.10 < 1.8.11
我正在使用 webpack-dev-server处于开发模式( watch )。每次服务器重新加载时,一些 json 和 js 文件都会挤满我的构建目录,如下所示:'hash'.hot-update.
Mamp Pro 的当前版本是 5.04 (15996)。可用更新窗口显示“Mamp 5.0.0 > 5.1。更新失败,并显示一条消息:错误:无法验证更新。请确保您使用的是安全网络,然后重试。” 更新
我想在浏览量增加时更新时间戳“lastpageview_at”。我想我已经接近了,但我总是遇到语法错误,有人知道为什么或有其他解决方案吗? 我的触发器: CREATE TRIGGER Update_l
我正在执行 SELECT ... FOR UPDATE 以锁定一条记录,然后进行一些计算,然后进行实际的 UPDATE。我正在处理 InnoDB 数据库。 但是计算可能会以我不想执行 UPDATE 的
我需要在表更新时进行一些更新和插入以强制执行正确的数据。将 UPDATE 语句放入触发器中会导致某种“循环”吗? 谢谢! 最佳答案 更新触发器中的目标表将使触发器再次触发。 您可以使用 TRIGGER
这是我的布局 当我点击链接更新时,该链接应该打开和关闭renderComment bool
我有一个包含两件事的 Angular 范围: 一个包含 10k 行的巨型表格,需要一秒钟才能渲染 一些小的额外信息位于固定的覆盖标题栏中 根据您向下滚动页面/表格的距离,我必须更新标题中的小信息位之一
标题几乎已经说明了一切。 IF NEW.variance <> 0 THEN (kill update) END IF 这可能吗? 最佳答案 查看手册 (http://dev.mysql.com/do
我有几个表,我想强制执行版本控制,并且有一个生效日期和生效日期。每当应用程序或用户向该表写入更新时,我希望它重定向到两个全新的命令:更新目标记录,以便 EFFECTIVE_TO 日期填充当前日期和时间
我正在使用 Shopware,一件奇怪的事情让我抓狂 :( 所以我将首先解释问题是什么。 除了普通商品外,还有多种款式的商品,例如不同尺码的衬衫。这是 XS、S、M、L 和/或不同颜色的同一商品……但
寻求帮助制作 mysql 触发器。我当前的代码无法按预期工作。我想做的是,如果表A中的字段A被修改,则将字段A复制到表A中的字段B。 当前代码如下所示: BEGIN IF new.set_id=301
以下查询(来自此处Postgres SQL SELECT and UPDATE behaving differently) update fromemailaddress set call =
我想使用 D3 使用以下数据创建一个列表: var dataSet = [ { label: 'a', value: 10}, { label: 'b', value: 20},
哪个更好,先进行选择,然后进行更新。或者更确切地说,像这样合而为一: UPDATE items set status = 'NEW' where itemid in (1,2,3,
对于 eloquent model events,updating 和 updated 之间有什么区别? ? 我的猜测是 updating 在模型更新之前触发,而 updated 在模型更新之后触发。
我有一个对象数组(我们称之为arr)。在我的组件输入之一的 (change) 方法中,我修改了这些对象的属性之一,但在 View (*ngFor) 中没有任何变化。我读到 Angular2 变化检测不
我正在尝试使用 d3.js 构建水平日历时间线。主要目标是突出显示用户的假期和假期。 http://jsbin.com/ceperavu/2/edit?css,js,output 我首先从“开始”日期
我是一名优秀的程序员,十分优秀!