I am using liftweb 3.1 and occasionally I am seeing warning `Unmapped Lift-like parameter seen in Unmapped Lift-like parameter ...`. My understanding is that this is due to GC, I am seeing this warning on what I'd call pure liftweb pages where binding is only via csssel and am also seeing in snippet where I am using lift-ng for angular.
I am wondering what is best way to handle refreshing the current page so that user is not stuck in no-response hell and has to manually refresh the screen which often results in a call to support desk.
I have two different methods working:
LiftRules.handleUnmappedParameter.default.set((req: Req, parameterName: String) => {
if (parameterName.startsWith("F")) {
logger.warn("my Unmapped Lift-like parameter seen in request [%s]: %s".format(req.uri, parameterName))
S.appendJs(Reload)
}
})
and
val whence = S.referer openOr "/"
LiftRules.handleUnmappedParameter.default.set((req: Req, parameterName: String) => {
if (parameterName.startsWith("F")) {
logger.warn("my Unmapped Lift-like parameter seen in request [%s]: %s".format(req.uri, parameterName))
throw ResponseShortcutException.redirect(S.referer openOr "/")
}
})
Appreciate suggestions...