-
1. Re: dataScroller inside dataTable
ilya_shaikovsky Sep 5, 2008 8:33 AM (in response to lmk)1) remove binding from scroller.
2) just bind scroller "page" attribute and select value attribute to the same property inside the bean.
3) place rich:messages to the page in order to check errors. -
2. Re: dataScroller inside dataTable
lmk Sep 5, 2008 8:54 AM (in response to lmk)"ilya_shaikovsky" wrote:
1) remove binding from scroller.
2) just bind scroller "page" attribute and select value attribute to the same property inside the bean.
how can I get the number of pages used on selectItems? -
3. Re: dataScroller inside dataTable
ilya_shaikovsky Sep 5, 2008 9:23 AM (in response to lmk)I think you know the data lsit size and rows count you displaying inside one page ;)
-
4. Re: dataScroller inside dataTable
lmk Sep 5, 2008 9:32 AM (in response to lmk)"ilya_shaikovsky" wrote:
I think you know the data lsit size and rows count you displaying inside one page ;)
ohhhhhh yes exactly!! -
5. Re: dataScroller inside dataTable
lmk Sep 5, 2008 9:37 AM (in response to lmk)but I cannot get list size when I use filter.
-
6. Re: dataScroller inside dataTable
ilya_shaikovsky Sep 5, 2008 9:49 AM (in response to lmk)bind dataTable to request scoped attribute and use
UIDataTable table; ... table.getRowCount();
-
-
8. Re: dataScroller inside dataTable
lmk Sep 5, 2008 11:32 AM (in response to lmk)I get the same behaviour !
doesn't work correctelly.. -
9. Re: dataScroller inside dataTable
nbelaevski Sep 5, 2008 1:18 PM (in response to lmk)Hello,
Do you see messages like this one:
05.09.2008 20:15:41 org.richfaces.component.UIDatascroller setupFirstRowValue
WARNING: Datascroller j_id259:carList:scr2: The requested page #50 isn't found in the model containing 12 pages. Paging is reset to page #12
in server log or console? -
10. Re: dataScroller inside dataTable
lmk Sep 8, 2008 5:15 AM (in response to lmk)"nbelaevski" wrote:
Hello,
Do you see messages like this one:
05.09.2008 20:15:41 org.richfaces.component.UIDatascroller setupFirstRowValue
WARNING: Datascroller j_id259:carList:scr2: The requested page #50 isn't found in the model containing 12 pages. Paging is reset to page #12
in server log or console?
I get no warning message on the log,
the problem occurs when I try to update another scroller page; Im stil using binding for the 2 scroller and inside the selectOneMenu a4j support I add the action:<h:selectOneMenu value="#{bean.page}"> <f:selectItems value="#{bean.pages}" /> <a4j:support reRender="scroller_p,tab_p" event="onchange" action="#{bean.updateScroller}"></a4j:support> </h:selectOneMenu> --- public void updateScroller(){ scroller1.setPage(page); }
-
11. Re: dataScroller inside dataTable
lmk Sep 8, 2008 9:15 AM (in response to lmk)resolved!
just by setting the first scroller page as the second inside dataTable, so, no need to do it on java..