0

我正在使用 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-unitvisibility = hidden. 但为什么?

在此处输入图像描述

4

1 回答 1

1

我遇到了同样的问题,但是我遵循了该线程的初始指示(可序列化和 config 上的配置web.xml)。最后我添加了<form>主布局的标签。

有用的链接:

于 2012-08-29T09:59:24.450 回答