-
1. Re: Retreiving Row Data w/ ExtendedDataTable Multi-Selection
ilya_shaikovsky Dec 4, 2009 6:59 AM (in response to kmix)My application is very similar the the ExtendedDataTable sample in richfaces-demo.
so just download sources and check how the selected rows objects get in richfaces-demo bean. -
2. Re: Retreiving Row Data w/ ExtendedDataTable Multi-Selection
kmix Dec 4, 2009 1:07 PM (in response to kmix)I've been browsing through the sources on the SVN -- I must be missing something in your code. My code is almost identical, but all I'm able to pull out of the Selection object is the row index (matching the rowvar displayed in the table). Based on that row index, how am I supposed to retrieve the object in the row using the ExtendedTableDataModel object? I know I must be missing a simple, key concept somewhere in this -- I'd appreciate any help you could provide.
-
3. Re: Retreiving Row Data w/ ExtendedDataTable Multi-Selection
clerum Dec 4, 2009 4:33 PM (in response to kmix)I took a look at this code as well and I'm not seeing the difference from demo source.
I also am only able return the row index rather than the object key -
4. Re: Retreiving Row Data w/ ExtendedDataTable Multi-Selection
nbelaevski Dec 7, 2009 7:11 AM (in response to kmix)Have you checked if getKey() and walk() methods were called?
-
5. Re: Retreiving Row Data w/ ExtendedDataTable Multi-Selection
clerum Feb 2, 2010 11:27 PM (in response to nbelaevski)I've been digging through this a little more and with the help from http://community.jboss.org/message/68219#68219 I've figured out that the issue appears to be with having a filterBy and SortBy on a column.
What I am seeing is as follows
1. If the columns have neither a sortBy or filterBy then multiSelection works correctly. Keys are returned correctly.
2. If the columns have just a sortBy then the multiSelection will work unitly the table is sorted....after that the keys are again returned as the row number.
Using 3.3.2SR1
I can provide a couple files to drop into a seam-gen project to reproduce if nessasary
Is there a JIRA on this?
-
6. Re: Retreiving Row Data w/ ExtendedDataTable Multi-Selection
clerum Feb 3, 2010 12:48 PM (in response to clerum)Attaching test files.
This should drop into a seam-gen project.
I should also note that this does happen within a conversation which you can see through the seam.debug page.
-
extendedDataTable.zip 3.6 KB
-
-
7. Re: Retreiving Row Data w/ ExtendedDataTable Multi-Selection
clerum Feb 8, 2010 10:10 AM (in response to nbelaevski)Those methods are getting called but are returing the rowIndex (0,1,2,3) instead of the "Key" of the row. -
8. Re: Retreiving Row Data w/ ExtendedDataTable Multi-Selection
ilya_shaikovsky Feb 10, 2010 9:11 AM (in response to clerum)dropped your pages and objects without modifications into the test project. selection just works as it should. keys used.
Then removed filtering (as you said that not works if only sorting used) - result is the same.
Jboss seam 2.2.0 and richfaces 3.3.3-snapshot were used for test.
-
9. Re: Retreiving Row Data w/ ExtendedDataTable Multi-Selection
clerum Feb 11, 2010 11:02 AM (in response to ilya_shaikovsky)Just tested with richfaces-impl-3.3.3-20100210.213042-118 and still seeing the same behavior. This is with a seam-gen 2.2.0GA project with richfaces-api,impl,api all replaced with nightly jars
It is an exploded EAR if that makes any difference to which you have to add richfaces-impl.jar to deployed-jars-ear.list
Hit me up on IRC if you want the ear file.
-
10. Re: Retreiving Row Data w/ ExtendedDataTable Multi-Selection
clerum Feb 12, 2010 9:28 AM (in response to clerum)<removed>
-
11. Re: Retreiving Row Data w/ ExtendedDataTable Multi-Selection
ilya_shaikovsky Feb 12, 2010 4:36 AM (in response to clerum)wow... 92Mb not sounds like "minimalistic" samlple.. but will start download.
Actually I hope - it could be dropped to App server and run and not requires additional DB settings or something else.
-
12. Re: Retreiving Row Data w/ ExtendedDataTable Multi-Selection
clerum Feb 12, 2010 8:46 AM (in response to ilya_shaikovsky)I figured since we were seeing different things with just those four files I would send the whole project. It's still the same four files. Maybe because I used a deployed ear? -
13. Re: Retreiving Row Data w/ ExtendedDataTable Multi-Selection
ilya_shaikovsky Feb 12, 2010 9:02 AM (in response to clerum)It doesn't build fine on my side. You really can't just create simple 1-page project illustrating the problem? -
14. Re: Retreiving Row Data w/ ExtendedDataTable Multi-Selection
clerum Feb 12, 2010 9:28 AM (in response to ilya_shaikovsky)Here is the built ear. It's using the same files as before (for the source)
I don't know how else to do this. I tried providing the files to drop into a seam-gen project, but you weren't able to reproduce my issue with that so here is the ear to drop in. AS 4.2.3GA. the DS is just default hypersonic