Events on listGrid

Hi all,
I have a bjsf:listGrid inside a bjsf:window, the grid's behavior must be the following:
user could be navigate thought the grid with no event on server.
when user double click on a row or press enter with a row selected an event must be thrown to the server to get the row selected and close the window.
How could I get the dblclick or enter event on server?
I've tried to do it using a customActionListener and a handler such as:

         <bjsf:listGrid ....
            customActionListener="#{expedientes.itemSelected}">

                <e:handler event="dblclick" type="text/javascript">
                        <![CDATA[
                        bb.bjsf.sync(this,'custom');
                        ]]>
                </e:handler>
           ......
          </bjsf:listGrid>

but it doesn't works, it generates a server event but my method is not invoked.
This is the listener code:
        public void itemSelected(CustomActionEvent event) {
                System.out.println("Custom listener invoked");
        }      

In any case, I don't konw how to get the selected row from this method (It's not a SelectEvent)

Somebody could help me, please?
Any suggestion would be appreciated.

Regards.
David

Hi Nick, The custom action

Hi Nick,

The custom action handler that you have defined is correct.

The issue here is that you will need to override the existing event handling that is present in the Listgrid. Normally you can use the "userEventsFirst" attribute and set its value to "true", however this cannot be used on a component that contains children which the listGrid has.

-Senaka

and then?

isn't there any way to get a double click event from a listgrid??