a4j:support 事件属性中可以有多个值吗?
a4j:support 事件属性中可以有多个值吗?
<a:support event="onchange, onsubmit" ajaxSingle="true"
action="#{customerSession.userCheckQuantity(_cartItem, index)}"
reRender="shoppingCartAjax, orderTotalAjax"></a:support>
can a4j:support have more than one value in the event attribute?
<a:support event="onchange, onsubmit" ajaxSingle="true"
action="#{customerSession.userCheckQuantity(_cartItem, index)}"
reRender="shoppingCartAjax, orderTotalAjax"></a:support>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,你不能。在
活动的 TLD 中 属性它说:
有一个 JIRA 请求此功能,但它仍然开放。由于它是针对 RF3 的,我猜这不会改变。
然而,还有另一个请求针对
a4j:ajax
(相当于RF4) 支持同样的事情。由于它是针对 RF4 的,我猜它更有可能被实现。作为一种替代方法,您可以为一个组件使用多个
a4j:support
标签:No, you can't. In the TLD for the
event
attribute it says:There has been a JIRA requesting this feature, but it's still open. Since it's for RF3, I'm guessing this won't change.
However there is another request for
a4j:ajax
(equivalent in RF4) supporting the same thing. Since it's for RF4, I'm guessing it's more likely to get implemented.As an alternative, you can just use multiple
a4j:support
tags for one compoent:您可以为此使用 actionparam,这是一个示例:
类似于 a4j:support
You can use actionparam for this, here is an example:
similar for a4j:support