myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curtney Jacobs <c.curtneyjac...@comcast.net>
Subject [Trinidad] Default selection for Table
Date Fri, 16 Nov 2007 01:39:21 GMT
Greetings everyone!

I have a table (with rowSelection="single") that is pre -populated with data 
and I would like a default row to be selected. How can I do that?

I am using seam to inject the table component

 @In (value="#{uiComponent['postalAddressForm:postalAddressTable']}", 
required=false)
    private UIComponent uiComponent;

however,  when I try to do the following I am getting a NullPointerException:
UIXTable table = (UIXTable)uiComponent;
				table.setRowKey(contactMethod());

My thinking is I get this error because the table has not been rendered yet, 
thus injecting the component produces the exception.


All suggestions are welcomed.

Curtney


Mime
View raw message