> (message (Hello *Human*)
> (body '(
>
> <t:dataTable value="#{mailbox.selectedFolder.mails}"
>              var="item"
>              rendered="#{mailbox.selectedFolder != null}"
>              preserveDataModel="true"
>              sortColumn="#{mailbox.selectedFolder.sortColumn}"
>              sortAscending="#{mailbox.selectedFolder.sortAscending}"
>              preserveSort="true"
>              rows="#{mailbox.selectedFolder.rowsPerPage}">
>   <t:dataScroller pageCountVar="#{mailbox.selectedFolder.pageCount}"
>                   pageIndexVar="#{mailbox.selectedFolder.pageIndex}"
>                   rowsCountVar="rowsCount"
>                   firstRowIndexVar="#{mailbox.selectedFolder.firstRowIndex}"
>                   displayedRowsCountVar="displayedRowsCount"
>                   fastStep="10" paginator="true" paginatorMaxPages="10">
>   ...
>   </t:dataScroller>
> </t:dataTable>
>
> I need to save a t:dataScroller' position in a JavaBean
> (mailbox.selectedFolder). But it seems that it doesn't work ;( How could
> it be solved?
>
> Sorting' state is saved perfectly but not scroller' state.
>
>   

judging from the examples and the TLD documentation I would say you
cannot use EL in pageCountVar, pageIndexVar,... in order to save these
values in a backing bean.
What happens instead is that the current value will be saved in request
scope under a key that will be read from your EL expression.
Say you have initialized mailbox.selectedFolder.pageCount with 0 the
current value of pageCount will be stored in request scope under the key
"0" which is probably not what you would like to do.
I'm not sure but maybe you can use t:updateActionListener in order to
store these values in a bean.

Kind regards from the Lake of Constance,
Matthias


Reply via email to