getting item from datatable

Hello

I have a list of items displayed in a datatable:

class Item {

String id;

//get/set

}

Each id record is displayed as a commandl link and on click I want to get the selected Item.

Currently I am getting the id via the request, but I want to see if there was a better way - like using an actionListener for example..

This is probably very simple...Any ideas?

[419 byte] By [jamesclintona] at [2007-11-26 15:28:40]
# 1
Check here how to use datatables: http://balusc.xs4all.nl/srv/dev-jep-dat.htmlYou also can download an EAR containing some samples.
BalusCa at 2007-7-8 21:44:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Nice 1 ... JSF is rocking my world right now...Many thanks AGAIN BalusC !!update:My solution worked perfectly based on your examples..again thanks
jamesclintona at 2007-7-8 21:44:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...