开发者

reRender a specific column of rich:dataTable

开发者 https://www.devze.com 2023-03-07 05:24 出处:网络
Is it possible to reRender only 1 specific column of rich:dataTable? I tried giving the column an id and reRender=\"columnId\" but that just crashed the page.

Is it possible to reRender only 1 specific column of rich:dataTable?

I tried giving the column an id and reRender="columnId" but that just crashed the page.

If so, how?

<f:facet name="header">
    <rich:columnGroup>
        <rich:column>
            <h:selectBooleanCheckbox value="#NotepadManagementGenControl.returnAllNotepads}" >
                 <a4j开发者_JAVA百科:support event="onclick" action="#{NotepadManagementGenControl.returnNotepadToggleAll}" reRender="myColumn"/>
            </h:selectBooleanCheckbox>
            <h:outputText value="#{l.return1}"></h:outputText>
        </rich:column>
    </rich:columnGroup>
</f:facet>
<rich:column id="myColumn">
    <h:selectBooleanCheckbox value="#{dataItem.returnNotepad}" />
</rich:column>


I managed to solve this with reRendering not the column but the booleanCheckBox itself (and thus reRendering al checkboxes in column).

0

精彩评论

暂无评论...
验证码 换一张
取 消