如何提交带有复选框的表单?
是否可以借助复选框提交 JSF 表单?
我有多个复选框,当我单击其中一个复选框时,它应该实际提交表单并转到下一页。复选框值应该绑定到支持 bean。
Is it possible to submit a JSF form with the help of a checkbox?
I have multiple checkboxes and when I click on one of them, then it should actually submit the form and go to the next page. The checkbox value should be bound to a backing bean.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 JSF 1.x,您可以执行以下操作:
如果您使用 JSF 2.x,则可以使用 ajax:
对于 JSF 和 ajax,请查看: 学习 JSF2:JSF 中的 Ajax – 使用 f:ajax标签
With JSF 1.x you can do:
If you use JSF 2.x, then you can use ajax:
For JSF and ajax take a look at: Learning JSF2: Ajax in JSF – using f:ajax tag