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

Reply via email to