2011-02-18 42 views
1

我使用JSF 2和Primefaces 2.2製作了一個註冊表單,並將它部署在本地主機上的jboss上。Primefaces組件在chrome中沒有正確顯示

我使用primefaces燈箱

<p:lightBox iframe="true" width="80%" height="80%"> 
    <h:outputLink value="http://www.google.de" title="test"> 
     <h:outputText value="test"/> 
    </h:outputLink> 
</p:lightBox> 

在Firefox中是沒有問題的。

Opera也可以。

在Chrome 9.0.5中,燈箱打開並保持黑屏。在lightbox中不顯示任何頁面。 此外,顯示當前輸入密碼有多強的primefaces的密碼組件僅適用於Firefox和Opera。

我配置了chrome來阻止所有cookie和javascript。我加了兩個這樣的例外:

[*.]localhost 

我還配置Chrome瀏覽器不會阻止所有的Cookie或JavaScript,但它提醒破碎。

使用Chrome,primefaces展示(http://www.primefaces.org/showcase/ui/lightboxHome.jsf)的作品!

Windows主機文件看起來不錯過:

# localhost name resolution is handled within DNS itself. 
    127.0.0.1  localhost 
# ::1    localhost 

任何想法?

在此先感謝

回答

2

視圖標籤需要的contentType必須設置一些PrimeFaces組件在Chrome中工作。

<f:view contentType="text/html">