Primefaces组件未正确显示在chrome中

时间:2011-02-18 16:59:09

标签: google-chrome localhost primefaces

我使用JSF 2和Primefaces 2.2制作了一个小注册表,并将其部署在jboss上,在localhost上为6。

我正在使用primefaces lightbox

<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中,灯箱会打开并保持黑色。灯箱内不会呈现任何页面。 此外,primefaces的密码组件显示当前键入的密码的强度仅适用于firefox和opera。

我配置了chrome以阻止所有Cookie和javascript。我为这两个添加了例外:

[*.]localhost

我还配置了chrome来阻止任何cookie或javascript,但它会让人想起它。

使用Chrome,主要展示(http://www.primefaces.org/showcase/ui/lightboxHome.jsf)有效!

windows hosts文件看起来也不错:

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

有什么想法吗?

提前致谢

2 个答案:

答案 0 :(得分:2)

视图标记需要设置contentType才能使某些PrimeFaces组件在Chrome中运行。

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

答案 1 :(得分:2)

相关问题