我也在寻找这个问题的答案。我正在开发一个在 Glassfish 中运行的 JavaEE6/JSF2 Web 应用程序(最初是 3.0.1,现在是 3.1)。
基于 FORM 的登录在 Firefox3.x 版本上运行良好,在 Safari5.0.5 上仍然运行良好,但在 Firefox4.0.1 和 Google Chrome 12.0.742.91 上“静默失败”。(我在 Mac OS X 上,没有检查 IE。)
由于没有诊断,因此很难提供诊断。
问:我可以打开 Firefox 和/或 Google Chrome 的任何其他日志或可能的诊断来源,这些日志或可能的诊断来源可能会对主题有所启发吗?
这是我的表格:
<form id="loginForm" method="POST" action="j_security_check">
<h:panelGrid columns="3" styleClass="login" columnClasses="login-label, login-field">
<h:outputLabel for="j_username">Username:</h:outputLabel>
<h:inputText id="j_username" required="true" />
<h:message for="j_username" />
<h:outputLabel for="j_password">Password:</h:outputLabel>
<h:inputSecret id="j_password" required="true" />
<h:message for="j_password" />
<h:outputLabel for="login_button"></h:outputLabel>
<h:commandButton id="login_button" value="Login" />
</h:panelGrid>
这类似于其他地方显示的声称与 Firefox 4 兼容的示例,例如从此处(为了尊重此处未复制的版权条件,请检查外部链接然后返回):
在此处输入链接描述
该登录表单声称与 Mozilla Firefox 4、Internet Explorer 8、Chrome 11、Safari 5、Opera 11 兼容。但我看不出它与我自己的有很大不同。