val menu = Menu.param[Category]("Category", Loc.LinkText(c => Text(c.urlKey)), Catalog.categoryByUrlKey _, _.urlKey) /
"category" >> Loc.Template(() => Templates("category" :: "list" :: Nil).openOr(NodeSeq.Empty)) >> Loc.Title(c => Text(c.name))
I am trying to find a solution so that I can use string => Future[Box[T]] for parser parameter, i.e. Catalog.categoryByUrlKey becomes a string => Future[Box[Category]].
Reason, starting from versions 3.0 of slick all queries return futures, and to use query results in Menu I must Await results.
The code is in slick-dal-impl branch.
Thank You
Aditya
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
def render = "#categories-nav *" #> renderFutureCategory()
private def renderFutureCategory(): Future[Seq[NodeSeq]]
in my snippet to render navigation asynchronously. Which is magically behaving like parallel snippet execution.
Thanks Again.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.