1 of 1 people found this helpful
are you using a rich:datascroller? Just give it an id and in your createNewEntry method do the following:
FacesContext ctx = FacesContext.getCurrentInstance();
UIComponent component = ctx.getViewRoot().findComponent(fullClientIdOfTheDataScroller); // like myform:myDS
I'm not sure what the datascrollers class name is, but you'll have to cast the UIComponent to the datascrollers class and then you'll have some methods to set the page.
Additionally you'll have to rerender both the table and the datascroller.
Ok. But how can I find the right page for the new entry?
Should I use the walk method on the datamodel?