You can go about this quite a number of ways. One is to have an element bound
on the page that uses `idMemoize`. At a very high level, that might look like this:
HTML:
<ul id="notices">
<li class="notice">This is a notice!</li>
</ul>
Scala:
var notices = List[String]()
val noticesRenderer = SHtml.idMemoize { _ =>
".notice *" #> notices
}
def process(): JsCmd = {
...
case Full(a) =>
notices = List("Uh-oh, you messed up!")
a.setHtml // returns JS that will rebind the notices
...
}
"#notices" #> noticesRenderer & // binds notices initially
"..." #> process _
You can also roll your own thing on the client, and simply send down a
function call or whatever your chosen mode of invoking the client-side
code is.
Thanks,
Antonio