datatable - selections are cleared in filter/sort

UI Components for JSF
Post Reply
stier01
Posts: 23
Joined: 27 Aug 2011, 15:47

26 Nov 2011, 03:29

Hi,

I know this is a known issue already posted here http://code.google.com/p/primefaces/iss ... il?id=1714 and here http://code.google.com/p/primefaces/iss ... il?id=1798.
But as demonstrated by the issuer in the last link, selections are not really cleared, just not highlighted anymore.
If you refresh the page (e.g. with F5) selections made before are highlighted again.

Cagatay, in that issue you posted not to fix the problem, as it can be solved using pagination. Unfortunately pagination does NOT help. You also have to refresh page to get highlighting back.
So..is there any way to rerender/update/refresh the table immediateley after sorting/filtering to see selection?
An update of the table via

Code: Select all

<p:ajax event="sort" update=tableid"/>
does not work and refreshing the whole page each time can't be an option...

Regards
PF 3.0 RC1 SNAPSHOT on Mojarra-2.1.2, Tomcat 7.0

stier01
Posts: 23
Joined: 27 Aug 2011, 15:47

27 Nov 2011, 00:01

CORRECTION:
single selection highlighting stays displayed after sort or filter, like shown here http://www.primefaces.org/showcase-labs ... omplex.jsf
BUT
multiple selections lose highlighting after sort or filter
PF 3.0 RC1 SNAPSHOT on Mojarra-2.1.2, Tomcat 7.0

jocar
Posts: 1
Joined: 28 Nov 2011, 02:44

28 Nov 2011, 11:48

hello, i'm facing exactly the same problem.
I tried the showcase example and had no problems (single selection).
Then I downloaded the sources, changed to multiple selection (without checkboxes), edited the sources and recompiled it.
Now I have the described problem. No highlighting of rows after filter.
Anybody can help?

stier01
Posts: 23
Joined: 27 Aug 2011, 15:47

01 Dec 2011, 13:31

I opened a new issue regarding this problem:
http://code.google.com/p/primefaces/iss ... il?id=2947
PF 3.0 RC1 SNAPSHOT on Mojarra-2.1.2, Tomcat 7.0

stier01
Posts: 23
Joined: 27 Aug 2011, 15:47

24 Dec 2011, 20:13

hi @ all

strangely enough the problem could not be replicated...
however, now with RC2, not even single selections are displayed properly after filtering.
see http://www.primefaces.org/showcase-labs ... omplex.jsf

cheers & merry x-mas
PF 3.0 RC1 SNAPSHOT on Mojarra-2.1.2, Tomcat 7.0

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 45 guests