Skip to Content
0
Former Member
Nov 16, 2005 at 06:17 PM

get specific row selected in tableview

27 Views

I have a tableview that has a link column. When I click the link a method is called which navigates me to a specific JSP page. Works great. Now I want to be able to pass some specific information on to my bean when the link is clicked. Here is a code snippet:

Vector colVector = new Vector();
colVector.addElement("gID");
colVector.addElement("gName");
colVector.addElement("gView");
colVector.addElement("uID");
		
DefaultTableViewModel tvm = new DefaultTableViewModel(resultVector, colVector);

tvm.getColumn("gView").setType(TableColumnType.LINK);
tvm.getColumn("gView").setOnItemClick("LinkClicked");

return tvm;
}

public void onLinkClicked (Event evt){
    //Go to JSP
}

I would also like to know how to make the Column 'uID' invisible, but that is the value I would like to pass to my bean if the link is clicked for that particular row. Thanks.