I have a List[Foo] and I want to construct a table with 10 columns and
however many rows necessary to contain all the Foos. I feel like I
should do something like so, but it's not quite right yet:
<table>
<lift:MyPage.func>
<td><foo:name/></td>
</lift:MyPage.func>
</table>
def func(xhtml: NodeSeq): NodeSeq = {
val cells: List[NodeSeq] = Foo.findAll(...).flatMap(foo => {
bind("foo", xhtml, "name" -> foo.name)
})
// then reduce the list of cells putting in <tr>s in appropriate
places, but not sure how.
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---