-
1. Re: filterMethod is called on every action on page
ilya_shaikovsky Aug 28, 2008 3:40 AM (in response to abcd1)filter method should be called every time on dataTable rendering in order to show current data carefully. filtering will be lost after request in other case.
-
2. Re: filterMethod is called on every action on page
abcd1 Aug 28, 2008 4:41 AM (in response to abcd1)thanks for the reply.
But it is calling the method for each row, ie no. of rows.
ie, if dataTable has 1000 rows it is calling the filterMethod 1000times even if the filter value is null.
can it be removed -
3. Re: filterMethod is called on every action on page
ilya_shaikovsky Aug 28, 2008 6:13 AM (in response to abcd1)look.. your filter method could contains of any conditions.. So, we could not say that the condition for its calling is not null filterValue. So it should be called for every row.
-
4. Re: filterMethod is called on every action on page
abcd1 Aug 30, 2008 7:00 AM (in response to abcd1)thanks for the reply, now i understand.
but when i use filterBy the dataScroller attached with the dataTable is not rerendering. that is why i used filterMethod.
is it a bug. -
5. Re: filterMethod is called on every action on page
lmk Sep 1, 2008 4:17 AM (in response to abcd1)reRender should work on the 3.2.2.CR1 version, dataScroller will be rerendered after using filterBy!
if it does not work, put the dataScroller inside a4j:outputPanel and reRender the outputPanel! -
6. Re: filterMethod is called on every action on page
ilya_shaikovsky Sep 1, 2008 7:03 AM (in response to abcd1)yes, add rerender="ds" to your dataTable component
-
7. Re: filterMethod is called on every action on page
abcd1 Sep 2, 2008 3:25 AM (in response to abcd1)Thanks for the help.
rerender is not there for dataTable in3.2.0
so i should update to 3.2.2 right?