myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
Subject Re: embedded table
Date Wed, 06 Feb 2008 09:59:46 GMT
Hi!
> Sounds good - can you send your example again utilizing the
> detailStamp approach if that fits?
So, not it is getting "stressy" again. I have a bad need for it now.

So, using the detailStamp approach it might look like:

<t:datable var="group1" value="#{bean.data}">
...
   <t:column colspan="10">
       <t:outputText value="#{group1.headerValue}" />
   </t:column>
   <f:facet name="detailStamp">
     <t:datable var="group2" value="#{group1.groupData}" embedded="true">
         <t:column colspan="2">
             <t:outputText value="#{group2.headerValue2}" />
         </t:column>
         <t:column colspan="8">
             <t:outputText value="#{group2.headerValue2}" />
         </t:column>
         <f:facet name="detailStamp">
           <t:datable var="detail" value="#{group2.detailData}"
embedded="true">
               <t:column>
                   <t:outputText value="#{detail.value1}" />
               </t:column>
....
               <t:column>
                   <t:outputText value="#{detail.value10}" />
               </t:column>
         </t:datable>
       </f:facet>
    </t:datable>
  </f:facet>
</t:datable>

Additionally I'd like to introduce a headerStamp and footerStamp which
renders into the head/foot of the table (if possible) and thus allows
you to have multi-row header/footer.
Effectively these new stamps might work with an embedded datatable only
(for now).

I'll start doing so now, ok?

Ciao,
Mario


Mime
View raw message