Я использую JSF 1.2 с RichFace 3, и мне нужно обновить панель внутри тега включения, но это нужно сделать во время выполнения из серверного кода, поскольку это вызов из третьего компонента.
тег включения:
<ui:insert name="ddlContracts">
<ui:include src="ddlContracts.xhtml" />
</ui:insert>
панель для обновления внутри тега включения:
<a4j:outputPanel id="pnlWarningAlert" style="margin-left:15px" rendered="#{menuContratosMB.showRejectedWarning eq 'Y'}">
<img id="imgWarningAlert" src="/sicucintrastatic/img/btns/btAttention.png" alt="warning" onclick="redirectToProcessRejectedTransaction()" onmouseover="this.style.cursor='pointer'" style="margin-bottom:-5px" />
</a4j:outputPanel>
commandLink на родительский .xhtml
<a4j:commandLink action="#{menuMB.menuSubscribe}" title="Subscribe" reRender="showWarningAlert,pnlWarningAlert">
<label class="hand">Subscribe</label>
</a4j:commandLink>
.java
public void menuSubscribe(){
DdlContractMB contract = new DdlContractMB(); /*call to third bean
that belongs to included .xhtml*/
contract.changeContract(null); //third bean call
//need to update outputPanel here inside the include tag .xhtml
}
Есть идеи?