This content has been marked as final.
Show 2 replies
-
1. Re: ReRender order
sergeysmirnov Jul 10, 2007 1:55 PM (in response to alfons12)It is not possible. The order of the rendering is pre-defined by the location of the components in the component tree.
-
2. Re: ReRender order
alfons12 Jul 11, 2007 4:16 AM (in response to alfons12)Thank you for reply.
Well, is there any good practice to solve the following issue?
after adding a new item to database, I need to rerender datatable and also rerender the pagination navigation bar (I need rerender number of items, current page, according to the new item count).
But the pagination nav. bar is placed first, so it is rerendered with old values - new values are loaded during dataTable rerender proccess:[<h:dataTable id="mainTable" value="#{itemManager.items}"
- itemManager.getItems loads data from database(it calls session bean method for database access).
Maybe I can store collection of items in JSF bean and dataTable should be loaded from "local" collection not directly from database - then it would be ok, because the collection of items will be loaded prior to rerender process.
I don't know wheter this is an elegant solution.
Thank you