Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ajax 隐藏a4j:outputPanel并在提交a4j命令按钮上显示_Ajax_Jsf_Richfaces_Ajax4jsf - Fatal编程技术网

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"......
。。。。。。