<div dir="ltr"><div>Hi Mariano.<br><br><span id="result_box" class="" lang="en"><span class="">Once</span> <span class="">something similar</span> <span class="">happened to me</span><span>, I had</span> <span class="">to</span> <span class="">render</span> <span class="">a component</span> <span class="">differences</span> <span class="">between a</span> <span class="">do in</span> <span class="">the full</span> <span class="">cycle or</span> <span class="">later</span> <span class="">with</span> <span class="">ajax</span> <span class="">call</span><span class="">.</span></span><br><span id="result_box" class="" lang="en"><span class="">I could</span> <span class="">understand, is</span> <span class="">that if you look</span> <span class="">at the</span> <span class="">code </span><span class="">WARenderPhaseContinuation&gt;&gt;processRendering</span><span>:</span> <span class="">you</span><span>&#39;ll see that</span> <span class="">along with rendering</span> <span class="">the component</span> <span class="">many other</span> <span class="">things are done,</span> </span><span id="result_box" class="" lang="en"><span id="result_box" class="" lang="en"><span class="">it is here that</span> <span class="">the</span></span> &quot;<span class="">self</span> <span class="">updateURL</span> <span class="">becomes</span><span>:</span> <span class="">actionURL</span><span>&quot; is performed.</span> <span class="">My</span> <span class="">impression was</span> <span class="">that all</span> <span class="">these tasks</span> <span class="">are not done</span> <span class="">when an</span> <span class="">ajax</span> <span class="">call is made</span><span>,</span> <span class="">but I could not</span> <span class="">finish</span> <span class="">watching</span> <span class="">understand</span> <span class="">the code</span> <span class="">of</span> <span class="">Seaside at this low level...</span></span><br><br><span id="result_box" class="" lang="en"><span class="">If this were so</span><span>,</span> <span class="">I</span> <span class="">would</span> <span class="">try</span> <span class="">to copy the</span> <span class="">code</span> <span class="">WARenderPhaseContinuation</span> <span class="">&gt;&gt;</span> <span class="">updateURL</span><span>:</span> <span class="">and put it </span><span class="">within my</span> <span class="">ajax</span> <span class="">call</span> <span class="">handler</span> <span class="">to force the</span> <span class="">update</span> <span class="">url</span> <span class="">(ie</span> <span class="">dirty</span> <span class="">I know</span> <span class="">but if it works</span> <span class="">...</span><span>)</span><span>.</span><br><br> <span class="">(</span><span>WAVisiblePresenterGuide</span> <span class="">client:</span> <span class="">(</span><span class="">WAUpdateUrlVisitor</span> <span class="">url:</span> <span class="">aURL</span><span>)</span><span>)</span><br> <span class="">start</span><span class="">: self</span> <span class="">session</span> <span class="">presenter<br><br></span></span></div><span id="result_box" class="" lang="en"><span class="">Best.<br></span></span></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-19 13:33 GMT-03:00 Mariano Martinez Peck <span dir="ltr">&lt;<a href="mailto:marianopeck@gmail.com" target="_blank">marianopeck@gmail.com</a>&gt;</span>:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>I have an app where I have a root component which is the one being displayed almost all time. That component has a menu, a workspace where I can have many tabs, etc. Each of my use-case components can implement #needsServiceVM answering true or false. Depending on that, I must add a special field to the URL because then at web server level I do something different. </div><div><br></div><div>Previously, my app was not using AJAX, so for example when I clicked on a menu and added a new tab, the #updateUrl: of my root component was called. Therefore in that method I could do something like:</div><div><br></div><div>updateUrl: aUrl </div><div><span style="white-space:pre-wrap">        </span>super updateUrl: aUrl.</div><div><span style="white-space:pre-wrap">        </span>self workspaceComponentList anySatisfy: [ :workspace | </div><div><span style="white-space:pre-wrap">                </span>(workspace activeTabPaneRenderable ifNil: [ false ]  ifNotNilDo: [ :tab | tab component needsServiceVM])</div><div><span style="white-space:pre-wrap">                        </span>ifTrue: [ </div><div><span style="white-space:pre-wrap">                                </span>aUrl addField: &#39;service&#39; value: &#39;true&#39;. </div><div><span style="white-space:pre-wrap">                                </span>true ]</div><div><span style="white-space:pre-wrap">                        </span>ifFalse: [ false ].</div><div><span style="white-space:pre-wrap">        </span>]  </div><div><br></div><div>The problem is now that the menus are fired by AJAX and the workspace is only re-render. Therefore, the clicked use-case component is added  as a new tab, but the #updateUrl:  of my root component was not called. </div><div><br></div><div>Is there any workaround I could do? ajaxComplete  and somehow get the URL?</div><div><br></div><div>If it is not by adding a field in the URL do you have another possibility in mind? Maybe putting something in the request? (but I must be able to read this at the web server). </div><div><br></div><div>Thanks in advance, </div><span class="HOEnZb"><font color="#888888"><div><br clear="all"><div><br></div>-- <br><div>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div></font></span></div>
<br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div></div>