p:dataTable selection problem

UI Components for JSF
Post Reply
pdebski
Posts: 25
Joined: 17 Jan 2011, 15:15

05 Jul 2011, 21:02

Hi,
I have a problem with data table selection.
I select a row, then I push F5 to refresh the page. Selected row loses CSS class "ui-selected", so it looks like there's no selected row, but in fact there is one (selected row object is still set in the backing bean property and I can show it's details by clicking commandButton).

I use released yesterday 3.0.M2 version.

tcnguyen
Posts: 36
Joined: 05 Apr 2011, 13:34

06 Jul 2011, 09:14

I have the same problem...
PrimeFaces 3.0.RC1 / Spring Webflow 2.3.0.RELEASE / SpringSource tc v2.1 / Tomcat 6.0.29.C.RELEASE

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

06 Jul 2011, 09:34

I think this is a general issue with ajax, refresh does the last action but ajax actions are ignored. If you select row with a non-ajax way, I think it will show the selected after full page refresh.

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

06 Jul 2011, 14:57

refresh does the last action but ajax actions are ignored
What do you mean Cagatay? Instant row selection set a selected row into a backing bean by selection=#{bean.selectedObject}. After refresh (F5) the selection should be restored from the backing bean again. Right?
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

starback
Posts: 10
Joined: 26 Mar 2011, 19:58

07 Jul 2011, 09:42

I have the same problem in latest 3.0.M2.
In 3.0.M1 and 2.2.1 it works well.
When can be expected to fix this bug?

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

07 Jul 2011, 10:10

I agree, selection survived F5 in the 2.2.1.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

pdebski
Posts: 25
Joined: 17 Jan 2011, 15:15

07 Jul 2011, 10:15

I agree too. I have just tested selection in 2.2.1 and it works.

pdebski
Posts: 25
Joined: 17 Jan 2011, 15:15

21 Jul 2011, 10:35

And what about this bug? Will it be fixed soon?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 58 guests