A4j 按钮不触发
我在 JSF 项目中使用了 richfaces。现在我正在对 Seam 进行同样的尝试。 但我总是遇到相同的 JavaScript 错误:
Message: Object required
Line: 2791
Code: 0
URI: http://localhost:8080/myapp/a4j/g/3_3_1.GA/org/ajax4jsf/framework.pack.js
s:button 标记有效
<s:button id="eMail0" value="sButton" action="#{Mailer.sendMail}" />
以下两种情况都会导致 IE8 中描述的 JavaScript 消息(Firefox 显示没有响应)
<a4j:commandButton id="eMail1" value="cmdButton" action="#{Mailer.sendMail}" />
<a4j:commandLink id="eMail2" action="#{Mailer.sendMail}">
<f:param name="email" value="param"/>
<h:outputText value="eMailLink"/>
</a4j:commandLink>
有关如何解决该问题的任何想法,或者是否存在已知问题有接缝2.2.0?
I used richfaces in a JSF project. Now I'm trying the same with Seam.
But I always get the same JavaScript error:
Message: Object required
Line: 2791
Code: 0
URI: http://localhost:8080/myapp/a4j/g/3_3_1.GA/org/ajax4jsf/framework.pack.js
The s:button tag works
<s:button id="eMail0" value="sButton" action="#{Mailer.sendMail}" />
Both of the following lead to the described JavaScript message in IE8 (Firefox shows no response)
<a4j:commandButton id="eMail1" value="cmdButton" action="#{Mailer.sendMail}" />
<a4j:commandLink id="eMail2" action="#{Mailer.sendMail}">
<f:param name="email" value="param"/>
<h:outputText value="eMailLink"/>
</a4j:commandLink>
Any ideas on how I could work around that issue, or is there a known issues with seam 2.2.0?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否将按钮包含在
中?Have you enclosed the buttons in
<h:form>
?