object ScenarioEditSnippet extends Loggable {
object varScenarioToEdit extends SessionVar[Box[AScenario]](Empty)
def getBodyFor(scen : AScenario
) : NodeSeq = {
<ul>
{
scen.getContentsIds.map(x => <li>{x.toString}</li>) toSeq
}
</ul>
}
def getBody : NodeSeq = {
varScenarioToEdit.get match {
case Full(scen) => getBodyFor(scen)
case _ => <div> no stuff </div>
}
}
def render = {
"#putBodyHere" #> getBody
}
}
This way is fine, nothing wrong with it
Diego
Sent from my cell
--
--
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.