You can adjust the table’s paging state in your action by getting a
reference to the table component (you can create a getter for this on
your page bean by right-clicking the control in the view editor and
selecting Source > Create Control Accessor) and setting
the table component’s “first” property to the index of the first row to
display, and/or its “rows” property to the number of rows to display.
Alternately, if you have those properties bound to a property on some
bean (like your page bean), you can just adjust those properties on that
bean.
With the jsf table’s design the paging of the ui is independent of
the data model. The ui (the table control) doesn’t necessarily know
when the data model changes, or whether it’s been changed by a ui add
operation or by some remote change to the back-end data store. That’s
why you have to manually adjust the table control’s paging state.
#webMethods#MWS-CAF-Task-Engine#webMethods-BPMS