我正在使用 Primefaces 3.3.1。我的用例很简单,登录后用户将登陆他的主页。
主页显示p:layout
西部和中心部分。
在 Firefox 11 和 IE 9 中,按下登录按钮后不会显示,但如果我刷新或重新加载页面,它会正确显示。但在 Chrome 中登录布局正确显示后,无需手动刷新。
我不确定为什么这不适用于 Firefox 和 IE。
home.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
<p:layout style="min-width:400px; min-height:200px;">
<p:layoutUnit position="west" size="200" header="Left" resizable="true" closable="false" collapsible="true">
</p:layoutUnit>
<p:layoutUnit position="center">
</p:layoutUnit>
</p:layout>
</h:body>
</html>
有没有人遇到过类似的问题?
在 Firebug 中,我没有看到任何错误。
更新:
似乎这种情况正在发生,因为.ui-layout-unit
有visibility = hidden
. 但为什么?