You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jeffrey Sze <js...@iclsystems.com> on 2004/06/16 23:24:20 UTC

How to customize table cell base on the cell data?

Hi,

 

I have created a table of people that display First name, Last name and Age.
How can I make the Age column to become a link component when the age is,
for example, between 20 and 30 ?

 

Thanks.

 

Jeffrey


Drawback: [WAS Re: How to customize table cell base on the cell data?]

Posted by Vjeran Marcinko <vj...@tis.hr>.
Actually, there is one minor lack of functionality in contrib:Table, at
least as I see it. Specifying columns values by columns String parameter in
a form of :
id:description:expression
is great timesaver, but the only minor drawback is that column value
expression is evaluated on row object, where it would be better that row
object is placed back into some page property (like "row" parameter of
TableRows) and expression can be called on page itself, thus calling some
page method calculateCurrentColumnValue() that do complex calculations based
on that row. Similar to Foreach capability.
I have such contrib:Table where each column value has some complex way of
presenting column value and that is best calcuated inside java code and not
template (separating presentation and logic).
I had 2 choices :
- to place row object back into page using contrib:TableRows and use
xxxBlock for each column (and there are many of them making template
cumbersome) where I would call such calculateCurrentColumnValue() method of
the page
- to wrap row objects inside some new class before giving it to
contrib:Table "source" parameter. This new class will have this
calculateCurrentColumnValue() which can be called from expression in source
String, because this new class instance is row object now

Of course, this is only minor drawback, nothing serious. It's just that
placing iterating value back into page/component is one of best things that
I experienced in Tapestry. Such way template is kept very clean since
complex logic is placed where it shoud be, in java classes.

-Vjeran


----- Original Message ----- 
From: "Ralph Churchill" <ch...@gmail.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Thursday, June 17, 2004 12:20 AM
Subject: Re: How to customize table cell base on the cell data?


> <span jwcid="xxxColumnValue@Block">
> <!-- insert stuff here... -->
> </span>
>
> Where "xxx" is the name of the column. It's a neat trick!
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Running from root

Posted by Joe Andolina <jo...@andomation.com>.
Is there anything special about running a Tapestry app from the root of
Tomcat? What is the servlet mapping and redirect URL?



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: How to customize table cell base on the cell data?

Posted by Jonny Wray <jo...@yahoo.com>.
That's sort of ringing very distant bells. I wrote this extension to
Table a while ago, and as part of a much bigger extension to actually
provide tables that can be configured (headings, contents, links,
sortable) via external xml files. So, not totally sure, buy I may have
tryed that route before settling on the one I posted. 

--- Jeffrey Sze <js...@iclsystems.com> wrote:
> Thanks for your reply.  I found out that I in MyTablePages, I can
> getTableModelSource.  Then I can cast it to SimpleTableModel and get
> the row
> size there.  However this will make my version of MyTablePages only
> accept
> SimpleTableModel ... which is not flexible.
> 
> I am wondering why the ITableModel does not have something like
> getRowCount()...
> 
> 
> 
> -----Original Message-----
> From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> Sent: Thursday, June 17, 2004 2:34 PM
> To: Tapestry users
> Subject: RE: How to customize table cell base on the cell data?
> 
> 
> I make the totalNumberOfRecords a parameter of MyTablePages. That is
> abstract getter and setter in the java and 
> 
> <parameter name="totalNumberOfRecords" type="int" required="yes"
> direction="in" />
> 
> in the jwc. Then in the the jwc for my version of Table,
> 
> <component id="tablePages" type="MyTablePages">
>    <inherited-binding name="pagesDisplayed"
> parameter-name="pagesDisplayed"/>
>    <inherited-binding name="class" parameter-name="pagesClass"/>
>    <binding name="totalNumberOfRecords" expression="resultSetSize" />
> </component>
> 
> I guess you do need to extend the java of contrib:Table to provide
> the
> getResultSetSize method. My implemenation is:
> 
> public int getResultSetSize(){
>    Object source = getTableViewComponent().getSource();
>    if(source instanceof Collection){
> 	return ((Collection)source).size();
>    }
>    if(source instanceof Object[]){
>      return ((Object[])source).length;
>    }
>    if(source instanceof Iterator){
> 	//	is there a way of getting the size of a collection
> underlying
> 	//  an iterator without iterating?
>       return 0;		
>    }
>    if(source instanceof IBasicTableModel){
> 	return ((IBasicTableModel)source).getRowCount();
>    }
>    return 0;
> }
> 
> This works, unless your are passing an Iterator as your source, in
> which case you get 0. I never do this so have never worked out a way
> to
> solve this problem.
> 
> Jonny
> 
> 
> 
> --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > Now I have implemented a getTotalNumberOfRecord() method in
> > MyTablePages
> > component.  From within MyTablePages, how can I get the Collection
> of
> > all
> > the records ( I bind an array to the source attr of the Table
> > component ) so
> > that I can determine the total number of records ?
> > 
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> > Sent: Thursday, June 17, 2004 11:33 AM
> > To: Tapestry users
> > Subject: RE: How to customize table cell base on the cell data?
> > 
> > 
> > Well, one way is to make your own version of Table, say MyTable, by
> > copying the jwc and html files from the source code distribution of
> > the
> > contrib library. You can still use the contrib java code (for the
> > Table) so no need to copy that.
> > 
> > Then, in the jwc for the Table replace the definition of the
> > tablePages
> > component to be your changed version. Keep the rest the same and
> you
> > should be good to go.
> > 
> > I'm not 100% sure there isn't another way that avoids the creation
> of
> > your own Table to use your own TablePages.
> > 
> > --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > > I am still very new to Tapestry, and I am not sure how to ask the
> > > contrib:Table to use my own version of contrib:TablePages.  Can
> you
> > > give me
> > > some idea?
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -----Original Message-----
> > > From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> > > Sent: Wednesday, June 16, 2004 6:30 PM
> > > To: Tapestry users
> > > Subject: RE: How to customize table cell base on the cell data?
> > > 
> > > 
> > > No problem, glad you got it to work.
> > > 
> > > As for the second question, I've done the same myself. 
> > > 
> > > I have my own version of the contrib:TablePages which changes the
> > > layout to what I want (total results was needed here also). I
> just
> > > extended TablePages to include the method getResultSetSize and
> > copyed
> > > the layout and jwc by copy/paste.
> > > 
> > > --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > > > Thanks, it works!!
> > > > 
> > > > Another question.  Can you give some direction on how to
> > customize
> > > > the look
> > > > and feel of the page navigation bar?  I want to make the
> > navigation
> > > > tool bar
> > > > to have only the following: 
> > > > 1) Next Page and Previous Page (possibly change the < and > to
> > > image)
> > > > 2) Display current record displayed and total number of record
> > > > instead of
> > > > page number.
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > -----Original Message-----
> > > > From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> > > > Sent: Wednesday, June 16, 2004 4:09 PM
> > > > To: Tapestry users
> > > > Subject: RE: How to customize table cell base on the cell data?
> > > > 
> > > > 
> > > > A conditional component within the block?
> > > > 
> > > > Something like:
> > > > 
> > > > <span jwcid="xxxColumnValue@Block">
> > > >    <span jwcid="@Conditional" condition="ognl:age>20 &&
> age<30">
> > > >      <span jwcid="@DirectLink">Link Text</span>
> > > >    </span>
> > > >    <span jwcid="@Conditional" condition="ognl:age>20 && age<30"
> > > > invert="true">
> > > >      Outside age range text
> > > >    </span>
> > > > </span>
> > > > 
> > > > 
> > > > --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > > > > Thanks for your reply.  How can I get the value of the cell
> > (age
> > > in
> > > > > my
> > > > > example) to determine what component to use to represent it
> > (ie,
> > > a
> > > > > link for
> > > > > age between 20 and 30, and text otherwise) ?
> > > > > 
> > > > > 
> > > > > 
> > > > > -----Original Message-----
> > > > > From: Ralph Churchill [mailto:churchillrm@gmail.com] 
> > > > > Sent: Wednesday, June 16, 2004 3:21 PM
> > > > > To: Tapestry users
> > > > > Subject: Re: How to customize table cell base on the cell
> data?
> > > > > 
> > > > > <span jwcid="xxxColumnValue@Block">
> > > > > <!-- insert stuff here... -->
> 
=== message truncated ===


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: How to customize table cell base on the cell data?

Posted by Jeffrey Sze <js...@iclsystems.com>.
Thanks for your reply.  I found out that I in MyTablePages, I can
getTableModelSource.  Then I can cast it to SimpleTableModel and get the row
size there.  However this will make my version of MyTablePages only accept
SimpleTableModel ... which is not flexible.

I am wondering why the ITableModel does not have something like
getRowCount()...



-----Original Message-----
From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
Sent: Thursday, June 17, 2004 2:34 PM
To: Tapestry users
Subject: RE: How to customize table cell base on the cell data?


I make the totalNumberOfRecords a parameter of MyTablePages. That is
abstract getter and setter in the java and 

<parameter name="totalNumberOfRecords" type="int" required="yes"
direction="in" />

in the jwc. Then in the the jwc for my version of Table,

<component id="tablePages" type="MyTablePages">
   <inherited-binding name="pagesDisplayed"
parameter-name="pagesDisplayed"/>
   <inherited-binding name="class" parameter-name="pagesClass"/>
   <binding name="totalNumberOfRecords" expression="resultSetSize" />
</component>

I guess you do need to extend the java of contrib:Table to provide the
getResultSetSize method. My implemenation is:

public int getResultSetSize(){
   Object source = getTableViewComponent().getSource();
   if(source instanceof Collection){
	return ((Collection)source).size();
   }
   if(source instanceof Object[]){
     return ((Object[])source).length;
   }
   if(source instanceof Iterator){
	//	is there a way of getting the size of a collection
underlying
	//  an iterator without iterating?
      return 0;		
   }
   if(source instanceof IBasicTableModel){
	return ((IBasicTableModel)source).getRowCount();
   }
   return 0;
}

This works, unless your are passing an Iterator as your source, in
which case you get 0. I never do this so have never worked out a way to
solve this problem.

Jonny



--- Jeffrey Sze <js...@iclsystems.com> wrote:
> Now I have implemented a getTotalNumberOfRecord() method in
> MyTablePages
> component.  From within MyTablePages, how can I get the Collection of
> all
> the records ( I bind an array to the source attr of the Table
> component ) so
> that I can determine the total number of records ?
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> Sent: Thursday, June 17, 2004 11:33 AM
> To: Tapestry users
> Subject: RE: How to customize table cell base on the cell data?
> 
> 
> Well, one way is to make your own version of Table, say MyTable, by
> copying the jwc and html files from the source code distribution of
> the
> contrib library. You can still use the contrib java code (for the
> Table) so no need to copy that.
> 
> Then, in the jwc for the Table replace the definition of the
> tablePages
> component to be your changed version. Keep the rest the same and you
> should be good to go.
> 
> I'm not 100% sure there isn't another way that avoids the creation of
> your own Table to use your own TablePages.
> 
> --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > I am still very new to Tapestry, and I am not sure how to ask the
> > contrib:Table to use my own version of contrib:TablePages.  Can you
> > give me
> > some idea?
> > 
> > 
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> > Sent: Wednesday, June 16, 2004 6:30 PM
> > To: Tapestry users
> > Subject: RE: How to customize table cell base on the cell data?
> > 
> > 
> > No problem, glad you got it to work.
> > 
> > As for the second question, I've done the same myself. 
> > 
> > I have my own version of the contrib:TablePages which changes the
> > layout to what I want (total results was needed here also). I just
> > extended TablePages to include the method getResultSetSize and
> copyed
> > the layout and jwc by copy/paste.
> > 
> > --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > > Thanks, it works!!
> > > 
> > > Another question.  Can you give some direction on how to
> customize
> > > the look
> > > and feel of the page navigation bar?  I want to make the
> navigation
> > > tool bar
> > > to have only the following: 
> > > 1) Next Page and Previous Page (possibly change the < and > to
> > image)
> > > 2) Display current record displayed and total number of record
> > > instead of
> > > page number.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -----Original Message-----
> > > From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> > > Sent: Wednesday, June 16, 2004 4:09 PM
> > > To: Tapestry users
> > > Subject: RE: How to customize table cell base on the cell data?
> > > 
> > > 
> > > A conditional component within the block?
> > > 
> > > Something like:
> > > 
> > > <span jwcid="xxxColumnValue@Block">
> > >    <span jwcid="@Conditional" condition="ognl:age>20 && age<30">
> > >      <span jwcid="@DirectLink">Link Text</span>
> > >    </span>
> > >    <span jwcid="@Conditional" condition="ognl:age>20 && age<30"
> > > invert="true">
> > >      Outside age range text
> > >    </span>
> > > </span>
> > > 
> > > 
> > > --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > > > Thanks for your reply.  How can I get the value of the cell
> (age
> > in
> > > > my
> > > > example) to determine what component to use to represent it
> (ie,
> > a
> > > > link for
> > > > age between 20 and 30, and text otherwise) ?
> > > > 
> > > > 
> > > > 
> > > > -----Original Message-----
> > > > From: Ralph Churchill [mailto:churchillrm@gmail.com] 
> > > > Sent: Wednesday, June 16, 2004 3:21 PM
> > > > To: Tapestry users
> > > > Subject: Re: How to customize table cell base on the cell data?
> > > > 
> > > > <span jwcid="xxxColumnValue@Block">
> > > > <!-- insert stuff here... -->
> > > > </span>
> > > > 
> > > > Where "xxx" is the name of the column. It's a neat trick!
> > > > 
> > > > RMC
> > > > 
> > > > On Wed, 16 Jun 2004 14:24:20 -0700, Jeffrey Sze
> > > <js...@iclsystems.com>
> > > > wrote:
> > > > > 
> > > > > Hi,
> > > > > 
> > > > > I have created a table of people that display First name,
> Last
> > > name
> > > > and
> > > > Age.
> > > > > How can I make the Age column to become a link component when
> > the
> > > > age is,
> > > > > for example, between 20 and 30 ?
> > > > > 
> > > > > Thanks.
> > > > > 
> > > > > 
> > > > > Jeffrey
> > > > > 
> > > > >
> > > > 
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > 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
> > > 
> > > 
> > 
> > 
> >
> ---------------------------------------------------------------------
> 
=== message truncated ===


---------------------------------------------------------------------
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: How to customize table cell base on the cell data?

Posted by Jonny Wray <jo...@yahoo.com>.
I make the totalNumberOfRecords a parameter of MyTablePages. That is
abstract getter and setter in the java and 

<parameter name="totalNumberOfRecords" type="int" required="yes"
direction="in" />

in the jwc. Then in the the jwc for my version of Table,

<component id="tablePages" type="MyTablePages">
   <inherited-binding name="pagesDisplayed"
parameter-name="pagesDisplayed"/>
   <inherited-binding name="class" parameter-name="pagesClass"/>
   <binding name="totalNumberOfRecords" expression="resultSetSize" />
</component>

I guess you do need to extend the java of contrib:Table to provide the
getResultSetSize method. My implemenation is:

public int getResultSetSize(){
   Object source = getTableViewComponent().getSource();
   if(source instanceof Collection){
	return ((Collection)source).size();
   }
   if(source instanceof Object[]){
     return ((Object[])source).length;
   }
   if(source instanceof Iterator){
	//	is there a way of getting the size of a collection underlying
	//  an iterator without iterating?
      return 0;		
   }
   if(source instanceof IBasicTableModel){
	return ((IBasicTableModel)source).getRowCount();
   }
   return 0;
}

This works, unless your are passing an Iterator as your source, in
which case you get 0. I never do this so have never worked out a way to
solve this problem.

Jonny



--- Jeffrey Sze <js...@iclsystems.com> wrote:
> Now I have implemented a getTotalNumberOfRecord() method in
> MyTablePages
> component.  From within MyTablePages, how can I get the Collection of
> all
> the records ( I bind an array to the source attr of the Table
> component ) so
> that I can determine the total number of records ?
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> Sent: Thursday, June 17, 2004 11:33 AM
> To: Tapestry users
> Subject: RE: How to customize table cell base on the cell data?
> 
> 
> Well, one way is to make your own version of Table, say MyTable, by
> copying the jwc and html files from the source code distribution of
> the
> contrib library. You can still use the contrib java code (for the
> Table) so no need to copy that.
> 
> Then, in the jwc for the Table replace the definition of the
> tablePages
> component to be your changed version. Keep the rest the same and you
> should be good to go.
> 
> I'm not 100% sure there isn't another way that avoids the creation of
> your own Table to use your own TablePages.
> 
> --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > I am still very new to Tapestry, and I am not sure how to ask the
> > contrib:Table to use my own version of contrib:TablePages.  Can you
> > give me
> > some idea?
> > 
> > 
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> > Sent: Wednesday, June 16, 2004 6:30 PM
> > To: Tapestry users
> > Subject: RE: How to customize table cell base on the cell data?
> > 
> > 
> > No problem, glad you got it to work.
> > 
> > As for the second question, I've done the same myself. 
> > 
> > I have my own version of the contrib:TablePages which changes the
> > layout to what I want (total results was needed here also). I just
> > extended TablePages to include the method getResultSetSize and
> copyed
> > the layout and jwc by copy/paste.
> > 
> > --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > > Thanks, it works!!
> > > 
> > > Another question.  Can you give some direction on how to
> customize
> > > the look
> > > and feel of the page navigation bar?  I want to make the
> navigation
> > > tool bar
> > > to have only the following: 
> > > 1) Next Page and Previous Page (possibly change the < and > to
> > image)
> > > 2) Display current record displayed and total number of record
> > > instead of
> > > page number.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -----Original Message-----
> > > From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> > > Sent: Wednesday, June 16, 2004 4:09 PM
> > > To: Tapestry users
> > > Subject: RE: How to customize table cell base on the cell data?
> > > 
> > > 
> > > A conditional component within the block?
> > > 
> > > Something like:
> > > 
> > > <span jwcid="xxxColumnValue@Block">
> > >    <span jwcid="@Conditional" condition="ognl:age>20 && age<30">
> > >      <span jwcid="@DirectLink">Link Text</span>
> > >    </span>
> > >    <span jwcid="@Conditional" condition="ognl:age>20 && age<30"
> > > invert="true">
> > >      Outside age range text
> > >    </span>
> > > </span>
> > > 
> > > 
> > > --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > > > Thanks for your reply.  How can I get the value of the cell
> (age
> > in
> > > > my
> > > > example) to determine what component to use to represent it
> (ie,
> > a
> > > > link for
> > > > age between 20 and 30, and text otherwise) ?
> > > > 
> > > > 
> > > > 
> > > > -----Original Message-----
> > > > From: Ralph Churchill [mailto:churchillrm@gmail.com] 
> > > > Sent: Wednesday, June 16, 2004 3:21 PM
> > > > To: Tapestry users
> > > > Subject: Re: How to customize table cell base on the cell data?
> > > > 
> > > > <span jwcid="xxxColumnValue@Block">
> > > > <!-- insert stuff here... -->
> > > > </span>
> > > > 
> > > > Where "xxx" is the name of the column. It's a neat trick!
> > > > 
> > > > RMC
> > > > 
> > > > On Wed, 16 Jun 2004 14:24:20 -0700, Jeffrey Sze
> > > <js...@iclsystems.com>
> > > > wrote:
> > > > > 
> > > > > Hi,
> > > > > 
> > > > > I have created a table of people that display First name,
> Last
> > > name
> > > > and
> > > > Age.
> > > > > How can I make the Age column to become a link component when
> > the
> > > > age is,
> > > > > for example, between 20 and 30 ?
> > > > > 
> > > > > Thanks.
> > > > > 
> > > > > 
> > > > > Jeffrey
> > > > > 
> > > > >
> > > > 
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > 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
> > > 
> > > 
> > 
> > 
> >
> ---------------------------------------------------------------------
> 
=== message truncated ===


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: How to customize table cell base on the cell data?

Posted by Jeffrey Sze <js...@iclsystems.com>.
Now I have implemented a getTotalNumberOfRecord() method in MyTablePages
component.  From within MyTablePages, how can I get the Collection of all
the records ( I bind an array to the source attr of the Table component ) so
that I can determine the total number of records ?





-----Original Message-----
From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
Sent: Thursday, June 17, 2004 11:33 AM
To: Tapestry users
Subject: RE: How to customize table cell base on the cell data?


Well, one way is to make your own version of Table, say MyTable, by
copying the jwc and html files from the source code distribution of the
contrib library. You can still use the contrib java code (for the
Table) so no need to copy that.

Then, in the jwc for the Table replace the definition of the tablePages
component to be your changed version. Keep the rest the same and you
should be good to go.

I'm not 100% sure there isn't another way that avoids the creation of
your own Table to use your own TablePages.

--- Jeffrey Sze <js...@iclsystems.com> wrote:
> I am still very new to Tapestry, and I am not sure how to ask the
> contrib:Table to use my own version of contrib:TablePages.  Can you
> give me
> some idea?
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> Sent: Wednesday, June 16, 2004 6:30 PM
> To: Tapestry users
> Subject: RE: How to customize table cell base on the cell data?
> 
> 
> No problem, glad you got it to work.
> 
> As for the second question, I've done the same myself. 
> 
> I have my own version of the contrib:TablePages which changes the
> layout to what I want (total results was needed here also). I just
> extended TablePages to include the method getResultSetSize and copyed
> the layout and jwc by copy/paste.
> 
> --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > Thanks, it works!!
> > 
> > Another question.  Can you give some direction on how to customize
> > the look
> > and feel of the page navigation bar?  I want to make the navigation
> > tool bar
> > to have only the following: 
> > 1) Next Page and Previous Page (possibly change the < and > to
> image)
> > 2) Display current record displayed and total number of record
> > instead of
> > page number.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> > Sent: Wednesday, June 16, 2004 4:09 PM
> > To: Tapestry users
> > Subject: RE: How to customize table cell base on the cell data?
> > 
> > 
> > A conditional component within the block?
> > 
> > Something like:
> > 
> > <span jwcid="xxxColumnValue@Block">
> >    <span jwcid="@Conditional" condition="ognl:age>20 && age<30">
> >      <span jwcid="@DirectLink">Link Text</span>
> >    </span>
> >    <span jwcid="@Conditional" condition="ognl:age>20 && age<30"
> > invert="true">
> >      Outside age range text
> >    </span>
> > </span>
> > 
> > 
> > --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > > Thanks for your reply.  How can I get the value of the cell (age
> in
> > > my
> > > example) to determine what component to use to represent it (ie,
> a
> > > link for
> > > age between 20 and 30, and text otherwise) ?
> > > 
> > > 
> > > 
> > > -----Original Message-----
> > > From: Ralph Churchill [mailto:churchillrm@gmail.com] 
> > > Sent: Wednesday, June 16, 2004 3:21 PM
> > > To: Tapestry users
> > > Subject: Re: How to customize table cell base on the cell data?
> > > 
> > > <span jwcid="xxxColumnValue@Block">
> > > <!-- insert stuff here... -->
> > > </span>
> > > 
> > > Where "xxx" is the name of the column. It's a neat trick!
> > > 
> > > RMC
> > > 
> > > On Wed, 16 Jun 2004 14:24:20 -0700, Jeffrey Sze
> > <js...@iclsystems.com>
> > > wrote:
> > > > 
> > > > Hi,
> > > > 
> > > > I have created a table of people that display First name, Last
> > name
> > > and
> > > Age.
> > > > How can I make the Age column to become a link component when
> the
> > > age is,
> > > > for example, between 20 and 30 ?
> > > > 
> > > > Thanks.
> > > > 
> > > > 
> > > > Jeffrey
> > > > 
> > > >
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > 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
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> 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: How to customize table cell base on the cell data?

Posted by Jonny Wray <jo...@yahoo.com>.
Well, one way is to make your own version of Table, say MyTable, by
copying the jwc and html files from the source code distribution of the
contrib library. You can still use the contrib java code (for the
Table) so no need to copy that.

Then, in the jwc for the Table replace the definition of the tablePages
component to be your changed version. Keep the rest the same and you
should be good to go.

I'm not 100% sure there isn't another way that avoids the creation of
your own Table to use your own TablePages.

--- Jeffrey Sze <js...@iclsystems.com> wrote:
> I am still very new to Tapestry, and I am not sure how to ask the
> contrib:Table to use my own version of contrib:TablePages.  Can you
> give me
> some idea?
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> Sent: Wednesday, June 16, 2004 6:30 PM
> To: Tapestry users
> Subject: RE: How to customize table cell base on the cell data?
> 
> 
> No problem, glad you got it to work.
> 
> As for the second question, I've done the same myself. 
> 
> I have my own version of the contrib:TablePages which changes the
> layout to what I want (total results was needed here also). I just
> extended TablePages to include the method getResultSetSize and copyed
> the layout and jwc by copy/paste.
> 
> --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > Thanks, it works!!
> > 
> > Another question.  Can you give some direction on how to customize
> > the look
> > and feel of the page navigation bar?  I want to make the navigation
> > tool bar
> > to have only the following: 
> > 1) Next Page and Previous Page (possibly change the < and > to
> image)
> > 2) Display current record displayed and total number of record
> > instead of
> > page number.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -----Original Message-----
> > From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> > Sent: Wednesday, June 16, 2004 4:09 PM
> > To: Tapestry users
> > Subject: RE: How to customize table cell base on the cell data?
> > 
> > 
> > A conditional component within the block?
> > 
> > Something like:
> > 
> > <span jwcid="xxxColumnValue@Block">
> >    <span jwcid="@Conditional" condition="ognl:age>20 && age<30">
> >      <span jwcid="@DirectLink">Link Text</span>
> >    </span>
> >    <span jwcid="@Conditional" condition="ognl:age>20 && age<30"
> > invert="true">
> >      Outside age range text
> >    </span>
> > </span>
> > 
> > 
> > --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > > Thanks for your reply.  How can I get the value of the cell (age
> in
> > > my
> > > example) to determine what component to use to represent it (ie,
> a
> > > link for
> > > age between 20 and 30, and text otherwise) ?
> > > 
> > > 
> > > 
> > > -----Original Message-----
> > > From: Ralph Churchill [mailto:churchillrm@gmail.com] 
> > > Sent: Wednesday, June 16, 2004 3:21 PM
> > > To: Tapestry users
> > > Subject: Re: How to customize table cell base on the cell data?
> > > 
> > > <span jwcid="xxxColumnValue@Block">
> > > <!-- insert stuff here... -->
> > > </span>
> > > 
> > > Where "xxx" is the name of the column. It's a neat trick!
> > > 
> > > RMC
> > > 
> > > On Wed, 16 Jun 2004 14:24:20 -0700, Jeffrey Sze
> > <js...@iclsystems.com>
> > > wrote:
> > > > 
> > > > Hi,
> > > > 
> > > > I have created a table of people that display First name, Last
> > name
> > > and
> > > Age.
> > > > How can I make the Age column to become a link component when
> the
> > > age is,
> > > > for example, between 20 and 30 ?
> > > > 
> > > > Thanks.
> > > > 
> > > > 
> > > > Jeffrey
> > > > 
> > > >
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > 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
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> 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: How to customize table cell base on the cell data?

Posted by Jeffrey Sze <js...@iclsystems.com>.
I am still very new to Tapestry, and I am not sure how to ask the
contrib:Table to use my own version of contrib:TablePages.  Can you give me
some idea?






-----Original Message-----
From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
Sent: Wednesday, June 16, 2004 6:30 PM
To: Tapestry users
Subject: RE: How to customize table cell base on the cell data?


No problem, glad you got it to work.

As for the second question, I've done the same myself. 

I have my own version of the contrib:TablePages which changes the
layout to what I want (total results was needed here also). I just
extended TablePages to include the method getResultSetSize and copyed
the layout and jwc by copy/paste.

--- Jeffrey Sze <js...@iclsystems.com> wrote:
> Thanks, it works!!
> 
> Another question.  Can you give some direction on how to customize
> the look
> and feel of the page navigation bar?  I want to make the navigation
> tool bar
> to have only the following: 
> 1) Next Page and Previous Page (possibly change the < and > to image)
> 2) Display current record displayed and total number of record
> instead of
> page number.
> 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> Sent: Wednesday, June 16, 2004 4:09 PM
> To: Tapestry users
> Subject: RE: How to customize table cell base on the cell data?
> 
> 
> A conditional component within the block?
> 
> Something like:
> 
> <span jwcid="xxxColumnValue@Block">
>    <span jwcid="@Conditional" condition="ognl:age>20 && age<30">
>      <span jwcid="@DirectLink">Link Text</span>
>    </span>
>    <span jwcid="@Conditional" condition="ognl:age>20 && age<30"
> invert="true">
>      Outside age range text
>    </span>
> </span>
> 
> 
> --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > Thanks for your reply.  How can I get the value of the cell (age in
> > my
> > example) to determine what component to use to represent it (ie, a
> > link for
> > age between 20 and 30, and text otherwise) ?
> > 
> > 
> > 
> > -----Original Message-----
> > From: Ralph Churchill [mailto:churchillrm@gmail.com] 
> > Sent: Wednesday, June 16, 2004 3:21 PM
> > To: Tapestry users
> > Subject: Re: How to customize table cell base on the cell data?
> > 
> > <span jwcid="xxxColumnValue@Block">
> > <!-- insert stuff here... -->
> > </span>
> > 
> > Where "xxx" is the name of the column. It's a neat trick!
> > 
> > RMC
> > 
> > On Wed, 16 Jun 2004 14:24:20 -0700, Jeffrey Sze
> <js...@iclsystems.com>
> > wrote:
> > > 
> > > Hi,
> > > 
> > > I have created a table of people that display First name, Last
> name
> > and
> > Age.
> > > How can I make the Age column to become a link component when the
> > age is,
> > > for example, between 20 and 30 ?
> > > 
> > > Thanks.
> > > 
> > > 
> > > Jeffrey
> > > 
> > >
> > 
> >
> ---------------------------------------------------------------------
> > 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
> 
> 


---------------------------------------------------------------------
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: How to customize table cell base on the cell data?

Posted by Jonny Wray <jo...@yahoo.com>.
No problem, glad you got it to work.

As for the second question, I've done the same myself. 

I have my own version of the contrib:TablePages which changes the
layout to what I want (total results was needed here also). I just
extended TablePages to include the method getResultSetSize and copyed
the layout and jwc by copy/paste.

--- Jeffrey Sze <js...@iclsystems.com> wrote:
> Thanks, it works!!
> 
> Another question.  Can you give some direction on how to customize
> the look
> and feel of the page navigation bar?  I want to make the navigation
> tool bar
> to have only the following: 
> 1) Next Page and Previous Page (possibly change the < and > to image)
> 2) Display current record displayed and total number of record
> instead of
> page number.
> 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
> Sent: Wednesday, June 16, 2004 4:09 PM
> To: Tapestry users
> Subject: RE: How to customize table cell base on the cell data?
> 
> 
> A conditional component within the block?
> 
> Something like:
> 
> <span jwcid="xxxColumnValue@Block">
>    <span jwcid="@Conditional" condition="ognl:age>20 && age<30">
>      <span jwcid="@DirectLink">Link Text</span>
>    </span>
>    <span jwcid="@Conditional" condition="ognl:age>20 && age<30"
> invert="true">
>      Outside age range text
>    </span>
> </span>
> 
> 
> --- Jeffrey Sze <js...@iclsystems.com> wrote:
> > Thanks for your reply.  How can I get the value of the cell (age in
> > my
> > example) to determine what component to use to represent it (ie, a
> > link for
> > age between 20 and 30, and text otherwise) ?
> > 
> > 
> > 
> > -----Original Message-----
> > From: Ralph Churchill [mailto:churchillrm@gmail.com] 
> > Sent: Wednesday, June 16, 2004 3:21 PM
> > To: Tapestry users
> > Subject: Re: How to customize table cell base on the cell data?
> > 
> > <span jwcid="xxxColumnValue@Block">
> > <!-- insert stuff here... -->
> > </span>
> > 
> > Where "xxx" is the name of the column. It's a neat trick!
> > 
> > RMC
> > 
> > On Wed, 16 Jun 2004 14:24:20 -0700, Jeffrey Sze
> <js...@iclsystems.com>
> > wrote:
> > > 
> > > Hi,
> > > 
> > > I have created a table of people that display First name, Last
> name
> > and
> > Age.
> > > How can I make the Age column to become a link component when the
> > age is,
> > > for example, between 20 and 30 ?
> > > 
> > > Thanks.
> > > 
> > > 
> > > Jeffrey
> > > 
> > >
> > 
> >
> ---------------------------------------------------------------------
> > 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
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: How to customize table cell base on the cell data?

Posted by Jeffrey Sze <js...@iclsystems.com>.
Thanks, it works!!

Another question.  Can you give some direction on how to customize the look
and feel of the page navigation bar?  I want to make the navigation tool bar
to have only the following: 
1) Next Page and Previous Page (possibly change the < and > to image)
2) Display current record displayed and total number of record instead of
page number.







-----Original Message-----
From: Jonny Wray [mailto:jonny_wray@yahoo.com] 
Sent: Wednesday, June 16, 2004 4:09 PM
To: Tapestry users
Subject: RE: How to customize table cell base on the cell data?


A conditional component within the block?

Something like:

<span jwcid="xxxColumnValue@Block">
   <span jwcid="@Conditional" condition="ognl:age>20 && age<30">
     <span jwcid="@DirectLink">Link Text</span>
   </span>
   <span jwcid="@Conditional" condition="ognl:age>20 && age<30"
invert="true">
     Outside age range text
   </span>
</span>


--- Jeffrey Sze <js...@iclsystems.com> wrote:
> Thanks for your reply.  How can I get the value of the cell (age in
> my
> example) to determine what component to use to represent it (ie, a
> link for
> age between 20 and 30, and text otherwise) ?
> 
> 
> 
> -----Original Message-----
> From: Ralph Churchill [mailto:churchillrm@gmail.com] 
> Sent: Wednesday, June 16, 2004 3:21 PM
> To: Tapestry users
> Subject: Re: How to customize table cell base on the cell data?
> 
> <span jwcid="xxxColumnValue@Block">
> <!-- insert stuff here... -->
> </span>
> 
> Where "xxx" is the name of the column. It's a neat trick!
> 
> RMC
> 
> On Wed, 16 Jun 2004 14:24:20 -0700, Jeffrey Sze <js...@iclsystems.com>
> wrote:
> > 
> > Hi,
> > 
> > I have created a table of people that display First name, Last name
> and
> Age.
> > How can I make the Age column to become a link component when the
> age is,
> > for example, between 20 and 30 ?
> > 
> > Thanks.
> > 
> > 
> > Jeffrey
> > 
> >
> 
> ---------------------------------------------------------------------
> 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: How to customize table cell base on the cell data?

Posted by Jonny Wray <jo...@yahoo.com>.
A conditional component within the block?

Something like:

<span jwcid="xxxColumnValue@Block">
   <span jwcid="@Conditional" condition="ognl:age>20 && age<30">
     <span jwcid="@DirectLink">Link Text</span>
   </span>
   <span jwcid="@Conditional" condition="ognl:age>20 && age<30"
invert="true">
     Outside age range text
   </span>
</span>


--- Jeffrey Sze <js...@iclsystems.com> wrote:
> Thanks for your reply.  How can I get the value of the cell (age in
> my
> example) to determine what component to use to represent it (ie, a
> link for
> age between 20 and 30, and text otherwise) ?
> 
> 
> 
> -----Original Message-----
> From: Ralph Churchill [mailto:churchillrm@gmail.com] 
> Sent: Wednesday, June 16, 2004 3:21 PM
> To: Tapestry users
> Subject: Re: How to customize table cell base on the cell data?
> 
> <span jwcid="xxxColumnValue@Block">
> <!-- insert stuff here... -->
> </span>
> 
> Where "xxx" is the name of the column. It's a neat trick!
> 
> RMC
> 
> On Wed, 16 Jun 2004 14:24:20 -0700, Jeffrey Sze <js...@iclsystems.com>
> wrote:
> > 
> > Hi,
> > 
> > I have created a table of people that display First name, Last name
> and
> Age.
> > How can I make the Age column to become a link component when the
> age is,
> > for example, between 20 and 30 ?
> > 
> > Thanks.
> > 
> > 
> > Jeffrey
> > 
> >
> 
> ---------------------------------------------------------------------
> 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: How to customize table cell base on the cell data?

Posted by Jeffrey Sze <js...@iclsystems.com>.
Thanks for your reply.  How can I get the value of the cell (age in my
example) to determine what component to use to represent it (ie, a link for
age between 20 and 30, and text otherwise) ?



-----Original Message-----
From: Ralph Churchill [mailto:churchillrm@gmail.com] 
Sent: Wednesday, June 16, 2004 3:21 PM
To: Tapestry users
Subject: Re: How to customize table cell base on the cell data?

<span jwcid="xxxColumnValue@Block">
<!-- insert stuff here... -->
</span>

Where "xxx" is the name of the column. It's a neat trick!

RMC

On Wed, 16 Jun 2004 14:24:20 -0700, Jeffrey Sze <js...@iclsystems.com> wrote:
> 
> Hi,
> 
> I have created a table of people that display First name, Last name and
Age.
> How can I make the Age column to become a link component when the age is,
> for example, between 20 and 30 ?
> 
> Thanks.
> 
> 
> Jeffrey
> 
>

---------------------------------------------------------------------
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: How to customize table cell base on the cell data?

Posted by Ralph Churchill <ch...@gmail.com>.
<span jwcid="xxxColumnValue@Block">
<!-- insert stuff here... -->
</span>

Where "xxx" is the name of the column. It's a neat trick!

RMC

On Wed, 16 Jun 2004 14:24:20 -0700, Jeffrey Sze <js...@iclsystems.com> wrote:
> 
> Hi,
> 
> I have created a table of people that display First name, Last name and Age.
> How can I make the Age column to become a link component when the age is,
> for example, between 20 and 30 ?
> 
> Thanks.
> 
> 
> Jeffrey
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org