当rich:calendar
值发生 onchange 事件时,我需要执行两个独立的操作方法。
在下面的代码片段中哪些是正确的并且表现良好?
代码段:1 这是一个有效的EL吗?
<rich:calendar id="startDate" value="#{requestScopedBean.startDate}">
<a4j:support ajaxSingle="true" event="onchanged"
action="#{requestScopedBean.method1,requestScopedBean.method2}"
reRender="field1,field2,field3">
</a4j:support>
</rich:calendar>
摘录:2
<rich:calendar id="startDate" value="#{requestScopedBean.startDate}">
<a4j:support ajaxSingle="true" event="onchanged"
action="#{requestScopedBean.method1}"
reRender="field1,field2,field3">
</a4j:support>
<a4j:support ajaxSingle="true" event="onchanged"
action="#{requestScopedBean.method2}"
reRender="field1,field2,field3">
</a4j:support>
</rich:calendar>
请建议我将两个操作方法绑定到richfaces中的事件的正确选项?