You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by laredotornado <la...@gmail.com> on 2010/01/29 21:06:58 UTC
How do I apply a class to only one footer cell?
Hi,
I'm using MyFaces 1.1.5 with Tomahawk 1.1.7. How can I apply a class to
only a particular cell the footer row of a dataTable? I tried this ...
<t:column>
<f:facet name="header">
<t:outputText value="Sub-Vendor"/>
</f:facet>
<t:outputText value="#{currentRow.name}">
</t:outputText>
<f:facet styleClass="alignright" name="footer">
<h:outputText styleClass="alignright" value="Total:" />
</f:facet>
</t:column>
but unfortunately am greeted with the error, "attribute `styleClass' in tag
`f:facet'". Also, the styleClass attribute of teh h:outputText only gets
applied to the span and not the td surrounding the cell, which is where I
want to apply the class.
Thanks for your help, - Dave
--
View this message in context: http://old.nabble.com/How-do-I-apply-a-class-to-only-one-footer-cell--tp27377604p27377604.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: How do I apply a class to only one footer cell?
Posted by laredotornado <la...@gmail.com>.
Sweet! 5 stars -
Jakob Korherr wrote:
>
> Hi,
>
> You can use the attribute "footerstyleClass" of <t:column>.
>
> Regards,
> Jakob
>
> 2010/1/29 laredotornado <la...@gmail.com>
>
>>
>> Hi,
>>
>> I'm using MyFaces 1.1.5 with Tomahawk 1.1.7. How can I apply a class to
>> only a particular cell the footer row of a dataTable? I tried this ...
>>
>> <t:column>
>> <f:facet name="header">
>> <t:outputText value="Sub-Vendor"/>
>> </f:facet>
>> <t:outputText value="#{currentRow.name}">
>> </t:outputText>
>> <f:facet styleClass="alignright" name="footer">
>> <h:outputText styleClass="alignright" value="Total:" />
>> </f:facet>
>> </t:column>
>>
>> but unfortunately am greeted with the error, "attribute `styleClass' in
>> tag
>> `f:facet'". Also, the styleClass attribute of teh h:outputText only gets
>> applied to the span and not the td surrounding the cell, which is where I
>> want to apply the class.
>>
>> Thanks for your help, - Dave
>> --
>> View this message in context:
>> http://old.nabble.com/How-do-I-apply-a-class-to-only-one-footer-cell--tp27377604p27377604.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
>
--
View this message in context: http://old.nabble.com/How-do-I-apply-a-class-to-only-one-footer-cell--tp27377604p27378642.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: How do I apply a class to only one footer cell?
Posted by Jakob Korherr <ja...@gmail.com>.
Hi,
You can use the attribute "footerstyleClass" of <t:column>.
Regards,
Jakob
2010/1/29 laredotornado <la...@gmail.com>
>
> Hi,
>
> I'm using MyFaces 1.1.5 with Tomahawk 1.1.7. How can I apply a class to
> only a particular cell the footer row of a dataTable? I tried this ...
>
> <t:column>
> <f:facet name="header">
> <t:outputText value="Sub-Vendor"/>
> </f:facet>
> <t:outputText value="#{currentRow.name}">
> </t:outputText>
> <f:facet styleClass="alignright" name="footer">
> <h:outputText styleClass="alignright" value="Total:" />
> </f:facet>
> </t:column>
>
> but unfortunately am greeted with the error, "attribute `styleClass' in tag
> `f:facet'". Also, the styleClass attribute of teh h:outputText only gets
> applied to the span and not the td surrounding the cell, which is where I
> want to apply the class.
>
> Thanks for your help, - Dave
> --
> View this message in context:
> http://old.nabble.com/How-do-I-apply-a-class-to-only-one-footer-cell--tp27377604p27377604.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>