It doesn't help either. Here is my codes, are they correct?

<t:dataTable headerClass="headerstyle" id="portfoliodatas"  
value="portfoliodatenListBean.portfoliodatas" var="portfoliodata" border="1">

 <t:column style="background-color:grey">

   <f:facet name="header">

      <h:outputText value="#{bundle.table_header_debitorenkonto}" />

   </f:facet>

   <h:outputText value="#{portfoliodatenBean.kontonummer}" />

</t:column>

...

...

</t:dataTable>

 

Regards

 

Wei

 

________________________________

Von: Avramucz István [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 9. Januar 2007 11:26
An: MyFaces Discussion
Betreff: Re: AW: AW: Question about using dataTable

 

Maybe this helps:

<t:dataTable headerClass="headerstyle">

Of course 'headerstyle' is a CSS class.

AI

Chen, Wei írta: 

Hi,
 
it doesn't work.  :-(
 
Wei
 
 
-----Ursprüngliche Nachricht-----
Von: Avramucz István [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 9. Januar 2007 09:55
An: MyFaces Discussion
Betreff: Re: AW: Question about using dataTable
 
Try t:column's style attribute.
 
<t:column style="background-color:#eeeeee">
 
AI
 
Chen, Wei írta:
  

        Thanks. It did help.
         
        Another question: How can I set the background color of the head row? I 
try as follow but it doesn't work. I can't see the background color.
         
        <t:column colspan="2" bgcolor="#eeeeee">
         
        Regards
         
        Wei
         
         
        -----Ursprüngliche Nachricht-----
        Von: Surapuraju, Vamsi [mailto:[EMAIL PROTECTED] 
        Gesendet: Montag, 8. Januar 2007 19:37
        An: MyFaces Discussion
        Betreff: RE: Question about using dataTable
         
        You can use panelgroup, panelgrid or div to solve your problem. Below is
        the example
         
        <t:dataTable id="search_result" var="search_result" border="1">
         
           <t:column colspan="2">
         
                    <f:facet name="header">
         
                    <h:outputText value="bundle.table_header_debitorenkonto" />
         
                    </f:facet>
                 <h:panelGrid>
                         <h:outputText value="data1" />
         
                         <h:outputText value="data2" />
                 <h:panelgrid>
           </t:column>
         
        ...
         
        ...
         
        </t:dataTable> 
         
        Hope this helps
         
        Vamsi Surapuraju
        724 709 2391
         
        -----Original Message-----
        From: Chen, Wei [mailto:[EMAIL PROTECTED] 
        Sent: Monday, January 08, 2007 3:51 AM
        To: users@myfaces.apache.org
        Subject: Question about using dataTable
         
        Hi,
         
         
         
        I use the <t:dataTable>. I have a question: If a column head has two
        data columns, how can I do that? Here is my codes. But it looks not like
        as what I want:
         
        ...
         
        <t:dataTable id="search_result" var="search_result" border="1">
         
           <t:column colspan="2">
         
                    <f:facet name="header">
         
                    <h:outputText value="bundle.table_header_debitorenkonto" />
         
                    </f:facet>
         
                    <h:outputText value="data1" />
         
                    <h:outputText value="data2" />
         
           </t:column>
         
        ...
         
        ...
         
        </t:dataTable>
         
         
         
        Regards
         
         
         
        Wei
         
         
         
         
          
            

 
 
  

 

Reply via email to