Hello,

maybe someone can give me a hint how to set up tr:table (used under facelets/spring) and the selection of a row. I'm new to web-programming under an application framework like spring (and the use of dependency injection).

I create the table based on a List of query-results (list of objects).

Example:

<tr:table rowSelection="single" value="#{object}" var="sim">
...
</tr>

Now what I've read is that the following has to be added to the table tag:
selectionListener="userBean.selectionListener"

selectionListener corresponds to the following definition:
TestEventListener selectionListener;

TestEventListener is defined as follows:

public class TestEventListener implements SelectionListener {

public void processSelection(SelectionEvent arg0) throws AbortProcessingException {
       System.out.println("DebugTrinidad: " + arg0.toString());
   }

}

The method processSelection isn't called (recognized through the System.out.println) and even if it would be called, how could the SelectionEvent help me to find out which rows are selected? I also don't have any idea how to access the table model, because this is created automatically based on the list of objects.

Just for some further information:
I use trinidad 1.2.9, myfaces 1.2.2, spring-webflow-2.0.0.RC1

Maybe somebody has a working code snipped for me or has an idea why the method isn't called.

Anyway, any help is appreciated

Best regards

Reply via email to