struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <maili...@matthias-wessendorf.de>
Subject RE: DynaBeans with struts faces
Date Fri, 09 Apr 2004 12:18:50 GMT
Joe,
can you provide some code ?

btw.
i would use <h:dataTable>-Tag for "forEach" in JSF
and <h:colimn> for rendering <td></td>

like this:
<h:dataTable value=#{MaintenanceListForm.items} var{item}>

  <h:column>
    <f:facet name="header">
	 <h:outputText value="HEADER_TEXT"/>
    </f:facet>

    <h:outputText value="#{item.foo}"/>

    <f:facet name="footer">
       <h:outputText value="footer_text"/>
    </f:facet>
  </h:column>
</h:dataTable>

note with <f:facet> you can "group" components logicaly.
dataTable has a "footer" and a "header"
it renders <tfoot> and <thead> for a HTML-Table

and look at http://myfaces.sf.net
they have a nice example for editing table
-->Master/Detail-Example


hope that was helpful
Cheers

Matthias


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message