0

my interface is like in the picture

enter image description here

I want the value of the réduction field changes when the value of the inputNumberSlider changes.

<rich:inputNumberSlider id="slider"
    rendered="#{bean.showReductionForm}"
    value="#{bean.reduction}" 
    showArrows="true" 
    width="220"/>
<a4j:support event="onchange" reRender="datatableId"
    ajaxSingle="true"
    actionListener="#{bean.appRed}" /> 

any help plz

4

1 回答 1

1

你应该把a4j:support它作为一个孩子rich:inputNumberSlider来让它工作。

同样出于性能和可用性的原因,我会考虑使用ignoreDupResponsesrequestDelay属性(文档):

<rich:inputNumberSlider id="slider"
    rendered="#{bean.showReductionForm}"
    value="#{bean.reduction}" 
    showArrows="true"
    width="220">

    <a4j:support event="onchange" reRender="datatableId"
        ajaxSingle="true"
        actionListener="#{bean.appRed}"
        ignoreDupResponses="true"
        requestDelay="300"/> 

</rich:inputNumberSlider>
于 2014-08-21T10:21:12.240 回答