This content has been marked as final.
Show 2 replies
-
1. Re: Reset pagenumber of datascroller ?
diegocoronel Nov 19, 2007 7:19 AM (in response to joachimhb)workaround for you:
String id = "paisSearch:paisList"; UIComponent comp = FacesContext.getCurrentInstance().getViewRoot().findComponent(id); UIData uidata = (UIData) comp; uidata.setFirst(0);
use this in your action, if you got a better solution, pls i wanna know :) -
2. Re: Reset pagenumber of datascroller ?
joachimhb Nov 22, 2007 6:45 AM (in response to joachimhb)Thank you, this works, allthough I added a NullPointerException. I would rather there be a more simple solution, as the ID of the component changes based on the components that it is inside (say if you add a panel or something in a higher nesting).
I'll be sure to post back if I find a better solution!"DiegoCoronel" wrote:
workaround for you:String id = "paisSearch:paisList"; UIComponent comp = FacesContext.getCurrentInstance().getViewRoot().findComponent(id); UIData uidata = (UIData) comp; uidata.setFirst(0);
use this in your action, if you got a better solution, pls i wanna know :)