<div dir="ltr"><div><span class="" style="white-space:pre">I give a parameter with the url and depending on the parameter I go to this or that page</span></div><div><span class="" style="white-space:pre"><br></span></div><div>

<span class="" style="white-space:pre">Example</span></div><div><span class="" style="white-space:pre"><br></span></div><div><span class=""><span style="white-space:pre"><a href="http://myurl/RKA/RKA/?_direct=true" target="_top" rel="nofollow" link="external">http://myurl/RKA/RKA/?_direct=true</a></span><br>

</span></div><div><span class=""><span style="white-space:pre"><br></span></span></div><div><span style="white-space:pre">RKATask is a subclass of Task</span><br></div><div><span class="" style="white-space:pre"><br></span></div>

<div><span class="" style="white-space:pre">RKATask&gt;&gt;go</span></div><div><br></div><div>((self requestContext request fields) at: &#39;_direct&#39; ifAbsent: [ nil ]) isNil </div><div><br></div><div><span class="" style="white-space:pre">                </span>ifFalse: [ </div>

<div><span class="" style="white-space:pre">                        </span>self call: (RKALayoutView new  createLogin: #transient)].</div><div>....otherwise another call: ((AnotherView new)])</div><div><br></div><div>hope this is clear, otherwise please ask</div>

<div>Sabine</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 13, 2013 at 5:00 PM, EstebanLM [via Smalltalk] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=4721778&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<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 class="HOEnZb"><div class="h5">

        I&#39;m using Seaside-REST for that (even it is not its purpose), but I needed to hack it a bit (bah, not a BIT really...) 
<br><br>See: 
<br><br>in  WARestfulFilter subclass: #EveRestFilter: 
<br><br>EveRestFilter &gt;&gt;#shoppingList
<br>        &lt;get&gt;
<br>        &lt;path: &#39;shopping-list&#39;&gt;
<br><br>        self continueWithRoot: [ :root | 
<br>                root startOn: EveUNOPSShoppingListPanel new ].
<br><br>EveRestFilter &gt;&gt;#continueWithRoot: aBlock
<br>        &quot;Continues the execution of the application. 
<br>         I will pass aBlock to the root class of app, which I assume is a REApplication. 
<br>         Otherwise, this will fail&quot;
<br>        | requestContext application session rootComponent |
<br>        
<br>        requestContext := self requestContext.        
<br>        application := requestContext application.
<br>        session := self obtainSessionWithApplication: application context: requestContext.
<br><br>        requestContext 
<br>                push: session 
<br>                during: [
<br>                        rootComponent := requestContext rootComponentIfAbsent: [ nil ].
<br>                        rootComponent ifNil: [ 
<br>                                rootComponent := (application preferenceAt: #rootClass) new.
<br>                                requestContext rootComponent: rootComponent ].
<br>                        rootComponent do: aBlock.
<br>                        self next handleFiltered: requestContext ].
<br><br>EveRestFilter &gt;&gt;#obtainSessionWithApplication: application context: requestContext
<br>        | sessionKey session |
<br>        
<br>        sessionKey  := application trackingStrategy keyFromContext: requestContext.        
<br>        session := sessionKey ifNotNil: [  
<br>                application cache 
<br>                        at: sessionKey  
<br>                        ifAbsent: [ nil] ].
<br>        
<br>        session  ifNil: [ 
<br>                session := application newSession.
<br>                application register: session ].
<br>                
<br>        ^ session
<br><br><br>then in the main component: 
<br><br>EveMainComponent&gt;&gt;startOn: aComponent
<br>        contentComponent show: aComponent
<br><br><br><br>is probably not the best way to do it, but is the easiest way I found, and it works :)
<br><br>Esteban
<br><br></div></div><div class="im">On Nov 13, 2013, at 12:24 PM, Tommaso &lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=4721775&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt; wrote:
<br></div><div><div class="im"><div class='shrinkable-quote'><br>&gt; Hello everybody,
<br>&gt; 
<br>&gt; I am building a web application with Seaside 3.0 and I would like to access single pages of the application with the URL, because I need to access them with other technologies (like javascript libraries).
<br>&gt; I was looking into Seaside-REST, but I am wondering if it is the correct way to implement this, also because I would probably loose the session.
<br>&gt; 
<br>&gt; Is there a way to provide some kind of routing to Seaside, or is REST the correct way?
<br>&gt; 
<br>&gt; Thank you.
<br>&gt; Tommaso Dal Sasso_______________________________________________
<br>&gt; seaside mailing list
</div></div>&gt; <a href="http://user/SendEmail.jtp?type=node&amp;node=4721775&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a></div><br>_______________________________________________
<br>seaside mailing list
<br><div class="im"><a href="http://user/SendEmail.jtp?type=node&amp;node=4721775&amp;i=2" 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.org/cgi-bin/mailman/listinfo/seaside</a><br>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        </div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://forum.world.st/Seaside-and-urls-tp4721764p4721775.html" target="_blank" rel="nofollow" link="external">http://forum.world.st/Seaside-and-urls-tp4721764p4721775.html</a>
        </div><div class="HOEnZb"><div class="h5">
        <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=4721778&i=1" 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&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;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></div></div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/Seaside-and-urls-tp4721764p4721778.html">Re: Seaside and urls</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/>