Is it possible to keep the filterBy value of a rich:datatable rich:column filterBy="..."
in SESSION scope?
views:
474answers:
1
A:
Yes, use el expression pointing to property of bean that is put in session scope.
<rich:datatable ...>
<rich:column filterValue="#{yourSessionBean.filterByProperty}" ... >
...
I'm assuming you want to store filterValue
not filterBy
.
cetnar
2009-11-18 09:43:34
It's not that easy... filterBy points to a field of the entity used to fill the datatable. So I can't simply use a session bean. If the datatable loops with value="#{myEntities} var="e" than I use something like filterBy="#{e.field}".
Daniel Bleisteiner
2009-11-18 10:39:21
@Daniel So you need store `filterValue` attribute value not `filterBy`. Am I right?
cetnar
2009-11-18 11:05:01
Ah... this might be a solution... I'll test it. Thanks so far.
Daniel Bleisteiner
2009-11-18 12:57:42
This works quite well... thanks!
Daniel Bleisteiner
2009-11-18 13:42:45