0
我米試圖調用方法的bean時,在組合中選擇一個項目(富:選擇)如下:JSF /富2.0 - 當豐富的選擇項調用Bean方法:選擇
<rich:select id="combo"
value="#{bean.code}"
valueChangeListener="#{bean.productChanged}"
immediate="true" required="true">
<a4j:ajax event="change" render="callConflict"
oncomplete="javascript:showConflict();" />
<f:selectItems
value="#{bean.products}" />
<f:attribute name="attributeName"
value="#{bean.attribute}" />
</rich:select>
但是這個代碼,在bean的方法當項目更改而當COMBO失去焦點,只叫
至於應該做改變的產品,而不必等待組合失去焦點後,來調用Bean中的方法?
謝謝。