これはまさに私が探しているものです。私は豊富な:modalPanelを表示する必要があります。JSF RichFaces - ページが読み込まれるときにrich:modalPanelを表示する方法
これは私のアプローチは、これまでのところです:
MAIN.XHTML
<script type="text/javascript">
function openPopUp(){
if(#{rich:element('popUpAltaTrenesEstaciones')}.value == 'true'){
#{rich:component('idAltaPlantillasTrenesEstacionesPop')}.show();
return false;
}
}
</script>
.........
<a4j:include id="popUp" viewId="AltaPlantillasTrenesEstacionesPopUp.xhtml" />
.....
<a4j:outputPanel ajaxRendered="true">
<h:inputText id="popUpAltaTrenesEstaciones"
value="#{altaPlantillasTrenesEstaciones.showPopUp}"
style="display:none;" />
</a4j:outputPanel>
バックアップビーン。 JAVA
private boolean showPopUp;
@PostConstruct
public void init() {
...
setShowPopUp(true);
}
POPUP.XHTML私が間違っているのWHAT AM
<rich:modalPanel id="idAltaPlantillasTrenesEstacionesPop" height="200"
width="400" rendered="true">
<a4j:form>
........
</a4j:form>
</rich:modalPanel>
???何かを追加する必要がありますか?
大変ありがとうございます
これは機能しました!ありがとう! – GuillermoLam