0

I'm using an extendedDataTable because I need multiselect. The table can get pretty large, so I'm using a dataScroller for paging.

What I want to achieve is, that the selection is cleared when switching to another page. The selection is stored in the backing bean and I have a method clearTableSelection to clear the selection.

Now my question is, how is it possible to call the method clearTableSelection when switching pages.

4

1 に答える 1

0

簡単な解決策を見つけました:

...
<rich:extendedDataTable>
    ...
    <f:facet name="footer">
        <rich:dataScroller 
            onbegin="document.getElementById('form:hiddenButton').click()" />
    </f:facet>
</rich:extendedDataTable>
<a4j:commandButton 
    id="hiddenButton" action="#{backingBean.clearTableSelection}"
    value="HiddenButton" execute="@this" style="display: none;" />
...
于 2012-04-16T15:00:42.750 に答える