Hi Jeanne,

I had seen that documentation and had started to put together a skin for my
table.  I just can't figure how to set the cell padding to zero.  Initial
reading on the CSS border-XXX properties looked promising, but unfortunately
this didn't work as I was expecting:

af|table::content { border-collapse:collapse; border-color:white;
border-style:solid; border-width:0px; }
af|table::detail {border-collapse:collapse;
font-family:Arial,Helvetica,Geneva,sans-serif;font-size:10pt;font-weight:normal;color:#000000;border-color:#gray;background-color:black}
af|table::column-footer
{border-color:magenta;font-family:Arial,Helvetica,Geneva,sans-serif;font-size:10pt;font-weight:bold;text-align:left;background-color:#CCCCCC;color:#035D5C}
af|column::cell-text
{border-collapse:collapse;font-family:Arial,Helvetica,Geneva,sans-serif;font-size:10pt;font-weight:normal;color:#000000;vertical-align:center;background-color:transparent;border-color:red;}

I have Googled extensively for this but no joy.  Any pointers?

Cheers,

Chris.

On 04/12/06, Jeanne Waldman <[EMAIL PROTECTED]> wrote:

There is no cellpadding attribute on the tr:table component.
Here is the tagdoc:
http://incubator.apache.org/adffaces/trinidad-api/tagdoc/tr_table.html

You can create a skin that changes the padding of the cells.

- Jeanne

Chris Lowe wrote:

> Hello,
>
> I can't set the cell padding for a table component - when I look at the
> generated HTML the value for cellpadding seems stuck at "1".  My table
is
> defined as:
>
> <tr:table id="grdFormat" var="row" value="#{popularFormats}"
> horizontalGridVisible="false" verticalGridVisible="false"
> allDetailsEnabled="false" cellpadding="0">
>    <tr:column separateRows="false" >
>      <tr:panelGroupLayout rendered="#{row.id eq selectedFormat.id}">
>        <img src="../img/green-select-square.gif" alt="selected" />
>      </tr:panelGroupLayout>
>    </tr:column>
>
>    <tr:column separateRows="false" >
>      <tr:panelGroupLayout inlineStyle="display: block; width: 100%;
> background-color: green;">
>        <s:link value="#{row.description}" action="#{
> orderFormatBean.tableSelected}" >
>          <f:param value="#{row.id}" name="formatId"/>
>        </s:link>
>        </tr:panelGroupLayout>
>    </tr:column>
>  </tr:table>
>
> I've been looking at this for hours and its driving me nuts!  Can anyone
> point me in the right direction?
>
> Best Regards,
>
> Chris.
>


Reply via email to