You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Daniel Jue <te...@gmail.com> on 2007/02/09 19:58:36 UTC

How to customize the look of Contib TablePages subcomponent

Hi,

Unlike a previous thread, I am only trying to tap into the TablePages
subcomponent to add some css tags to the numbers and links.  I looked
at the source for TablePages, but there doesn't seem to be anything
there related to the way it's rendered in html.

Is this possible do to without rewriting/extending the TablePages component?

Dan

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


Re: How to customize the look of Contib TablePages subcomponent

Posted by Daniel Tabuenca <dt...@gmail.com>.
You can pass informal parameters to the @TablePages component which
will get applied to a span arround the output. You could use this to
apply some limmited CSS to the subelements. I guess if you really want
full control over how it is rendered you'd probably just have to
extend the original TablePages component in java and then copy the
original TablePages.html and TablePages.jwc over and modify them.

On 2/9/07, Daniel Jue <te...@gmail.com> wrote:
> Thanks Daniel,  While everything you mentioned is true, I was really
> referring to the "@Contrib:TablePages" sub component, which is the
> part that displays the page numbers and forward /  backward buttons.
> i.e.
>
> <<  <  1  2  3  4  5  >  >>
>
> It is usually at the bottom of a regular form, but you get to insert
> it directly when you use Contrib:TableView
>
> Right now they are function, but ugly, text.  I'd like to give them
> some CSS attributes to make it match the rest of my app.
>
> Dan
>
> On 2/9/07, Daniel Tabuenca <dt...@gmail.com> wrote:
> > If you want to customize how a cell is rendered. You can use a block
> > component with the magic id of  "column id"+ ColumnValue. So if your
> > column definition is something like "myColumn:My Column" then having
> > something like
> >
> > <td jwcid="myColumnColumnValue@Block"></td>
> >
> > will cause it to be used to render the column.This is described here:
> >
> > http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/tableview.html
> >
> > under "defining columns"
> >
> >
> > On 2/9/07, Daniel Jue <te...@gmail.com> wrote:
> > > Hi,
> > >
> > > Unlike a previous thread, I am only trying to tap into the TablePages
> > > subcomponent to add some css tags to the numbers and links.  I looked
> > > at the source for TablePages, but there doesn't seem to be anything
> > > there related to the way it's rendered in html.
> > >
> > > Is this possible do to without rewriting/extending the TablePages component?
> > >
> > > Dan
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


Re: How to customize the look of Contib TablePages subcomponent

Posted by Daniel Jue <te...@gmail.com>.
Thanks Daniel,  While everything you mentioned is true, I was really
referring to the "@Contrib:TablePages" sub component, which is the
part that displays the page numbers and forward /  backward buttons.
i.e.

<<  <  1  2  3  4  5  >  >>

It is usually at the bottom of a regular form, but you get to insert
it directly when you use Contrib:TableView

Right now they are function, but ugly, text.  I'd like to give them
some CSS attributes to make it match the rest of my app.

Dan

On 2/9/07, Daniel Tabuenca <dt...@gmail.com> wrote:
> If you want to customize how a cell is rendered. You can use a block
> component with the magic id of  "column id"+ ColumnValue. So if your
> column definition is something like "myColumn:My Column" then having
> something like
>
> <td jwcid="myColumnColumnValue@Block"></td>
>
> will cause it to be used to render the column.This is described here:
>
> http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/tableview.html
>
> under "defining columns"
>
>
> On 2/9/07, Daniel Jue <te...@gmail.com> wrote:
> > Hi,
> >
> > Unlike a previous thread, I am only trying to tap into the TablePages
> > subcomponent to add some css tags to the numbers and links.  I looked
> > at the source for TablePages, but there doesn't seem to be anything
> > there related to the way it's rendered in html.
> >
> > Is this possible do to without rewriting/extending the TablePages component?
> >
> > Dan
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


Re: How to customize the look of Contib TablePages subcomponent

Posted by Daniel Tabuenca <dt...@gmail.com>.
If you want to customize how a cell is rendered. You can use a block
component with the magic id of  "column id"+ ColumnValue. So if your
column definition is something like "myColumn:My Column" then having
something like

<td jwcid="myColumnColumnValue@Block"></td>

will cause it to be used to render the column.This is described here:

http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/tableview.html

under "defining columns"


On 2/9/07, Daniel Jue <te...@gmail.com> wrote:
> Hi,
>
> Unlike a previous thread, I am only trying to tap into the TablePages
> subcomponent to add some css tags to the numbers and links.  I looked
> at the source for TablePages, but there doesn't seem to be anything
> there related to the way it's rendered in html.
>
> Is this possible do to without rewriting/extending the TablePages component?
>
> Dan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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