-
1. Re: Selection of a row in a datatable
anonym365456 Jul 20, 2008 1:50 PM (in response to reineke)forgive me if I misunderstand your question, but if you want to know which row has been selected there is many ways to get that information, eg. by rowId attribute, or requestMap ....
-
2. Re: Selection of a row in a datatable
anonym365456 Jul 20, 2008 1:52 PM (in response to reineke)or dataModel
// is there any way to edit my own posts? -
3. Re: Selection of a row in a datatable
reineke Jul 20, 2008 1:58 PM (in response to reineke)the question is for me: is the datatable selectable or not and if yes how can I select the datatable; I cannot find any atribute for that (like in the scrollable datatable component).
any solution is highly appreciated. -
4. Re: Selection of a row in a datatable
anonym365456 Jul 20, 2008 2:28 PM (in response to reineke)In my knowledge, data table rows aren't selectable.
But you can do similar action with rows, eg. onClick atribute or add column h:selectBooleanCheckbox to h:dataTable indicating whether user has selected this row or not.
I don't know any better solution to your problem. -
5. Re: Selection of a row in a datatable
jazir1979 Jul 21, 2008 12:09 AM (in response to reineke)Here's a link that does this with javascript and radio buttons-
http://www.ibm.com/developerworks/rational/library/05/1213_he/index.html
You may need to adapt it a bit, but it might help."Grzegorz.Demecki" wrote:
In my knowledge, data table rows aren't selectable.
But you can do similar action with rows, eg. onClick atribute or add column h:selectBooleanCheckbox to h:dataTable indicating whether user has selected this row or not.
I don't know any better solution to your problem. -
6. Re: Selection of a row in a datatable
jpagera Jul 21, 2008 7:37 AM (in response to reineke)refer to richfaces doc
and have a look at <rich:contextMenu> examples
u will see an example about getting table selection
i used it and it work fine for me
its better than use radiobutton or checkbox
..........
good luck -
7. Re: Selection of a row in a datatable
reineke Jul 21, 2008 11:08 AM (in response to reineke)thank you for your reply - is this example in the devguide? I could not find it ad hoc.
-
8. Re: Selection of a row in a datatable
mail.micke Jul 21, 2008 11:14 AM (in response to reineke)If you use binding to the data table you can get the clicked row with getRowData()
-
9. Re: Selection of a row in a datatable
reineke Jul 21, 2008 11:33 AM (in response to reineke)thanks and how could we get a row selected? I mean visually that the use can see a row is selected, any tested workaround?