Here is my code from the tutorial

// Return the model of the table
public ITableModel getAuthorTable() throws HibernateException
{
 Object[] data = null;
 Session session = getSession();
 Query query = null;
 query = session.createQuery("from Author as auth");

// Generate a simple sorting column model that uses OGNL to get the column data
ITableColumnModel objColumnModel =
new ExpressionTableColumnModel(new String[] {
"First Name", "getFirstName()",
"Last Name", "getLastName()"
}, true);


 data = query.list().toArray();
 session.close();
 // Create the table model and return it
 return new SimpleTableModel(data, objColumnModel);
}

Do I need to change getAuthorTable() to getAuthorTableModel()

Thanks

Frank

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to