2010-08-12 53 views
0

我有以下的情況下(使用豐富的面):面板重裝點擊

... 
    <a4j:outputPanel id="foo"> 
    <h:commandButton disabled="#{not _user.selected}" value="Do Stuff" /> 
    </a4j:outputPanel> 
    ... 
    <h:selectBooleanCheckbox value="#{_user.selected}"> 
    </h:selectBooleanCheckbox> 
    ... 

我現在想的「富」面板重裝當我點擊複選框。將重新加載功能添加到複選框的正確方法是什麼?

回答

3

,因爲你正在使用RichFaces的(如你的標籤):

<h:selectBooleanCheckbox value="#{_user.selected}"> 
    <a4j:support event="onclick" reRender="foo" ajaxSingle="true"/> 
    </h:selectBooleanCheckbox> 
+0

謝謝,我知道它是簡單的東西,我只是忽視;-) – perdian 2010-08-13 07:25:09