Hi community,
I've been working on a project where we're trying to solve the following problem:
A user is on our site, filling out a form. While they are doing so, we restart our server with an update. When the user submits the form (through liftAjax), they get an unmapped parameter exception.
Our current working solution is to record the actions the user takes on the page (client-side) until we detect an unmapped parameter, and then refresh the page and re-perform the last action taken. To preserve the state of any fields on the page, we will be pushing data onto the window history. The problem I've found, though, is that I'm not able to tell the client side through a response that we had an unmapped parameter on the server side. The handleUnmappedParameter LiftRules vendor does not allow for a return type, so the only thing it can do is redirect the page with S.redirectTo or with a ResponseShortcutException. Is there a way to give a special response to the client in the case of an unmapped parameter? Is there entirely another way that I should be solving this problem?
Thanks for all of your times,
James