I know the subject is bit confusing so ,here goes:

Have a collection of items, each item having another collection. So I use
dataTable, and just nest the second dataTable in a column of the first one.
In the second dataTable's column, I would like to create a header, using a
value from the first collections item?

If youre still going "HUH?" here is a coding example:

<t:dataTable value="#{billingBean.accounts}" var="accounts" width="100%">
  <t:column>
        <t:dataTable value="#{accounts.lineGroups}" var="lineGroups">
                  <t:column>
                        <f:facet name="header">* <h:outputText
value="#{accounts.accountNumber}"/> *</f:facet>
                                * <h:outputText 
value="#{accounts.accountNumber}"/> *
                  </t:column>
                  <t:column>
                                <f:facet name="header">Type</f:facet>
                  </t:column>
                  <t:column>
                                <f:facet name="header">Ammount</f:facet>
                        <t:dataTable value="#{lineGroups.lines}" var="lines">
                                  <t:column>
                                                <h:outputText 
value="#{lines.description}"/>                                                  
                  
                                  </t:column>
                                  <t:column>
                                                <h:outputText 
value="#{lines.amount}">
                                                  <f:convertNumber   
pattern="R######0.00"  />
                                                </h:outputText>                 
                                                
                                  </t:column>
                        </t:dataTable>
                  </t:column>
        </t:dataTable>
  </t:column>
</t:dataTable>                                  

You'll see the second dataTable, the first "*" gets printed, but not the
value or the second. However the value in the column itself, not the facet,
gets printed fine. 

Any ideas?
-- 
View this message in context: 
http://www.nabble.com/tomahawk-sub-dataTable-cannot-show-data-from-first-table-in-facet-header-or-footer-tp21973278p21973278.html
Sent from the My Faces - Dev mailing list archive at Nabble.com.

Reply via email to