<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Ciao,</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>sorry for the replication, i hope to be more clear and concise.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I do some test to manage the request relative to one expired session.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>My goal is to redirect to a specific url when the user click any component relative to one expired session.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>The solution to keep alive the session with:</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span> <span class="Apple-tab-span" style="white-space:pre">        </span>(html scriptaculous periodical</div><div> <span class="Apple-tab-span" style="white-space:pre">                        </span> interval: 30 seconds;</div><div><span class="Apple-tab-span" style="white-space: pre; ">                        </span>callback:[:x| self transcript] )).</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>don't complete solve the problem because for some situation this periodical update can <span class="Apple-style-span" style="color: rgb(51, 51, 51); "><span class="hps">may</span></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); "> </span><span class="Apple-style-span" style="color: rgb(51, 51, 51); "><span class="hps">be lost</span></span></div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>and the user can click on component relative to one expired session in some cases.</div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I create a WAApplication subclass for define the <span class="Apple-tab-span" style="white-space:pre">        </span>handleExpired: aRequestContext method.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Now it's set :</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>handleExpired: aRequestContext<span class="Apple-tab-span" style="white-space:pre">
                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>" redirect all expire request to a specific url"</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span><span class="Apple-tab-span" style="white-space: pre; ">aRequestContext redirectTo: </span>anUrl<span class="Apple-tab-span" style="white-space:pre">
        
        </span></div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>This intercept all activity relative to one expired session and redirect to a specific anUrl.</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>The problem is relative to component with ajax html updater definition.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>For example;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>....... <span class="Apple-tab-span" style="white-space: pre; "> onChange: (                </span></div><span class="Apple-tab-span" style="white-space: pre; ">                        html updater
                                        id: </span>'elementToUpdate'<span class="Apple-tab-span" style="white-space: pre; ">;
                                        triggerFormElement: id;
                                        callback: [:r | rfrMasterHtml updateView: r]        
                                )].</span><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">                </span>because when the session is expired and the user trigger the onChange, </div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>the application<span class="Apple-tab-span" style="white-space:pre">        </span> handlerExpired:<span class="Apple-tab-span" style="white-space:pre">        </span> intercept the request, but the<span class="Apple-tab-span" style="white-space:pre">                </span> <span class="Apple-tab-span" style="white-space: pre; ">aRequestContext</span> redirectTo: url </div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span> <span class="Apple-tab-span" style="white-space: pre; ">        </span>don't update the html page but is rendering in the html DIV </div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span></div><div><span class="Apple-tab-span" style="white-space: pre; ">                </span>relative to html updater statement ( 'elementToUpdate' in this case ).</div><div><br></div><div><div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Question for action relative to one expired session :</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>A) for onChange trigger i can rendering the <span class="Apple-tab-span" style="white-space:pre">                </span><span class="Apple-tab-span" style="white-space: pre; ">aRequestContext redirectTo: </span>anUrl <span class="Apple-tab-span" style="white-space:pre">        </span>at the top of the page</div><div><br></div></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>B) if i lose completely the internet connection i can display a message to the user.</div><div><br></div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>Thanks for any consideration,</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">                </span>Dario</div></div></body></html>