You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Vjeran Marcinko <vj...@tis.hr> on 2004/05/02 17:55:59 UTC
Advice - contrib:Table or Foreach ?
Hi.
I'm kinda tight with deadlines, so I don't have enough time for
experimenting ...
Anyway, I have to present some database data in tables, some columns' data
will be hyperlinks to additional data for that record etc... standard
stuff...
So, I need advice - should I start examining and using contrib:Table, or
playing with plain Foreach proved to be simplier for fresh starter ?
-Vjeran
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Advice - contrib:Table or Foreach ?
Posted by Mindbridge <mi...@yahoo.com>.
Hi,
If the column is a SimpleTableColumn, then you can get the cell value by
calling getValue(row) on it. If you define the columns using a string, for
example, they will be of the SimpleTableColumn type.
That said, if the column's appearance is defined using a Block, it is
probably a good idea to access what you need directly, e.g. by doing:
<span jwcid="@Insert" value="ognl:components.table.tableRow.name"/>
where 'table' is the id of your Table or TableRows component.
----- Original Message -----
From: "Vjeran Marcinko" <vj...@tis.hr>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Sunday, May 02, 2004 10:44 PM
Subject: Re: Advice - contrib:Table or Foreach ?
> Speaking of customization inside xxxColumnHeader and xxxColumnValue....
I'm
> confused ... If I want to fetch current row, then I use 'row' parameter of
> TableRows component, but when I want to fetch current value by TableValues
> component and it's 'column' parameter, I can just fetch ITableColumn
object
> which gives me some renderers and not current value itself ?!
>
> -Vjeran
>
>
> ----- Original Message -----
> From: "Petter Måhlén" <pe...@elevance.se>
> To: "'Tapestry users'" <ta...@jakarta.apache.org>
> Sent: Sunday, May 02, 2004 9:18 PM
> Subject: RE: Advice - contrib:Table or Foreach ?
>
>
> contrib:Table lets you quickly add stuff like paging and sorting. That's
> really nice, and the threshold for getting it to work is not too bad. What
> you probably need to learn is specifying columns through a string
(something
> like "column1:Title1:object.field1, column2:Title2:object.field2"), that's
a
> great time-saver, and secondly, for the links, the xxxColumnHeader and
> xxxColumnValue ways of describing column content. All described in the
> component reference.
>
> I guess what I'm saying is that for me, learning to use contrib:Table was
an
> investment that paid off quickly. It's a really useful component.
>
> / Petter
>
> > -----Original Message-----
> > From: Vjeran Marcinko [mailto:vjeran@tis.hr]
> > Sent: den 2 maj 2004 17:56
> > To: tapestry-user@jakarta.apache.org
> > Subject: Advice - contrib:Table or Foreach ?
> >
> >
> > Hi.
> >
> > I'm kinda tight with deadlines, so I don't have enough time for
> > experimenting ...
> > Anyway, I have to present some database data in tables, some
> > columns' data
> > will be hyperlinks to additional data for that record etc... standard
> > stuff...
> > So, I need advice - should I start examining and using
> > contrib:Table, or
> > playing with plain Foreach proved to be simplier for fresh starter ?
> >
> > -Vjeran
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Advice - contrib:Table or Foreach ?
Posted by Vjeran Marcinko <vj...@tis.hr>.
Speaking of customization inside xxxColumnHeader and xxxColumnValue.... I'm
confused ... If I want to fetch current row, then I use 'row' parameter of
TableRows component, but when I want to fetch current value by TableValues
component and it's 'column' parameter, I can just fetch ITableColumn object
which gives me some renderers and not current value itself ?!
-Vjeran
----- Original Message -----
From: "Petter Måhlén" <pe...@elevance.se>
To: "'Tapestry users'" <ta...@jakarta.apache.org>
Sent: Sunday, May 02, 2004 9:18 PM
Subject: RE: Advice - contrib:Table or Foreach ?
contrib:Table lets you quickly add stuff like paging and sorting. That's
really nice, and the threshold for getting it to work is not too bad. What
you probably need to learn is specifying columns through a string (something
like "column1:Title1:object.field1, column2:Title2:object.field2"), that's a
great time-saver, and secondly, for the links, the xxxColumnHeader and
xxxColumnValue ways of describing column content. All described in the
component reference.
I guess what I'm saying is that for me, learning to use contrib:Table was an
investment that paid off quickly. It's a really useful component.
/ Petter
> -----Original Message-----
> From: Vjeran Marcinko [mailto:vjeran@tis.hr]
> Sent: den 2 maj 2004 17:56
> To: tapestry-user@jakarta.apache.org
> Subject: Advice - contrib:Table or Foreach ?
>
>
> Hi.
>
> I'm kinda tight with deadlines, so I don't have enough time for
> experimenting ...
> Anyway, I have to present some database data in tables, some
> columns' data
> will be hyperlinks to additional data for that record etc... standard
> stuff...
> So, I need advice - should I start examining and using
> contrib:Table, or
> playing with plain Foreach proved to be simplier for fresh starter ?
>
> -Vjeran
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: Advice - contrib:Table or Foreach ?
Posted by Petter Måhlén <pe...@elevance.se>.
contrib:Table lets you quickly add stuff like paging and sorting. That's
really nice, and the threshold for getting it to work is not too bad. What
you probably need to learn is specifying columns through a string (something
like "column1:Title1:object.field1, column2:Title2:object.field2"), that's a
great time-saver, and secondly, for the links, the xxxColumnHeader and
xxxColumnValue ways of describing column content. All described in the
component reference.
I guess what I'm saying is that for me, learning to use contrib:Table was an
investment that paid off quickly. It's a really useful component.
/ Petter
> -----Original Message-----
> From: Vjeran Marcinko [mailto:vjeran@tis.hr]
> Sent: den 2 maj 2004 17:56
> To: tapestry-user@jakarta.apache.org
> Subject: Advice - contrib:Table or Foreach ?
>
>
> Hi.
>
> I'm kinda tight with deadlines, so I don't have enough time for
> experimenting ...
> Anyway, I have to present some database data in tables, some
> columns' data
> will be hyperlinks to additional data for that record etc... standard
> stuff...
> So, I need advice - should I start examining and using
> contrib:Table, or
> playing with plain Foreach proved to be simplier for fresh starter ?
>
> -Vjeran
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org