How should i write the bind code ?
var data = Map(2009/10/09 -> List(St1), 2009/10/10 -> List(Hello, M7,
123,da))
....
data.flatMap(d=> {
Log.info(" *************************:" + d)
bind("data", in,
"date_title" -> Text("222")
)
})
Get this erors:
found : Iterable[scala.xml.Node]
required: scala.xml.NodeSeq
data.flatMap(d=> {
I'm not familiar with this.
I want the page show like this:
date - 2009/10/09
st1
date - 2009/10/10
Hello
M7
123
da
Cheers,
Neil
On Nov 9, 11:35 am, Naftoli Gugenheim <
naftoli...@gmail.com> wrote:
> That should not be foreach but flatMap.
> Foreach is like map but returns Unit, and flatMap is like map but it concatenates the resulting elements, which must be iterable (or iterators, depending).
>
> -------------------------------------
>