maybe you should send the stack trace...



|--------+------------------------>
|        |          "Frank"       |
|        |          <[EMAIL PROTECTED]|
|        |          il.com>       |
|        |                        |
|        |          15.04.2005    |
|        |          16:43         |
|        |          Please respond|
|        |          to "Tapestry  |
|        |          users"        |
|        |                        |
|--------+------------------------>
  
>----------------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                                     |
  |      To:     "Tapestry users" <[email protected]>            
                                                     |
  |      cc:                                                                    
                                                     |
  |      Subject:     Re: Help with component expression                        
                                                     |
  
>----------------------------------------------------------------------------------------------------------------------------------|




I changed it, I now get

Unable to resolve expression 'authorTable' for
[EMAIL PROTECTED]

I can send you the HibLib zip file if you need to look at it.

Thanks
Frank
----- Original Message -----
From: "Markus Eberle" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Friday, April 15, 2005 10:38 AM
Subject: Re: Help with component expression


> No, you don't have to rename it, is ok so.
> Have you tried to rename
> <binding name="tableModel" expression="AuthorTable"/>
> in to
> <binding name="tableModel" expression="authorTable"/>
> with a lowercase "author".
>
>
> On Friday 15 April 2005 16:06, Frank wrote:
>> 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]
>
>

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






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

Reply via email to