Ajax 隐藏a4j:outputPanel并在提交a4j命令按钮上显示
从现在起,我有:Ajax 隐藏a4j:outputPanel并在提交a4j命令按钮上显示,ajax,jsf,richfaces,ajax4jsf,Ajax,Jsf,Richfaces,Ajax4jsf,从现在起,我有: ..... <a4j:commandButton action="#{ChoixContratBean.Submit1}" reRender="suite" value="valider" > </a4j:commandButton> </a4j:outputPanel> <a4j:outputPanel display="none" id="suite"> <jsf:outputTex
.....
<a4j:commandButton action="#{ChoixContratBean.Submit1}" reRender="suite" value="valider" > </a4j:commandButton>
</a4j:outputPanel>
<a4j:outputPanel display="none" id="suite">
<jsf:outputText id="reponseeFormule"............
。。。。。
好吧,过了几个小时我终于发现了。(我在几个小时的搜索后发布了这个问题,我是richfaces的初学者)
这不是很复杂,但有一个小陷阱,你不想陷入其中。最后的代码如下所示:
......<a4j:outputPanel id="check">
<richfaces:panel rendered="#{ChoixContratBean.essaiValid}">
<jsf:outputText value="#{ChoixContratBean.check}" /></richfaces:panel>
</a4j:outputPanel>
</td>
</tr>
</table>
</richfaces:simpleTogglePanel>
<a4j:commandButton action="#{ChoixContratBean.Submit1}" reRender="suite, check" value="valider"> </a4j:commandButton>
<a4j:outputPanel id="suite" >
<richfaces:simpleTogglePanel rendered="#{ChoixContratBean.suite}" switchType="ajax"......
。。。。。。