vendredi 17 octobre 2014

Scalatra i18n with AsyncResult


Vote count:

0




I have a Scalatra app with a servlet with FutureSupport and ScalateSupport. Adding ScalateI18nSupport breaks it.


This works fine:



get("/simple") {
mustache("frontpage.mustache")
}


but the same with AsyncResult fails with error: org.scalatra.ScalatraException: There needs to be a request in scope to call messages



get("/simple") {
new AsyncResult {
val is = Future(mustache("frontpage.mustache"))
}
}


asked 15 secs ago







Scalatra i18n with AsyncResult

Aucun commentaire:

Enregistrer un commentaire