<div dir="ltr">fileout</div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-21 9:56 GMT+01:00 Sabine Manaa <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4927735&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span>:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Cyril,<div><br></div><div>I have an error Handler which resumes (if possible), shows a message to the user and sends an email to me with the stack and further information.  If you have questions, ask.</div><div><br></div><div>1) when registering the application: I attach  it to the RequestHandler: "exceptionHandler: RKAHtmlErrorHandler"</div><div>2) the file out code of the error handler is below</div><div>3) an example of the mail in separate mail</div><div>4) also, when an error occurs (i catch them with an exception handler overall), I create an instance of it</div><div><div>RKAHtmlErrorHandler</div><div><span class="m_-7739704459747309461gmail-Apple-tab-span" style="white-space:pre-wrap">              </span>session: self requestContext session</div><div><span class="m_-7739704459747309461gmail-Apple-tab-span" style="white-space:pre-wrap">                </span>stack: thisContext stack</div><div><span class="m_-7739704459747309461gmail-Apple-tab-span" style="white-space:pre-wrap">            </span>exception: anException</div><div><span class="m_-7739704459747309461gmail-Apple-tab-span" style="white-space:pre-wrap">              </span>ip: self ipAddressString</div><div><span class="m_-7739704459747309461gmail-Apple-tab-span" style="white-space:pre-wrap">            </span>view: self class printString.</div></div><div><br></div><div>As you see in the timestamps, I use it for years now. Possibly some methods are no longer used (especially the hard coded mail html code), I should do a refactoring there:-). But always other topics. I hope it helps anyway</div><div>.</div><div><br></div><div>5) In my main layout view, I do this in the renderContentOn:</div><div>html document addLoadScript:</div><div><span class="m_-7739704459747309461gmail-Apple-tab-span" style="white-space:pre-wrap">              </span>(html jQuery document onAjaxError: (self ajaxErrorHandler asFunction: #('event' 'jqxhr' 'settings' 'exception'))) <br></div><div><br></div><div><div>ajaxErrorHandler </div><div><span class="m_-7739704459747309461gmail-Apple-tab-span" style="white-space:pre-wrap">  </span>^ ' if (jqxhr.status == 403) { </div><div>            alert("Aus Sicherheitsgründen wurde Ihre Sitzung beendet. Bitte melden Sie sich neu an."); </div><div>            window.location.href = settings.url.split("?")[0].<wbr>replace("help",""); </div><div>        } else { </div><div>if (jqxhr.status == 200) { } else {  </div><div>alert("Entschuldigung, es ist ein Fehler aufgetreten. Bitte melden Sie sich neu an und versuchen es erneut oder geben Sie uns eine Info über den folgenden Fehler: " + exception +"jqxhr.status:"+jqxhr.status)<wbr>;   </div><div>        }}'</div></div><div><br></div><div>Concerning the missing features for the v2, I was missing the following:</div><div><br></div><div>1) <a href="https://github.com/google/material-design-lite/issues/943" target="_blank" rel="nofollow" link="external">https://github.com/google/<wbr>material-design-lite/issues/<wbr>943</a></div><div>I fixed it by changing the overflow: to visible in mdl-card</div><div>2) date picker</div><div>I just started using </div><div><a href="https://puranjayjain.github.io/md-date-time-picker/#documentation/time" target="_blank" rel="nofollow" link="external">https://puranjayjain.github.<wbr>io/md-date-time-picker/#<wbr>documentation/time</a><br></div><div>3) same for time picker</div><div>so it seems that we will go online with v1. Too many changes in v2which would take more time for us to go online</div><div><br></div><div>I hope the code helps </div><div>Regards</div><span class="HOEnZb"><font color="#888888"><div>Sabine </div><div><br></div></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2016-12-20 10:03 GMT+01:00 CyrilFerlicot [via Smalltalk] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4927735&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>></span>:<br></div></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div class="m_-7739704459747309461HOEnZb"><div class="m_-7739704459747309461h5">

        Hi,
<br><br>I would like to know if someone already implemented an error handler
<br>that will render an error message instead of a component if there is an
<br>error during the rendering, but that will also proceed with the
<br>rendering of the page.
<br><br>I found the WAHtmlErrorHandler that show the message but it stop the
<br>rendering of the page. If I render a component A, B and C and B has an
<br>error I would like to see component A, an error message and component C.
<br>For now I can only see component A and an error message.
<br><br>Does someone already did this kind of thing? If not does someone has an
<br>idea of how to resume the rendering?
<br><br>Thank you
<br><br>-- 
<br>Cyril Ferlicot
<br><br><a href="http://www.synectique.eu" rel="nofollow" link="external" target="_blank">http://www.synectique.eu</a><br><br>2 rue Jacques Prévert 01,
<br>59650 Villeneuve d'ascq France
<br><br><br></div></div></div></div><span class="">______________________________<wbr>_________________
<br>seaside mailing list
<br><a href="http:///user/SendEmail.jtp?type=node&node=4927552&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.<wbr>org/cgi-bin/mailman/listinfo/s<wbr>easide</a><br><div class="m_-7739704459747309461m_-5912820204918432748small"><br><img src="http://forum.world.st/images/icon_attachment.gif"> <strong>signature.asc</strong> (817 bytes) <a href="http://forum.world.st/attachment/4927552/0/signature.asc" rel="nofollow" link="external" target="_blank">Download Attachment</a></div>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://forum.world.st/Improved-HTML-error-handler-tp4927552.html" target="_blank" rel="nofollow" link="external">http://forum.world.st/Improved<wbr>-HTML-error-handler-tp4927552.<wbr>html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                To start a new topic under Seaside General, email <a href="/user/SendEmail.jtp?type=node&node=4927735&i=2" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
                To unsubscribe from Seaside, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></span></blockquote></div><br></div>
</blockquote></div><br></div>
<!--start-attachments--><div class="small"><br/><img src="http://forum.world.st/images/icon_attachment.gif" > <strong>RKAHtmlErrorHandler.st</strong> (7K) <a href="http://forum.world.st/attachment/4927735/0/RKAHtmlErrorHandler.st" target="_top" rel="nofollow" link="external">Download Attachment</a></div><!--end-attachments-->

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/Improved-HTML-error-handler-tp4927552p4927735.html">Re: Improved HTML error handler</a><br/>
Sent from the <a href="http://forum.world.st/Seaside-General-f86180.html">Seaside General mailing list archive</a> at Nabble.com.<br/>