Problem: CometActor.partialUpdate without effect.
Hi Diego,
thank you very much for your migration advice of 16th of march. Unfortunately I have only 2 times a year enough capacity to handle non-trivial things.
According to your recommendations I have upgraded my application to Lift 2.6 and Scala 2.10, as liftmodules.widgets_2.6 exists only up to Scala 2.10.
After some tweakings including activation of OldHtmlProperties by LiftRules the application runs overall well.
But in one area I did not succeed. The application sends many eMails. I have a Comet form, which should display a feedback for each eMail address, either send success or send failure.
In my CometActor in the lowPriority method I have the branch
case MailAddressFailure(email) =>
_log.debug("Received failure " + email)
partialUpdate(PrependHtml("addressesFail", Text(email) ++ (<br/>)))
updateSendStatus
When an address fails, the CometActor receives the case message MailAddressFailure(email), logs "Received failure" as programmed above, and then calls the inherited method "CometActor.partialUpdate" with a "PrependHtml" command. But unfortunately this JsCmd does not have an effect on the client side. Also this.error(message) does not have a visible effect.
I am struggling with how to find out why there is no effect.
In Firefox developer tools console I find
" [HTTP/1.1 200 OK 265ms]
Kein Element gefunden F9310214980291KUYSK:1:1
GET
https://localhost:9243/lehrkraftnews/comet_request/81429541732/z9x4zok3wpep/F9310214980291KUYSK [HTTP/1.1 200 OK 74382ms]
POST
https://localhost:9243/lehrkraftnews/ajax_request/F9310214980291KUYSK/ [HTTP/1.1 200 OK 135ms]
Kein Element gefunden F9310214980291KUYSK:1:1
GET
https://localhost:9243/lehrkraftnews/comet_request/23091197280/z9x4zok3wpep/F9310214980291KUYSK [HTTP/1.1 200 OK 73683ms]
POST
https://localhost:9243/lehrkraftnews/ajax_request/F9310214980291KUYSK/ [HTTP/1.1 200 OK 141ms]
Kein Element gefunden F9310214980291KUYSK:1:1
GET
https://localhost:9243/lehrkraftnews/comet_request/44415591304/z9x4zok3wpep/F9310214980291KUYSK"
When I click on the link after "Kein Element gefunden" (meaning "No element found") I see only an empty window.
I have manually included jquery-1.8.0.min.js and jquery-ui-1.8.23.custom.min.js into the page which shows the Comet form.
Any help appreciated.
Thanks in advance,
Christoph