Is your Table component inside a Form? If so, I think there's an open bug about the TableFormPages not implementing informal parameters like the non-form "TablePages" component does.
To fix this, we created a tapestry-contrib-4.0.2-patched.jar, with the only change being a slightly different org.apache.tapestry.contrib.table.components TableFormPages.html file. Here's my "patched" version - it hardcodes a "pager" span and replaces bold tags with strong tags (what can I say, I'm anal retentive) ======================================================================= <!-- Copyright 2004 The Apache Software Foundation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <span jwcid="$content$"> <span jwcid="hiddenCurrentPage"/> <span jwcid="hiddenPageCount"/> <span jwcid="hiddenStartPage"/> <span jwcid="hiddenStopPage"/> <span class="pager"> <a jwcid="linkFirst"><<</a> <a jwcid="linkBack"><</a> <span jwcid="iterPage"> <span jwcid="condCurrent"> <strong><span jwcid="insertCurrentPage"/></strong> </span> <span jwcid="condOther"> <a jwcid="linkPage"><span jwcid="insertOtherPage"/></a> </span> </span> <a jwcid="linkFwd">></a> <a jwcid="linkLast">>></a> </span> </span> ======================================================================= Tom -----Original Message----- From: Daniel Jue [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 11:08 AM To: Tapestry users Subject: Re: How to customize the look of Contib TablePages subcomponent Tom I tried this out, and I am able to get some styles to work for the 3 tags you mentioned. However, in order to change the look of the forward/beginning links when viewing the first page, I think I will have to somehow override the html for the TablePages component. Even just wrapping the indivdual elements in spans or divs should be sufficient, so that the CSS can hook into each of the available links. I guess for now I can repack the modified html into the contrib jar, unless there is a way to make the tableview component use a different html template for TablePages. Daniel On 2/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi Daniel, > > Did you already set a binding for the "pagesClass" attribute in your > table component? > > For example, > <component id="table" type="DoublePageLinkTable"> > <binding name="source" value="source"/> > <binding name="rowsClass" value="beans.evenOdd.next"/> > <binding name="pagesClass" value="literal:pager"/> > ... > > > Then your style sheet can start talking about "pager", like so: > .pager { > display: block; > text-align: center; > margin-bottom: .25em; > } > .pager b, .pager a { > margin-left: .10em; > margin-right: .10em; > } > > Hope that helps, > Tom > > -----Original Message----- > From: Daniel Jue [mailto:[EMAIL PROTECTED] > Sent: Friday, February 09, 2007 2:22 PM > To: Tapestry users > Subject: Re: How to customize the look of Contib TablePages subcomponent > > 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 <[EMAIL PROTECTED]> 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="[EMAIL PROTECTED]"></td> > > > > will cause it to be used to render the column.This is described here: > > > > > http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreferen > ce/tableview.html > > > > under "defining columns" > > > > > > On 2/9/07, Daniel Jue <[EMAIL PROTECTED]> 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: [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] > > > --------------------------------------------------------------------- > 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]