This content has been marked as final.
Show 2 replies
-
1. Re: Select object to show in a datatable from server side
mcmurdosound Feb 10, 2012 1:16 PM (in response to ahoehma)1 of 1 people found this helpfulare 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.
-
2. Re: Select object to show in a datatable from server side
ahoehma Feb 12, 2012 1:35 PM (in response to mcmurdosound)Ok. But how can I find the right page for the new entry?
Should I use the walk method on the datamodel?