Java Richfaces弹出面板不工作

Java Richfaces弹出面板不工作,java,popup,richfaces,popuppanel,richfaces-modal,Java,Popup,Richfaces,Popuppanel,Richfaces Modal,每当Java代码中出现错误时,我都会将页面重定向到错误页面。请在下面找到我的代码。但我的IE里什么都没有 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http:

每当Java代码中出现错误时,我都会将页面重定向到错误页面。请在下面找到我的代码。但我的IE里什么都没有

<html xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:ui="http://java.sun.com/jsf/facelets"
                  xmlns:h="http://java.sun.com/jsf/html"
                  xmlns:f="http://java.sun.com/jsf/core"
                xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
<head>
</head>                
<body>                  
<div style="width:700px; text-align:center;">
                <span style="font-size: 12pt; font-face: bold; color: red">
                                Refund initiate failed! Please contact the help desk for assistance.
                </span>

<rich:popupPanel id="messagePanel" modal="true" autosized="true" resizeable="false"
                                  >
                                  <h:panelGrid columns="1">
                                               Refund initiate failed! Please contact the help desk for assistance.
                                  </h:panelGrid>                           
                                  <center>      
                                  <h:panelGrid columns="1">
                                         <h:commandButton immediate="true" value="close"
                                                onclick="#{rich:component('messagePanel')}.hide(); return false;"/>                            

                                  </h:panelGrid>       
                                  </center>
                       </rich:popupPanel>
</div>
</body>
</html>

退款启动失败!请联系服务台寻求帮助。
退款启动失败!请联系服务台寻求帮助。
默认情况下,
是隐藏的,要使其显示,请使用
show=“true”
。读这本书

编辑:


您的页面格式不正确,请使用
,以便导入资源(CSS和JS)。

我不明白您的问题是什么。弹出面板不会出现。只需清空页面即可显示我已经编辑了答案,如果仍然不起作用,请检查生成的HTML。