Thanks for the reply.

If I was to add rows to my list, then I haven't got separation of model from 
view.  What if I also wanted to display my same model in a different table at 
the same time?

I haven't been able to find an example of using a tablemodel for the values to 
back the table component.  Does anyone have some code they could share?

Thanks in advance,

Craig

-----Original Message-----
From: Darío Vasconcelos [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 20, 2005 9:24 PM
To: Tapestry users
Subject: Re: minimum number rows in table, table value question

I have used TableModel but I guess it is easier to use source/columns.
The source can be an array or a List of a specific object, the columns
can be as simple as a comma-separated String with the names of the
properties (ala OGNL) that you want to display from your object.

Regarding the minimum number of rows, wouldn't it be easier if you
expanded / trimmed your List of objects to 8? I don't think there's a
setting in contrib:Table to do such a thing...

On 7/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> 
> 
> Is it possible to state the minimum number of rows for a table?  I would
> some tables to always render 8 rows, regardless of how many items are in
> my model.
> 
> 
> 
> Also, I am having some difficulty building my value model.  I have gone
> through the tutorials, and bought the book.  But, what interface/class
> should I be looking at to supply the table values (ie TableModel in
> swing) ?  I saw ITableModel, but that does't seem to be it.  For now I
> have been using the source binding.
> 
> 
> 
> Thanks,
> 
> 
> 
> Craig
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 


-- 
Communism is man's exploitation of man. Capitalism is just the opposite.

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

Reply via email to