- 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/
关于strcat函数。 while (*p) p++; 和 while (*++p) ; 两者都有效,但是 while (*p++) ; 不起作用。我认为 first 和 th
" in HTML?(HTML中的““是什么
?)
下面例子中的第一行代码是什么。我看到一个YouTuber在写下面的代码,它显示了一个设计在csswar Challenges中。我也尝试了一下,它很管用。但我以前从未在任何HTML教程上看到过它,我在
vs.
是不间断空格,表示没有换行的空白处。 如果我用 我在两个段落之间有一个空格(更大的间隔)。如果我使用 我在两个段落之间只有一个新行(没有中断)。为什么? 最佳答案 在 HTML 中
这个问题已经有答案了: Why are these constructs using pre and post-increment undefined behavior? (14 个回答) 已关闭 9
我对编程还很陌生,只是想知道为什么这段代码: for ( ; *p; ++p) *p = tolower(*p); 当 p 指向一个字符串时,可以降低 c 中字符串的大小写吗? 最佳答案 一般来说,这
代码 int n = 25; int *p = &n; printf("%x\n %d\n %x\n", p, p[0], p[1]); 返回: \ 当然我永远不会这样做,但在 K&R 中声明
所以,我想创建一个简单的程序,返回有关连续素数的计算结果。首先,我创建一个包含所有这些素数的列表,然后尝试计算结果,但这给了我一个超出范围的索引。有人可以帮助我吗?我的程序: primes = []
这个问题在这里已经有了答案: With arrays, why is it the case that a[5] == 5[a]? (20 个答案) 关闭 9 年前。 我想知道 C/C++ 中以下四
我仍在努力理解 *p、&p 和 p 之间的区别。根据我的理解,* 可以被认为是“指向的值”,而 & 可以被认为是“地址”。换句话说,* 保存值,而 & 保存地址。如果这是真的,那么 *p 和 p 之间
你是吗? [xxxrecipientFirstNamexxx]
和你是吗? {recipientFirstName}
需要更换 你是吗? [xxxrecipientFirstNamexxx] 和 你是吗? {recipientFirstName} 。我尝试使用边界匹配器。但结果并不符合预期。我尝试使用下面的代码 "A
我想按 IsTop 属性升序排序对象,然后按 JobId 属性降序排序: query = query.OrderBy(p => p.IsTop).ThenOrderByDescending(p =
在我尝试使用 Apache POI 进行转换的 Excel 文件中,我有一个单元格的数值为 -3.97819466831428,自定义格式为“0.0 p.p.;(0.0 p.p.)”。因此,在 Exc
我想创建一个扩展方法,允许我调用 ToSerializableDictionary(p => p.ID)而不是 .ToDictionary(p => p.ID)在以下 LINQ 上下文中。虽然我不确定
在下面的 HTML 代码上运行此 jQuery 代码会返回不同的结果,我认为它们应该返回相同的值。 jQuery 代码: var counter = 0; $("p").each(function()
在下面的代码片段中,符号 *p 等同于 p[0],*(p + 1) 等同于p[1],依此类推。 int* p = new int[3] { 1, 2, 3}; cout << *p << ' ' <<
这个问题在这里已经有了答案: What will happen when I call a member function on a NULL object pointer? [duplicate]
这个问题在这里已经有了答案: 关闭 10 年前。 Possible Duplicate: Undefined Behavior and Sequence Points 按照标准中的定义,E1 +=
" in HTML?(在HTML中“
以下示例中的第一行代码是什么。我看到一个youtube用户写下面的代码,它显示在cssbattle挑战的设计。我也试过,它的作品。但我从来没有见过它在任何HTML教程之前,我在谷歌上搜索它,但它只显示
每当我收到来自 MS outlook 的电子邮件时,我都会收到此标记 & nbsp ; (没有空格)哪个显示为?在 <>. 当我将其更改为 ISO-8859-1 时,浏览器页面字符集编码为 UTF-8
p1
TESTp2
代码: from bs4 import BeautifulSoup soup = BeautifulSoup('p1TESTp2') print soup.div() 结果: [p1, p2] 为什么
我是一名优秀的程序员,十分优秀!