0

Has anyone used RichFaces on a secure site? I'm using the following:

Tomcat 6 RichFaces 3.3.1 (also tried 3.1.4.GA) intermediate certificate

My application is using the Rich panel bar. When using HTTPS, only the panel labels are rendered and I get the following JavaScript error:

'RichFaces' is undefined

This is the JavaScript creating the error: new Richfaces.PanelBar

When using HTTP, the panel bar renders as expected without any JavaScript errors.

So it appears the application is unable to find the necessary RichFaces Library when using HTTPS. I've been unable to locate any documentation regarding additional configuration for HTTPS.

Any help would be much appreciated.

4

2 回答 2

0

我们通过 HTTPS 成功使用 Richfaces (Apache->mod-jk->JBoss 5.1.0)。我们还没有看到您遇到的确切问题,但我们确实遇到了这个问题https://jira.jboss.org/jira/browse/JBIDE-4500 https://jira.jboss.org/jira/浏览/RF-7399] 2。可能有帮助,也可能没有帮助,我至少想确认您可以通过 HTTPS 运行 Richfaces 就好了。

于 2009-07-24T19:43:41.483 回答
0

当您的应用程序不向浏览器发送带有特定 MIME TYPE 信息的文件时,浏览器会尝试猜测正确的 MIME TYPE。

这在 https 下比在 http 下更受限制。因此,这可能会导致您观察到的 404 响应。

尝试在 web.xml 中定义所有相关的文件/MIME TYPE 映射。

例如。

<mime-mapping>
    <extension>xcss</extension>
    <mime-type>text/css</mime-type>
</mime-mapping>
于 2015-09-15T15:12:28.770 回答