You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Chris Lowe <ch...@gmail.com> on 2006/12/04 00:34:43 UTC
cellpadding on
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.
Re: cellpadding on
Posted by Chris Lowe <ch...@gmail.com>.
Fantastic - that worked a treat! Thank you.
Chris.
On 11/12/06, Jeanne Waldman <je...@oracle.com> wrote:
>
> Hi, I do not know why the cell padding is 1.
>
> You can create a skin that has this defined:
> .AFTableCellDataText:alias
> { padding: 0px}
>
> - Jeanne
>
> Chris Lowe wrote:
>
> > I was unable to find anything to prevent or override the default
> > cellpadding. I'm ashamed to say that I had to use some JavaScript to
> > reset
> > the cell padding which is far from ideal.
> >
> > Can anyone explain why the cell padding for <tr:table> is fixed at
> > 1? Is
> > it reasonable to make a feature request to default cell padding to
> > zero so
> > that layout can be managed purely by CSS?
> >
> > Chris.
> >
> >
> >
> >
> > On 05/12/06, Chris Lowe <ch...@gmail.com> wrote:
> >
> >>
> >> 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 < jeanne.waldman@oracle.com> 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.
> >> > >
> >> >
> >> >
> >>
> >
>
>
Re: cellpadding on
Posted by Jeanne Waldman <je...@oracle.com>.
Hi, I do not know why the cell padding is 1.
You can create a skin that has this defined:
.AFTableCellDataText:alias
{ padding: 0px}
- Jeanne
Chris Lowe wrote:
> I was unable to find anything to prevent or override the default
> cellpadding. I'm ashamed to say that I had to use some JavaScript to
> reset
> the cell padding which is far from ideal.
>
> Can anyone explain why the cell padding for <tr:table> is fixed at
> 1? Is
> it reasonable to make a feature request to default cell padding to
> zero so
> that layout can be managed purely by CSS?
>
> Chris.
>
>
>
>
> On 05/12/06, Chris Lowe <ch...@gmail.com> wrote:
>
>>
>> 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 < jeanne.waldman@oracle.com> 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.
>> > >
>> >
>> >
>>
>
Re: cellpadding on
Posted by Chris Lowe <ch...@gmail.com>.
I was unable to find anything to prevent or override the default
cellpadding. I'm ashamed to say that I had to use some JavaScript to reset
the cell padding which is far from ideal.
Can anyone explain why the cell padding for <tr:table> is fixed at 1? Is
it reasonable to make a feature request to default cell padding to zero so
that layout can be managed purely by CSS?
Chris.
On 05/12/06, Chris Lowe <ch...@gmail.com> wrote:
>
> 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 < jeanne.waldman@oracle.com> 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.
> > >
> >
> >
>
Re: cellpadding on
Posted by Chris Lowe <ch...@gmail.com>.
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 <je...@oracle.com> 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.
> >
>
>
Re: cellpadding on
Posted by Jeanne Waldman <je...@oracle.com>.
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.
>