Yes, that will be ok .<div><br></div><div><br><br><div class="gmail_quote">On Fri, Oct 31, 2008 at 8:57 AM, Marco Lettere <span dir="ltr">&lt;<a href="mailto:m.lettere@websynapsis.com">m.lettere@websynapsis.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Done.<br>
Under the arguments: Compiler and Compilation Manager (right?).<br>
M.<br>
<br>
<br>
Henry Minsky ha scritto:<br>
<div class="Ih2E3d">&gt; Can you file this as a bug in JIRA please?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Oct 27, 2008 at 4:03 AM, Marco Lettere<br>
</div><div><div></div><div class="Wj3C7c">&gt; &lt;<a href="mailto:m.lettere@websynapsis.com">m.lettere@websynapsis.com</a> &lt;mailto:<a href="mailto:m.lettere@websynapsis.com">m.lettere@websynapsis.com</a>&gt;&gt; wrote:<br>

&gt;<br>
&gt; &nbsp; &nbsp; Since I didn&#39;t see my mail appearing in the list I&#39;ll post it again.<br>
&gt; &nbsp; &nbsp; Sorry for multiple copies...<br>
&gt; &nbsp; &nbsp; M.<br>
&gt;<br>
&gt; &nbsp; &nbsp; Hello all,<br>
&gt; &nbsp; &nbsp; I&#39;m trying to dynamically load two different pieces of application<br>
&gt; &nbsp; &nbsp; that<br>
&gt; &nbsp; &nbsp; reside in very different directories but whose filename is the same<br>
&gt; &nbsp; &nbsp; (something like ../../dir1/dir2/standalone.lzx and<br>
&gt; &nbsp; &nbsp; ../../dir3/dir4/standalone.lzx).<br>
&gt; &nbsp; &nbsp; I do it in OL 4.2 (but 4.1 seems to behave the same way) by using the<br>
&gt; &nbsp; &nbsp; import tag (with stage=&quot;defer&quot;).<br>
&gt; &nbsp; &nbsp; The two &quot;import.load()&quot; occur very close (in time) to each other<br>
&gt; &nbsp; &nbsp; and in<br>
&gt; &nbsp; &nbsp; particular might also overlap.<br>
&gt; &nbsp; &nbsp; So, it seems that OL gets confused actually it doesn&#39;t find one of the<br>
&gt; &nbsp; &nbsp; classes contained in the files to be instantiated. But if I change the<br>
&gt; &nbsp; &nbsp; name of one of the two files then everything seems to work.<br>
&gt; &nbsp; &nbsp; Am I right in the statement contained in the subject?<br>
&gt; &nbsp; &nbsp; Thank you all,<br>
&gt; &nbsp; &nbsp; M.<br>
&gt;<br>
&gt; &nbsp; &nbsp; The two imports for your documentation:<br>
&gt;<br>
&gt; &nbsp; &nbsp; &lt;import name=&quot;mainmenuimport&quot;<br>
&gt; &nbsp; &nbsp; href=&quot;../../../mainmenu/views/mainmenu/standalone.lzx&quot; stage=&quot;defer&quot;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;attribute name=&quot;area&quot; type=&quot;string&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;attribute name=&quot;classname&quot; type=&quot;string&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;handler name=&quot;onload&quot;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//canvas.instantiate(this.classname, this.area)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var constructor = eval(this.classname)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(constructor == null){<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.warn(&quot;Cannot instantiate undefined class<br>
&gt; &nbsp; &nbsp; &quot;+classname);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.warn(&quot;Trying with &#39;lz.&#39; ...&quot;);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;constructor = eval(&#39;lz.&#39;+this.classname)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(constructor == null){<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.warn(&quot;Cannot instantiate undefined class lz.&quot;<br>
&gt; &nbsp; &nbsp; + this.classname);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;new constructor(eval(this.area),{})<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/handler&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/import&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;import name=&quot;testimport&quot;<br>
&gt; &nbsp; &nbsp; href=&quot;../../../guicontroller/views/test/standalone.lzx&quot; stage=&quot;defer&quot;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;attribute name=&quot;area&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;attribute name=&quot;classname&quot; type=&quot;string&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;handler name=&quot;onload&quot;&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//canvas.instantiate(this.classname, this.area)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;var constructor = eval(this.classname)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(constructor == null){<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.warn(&quot;Cannot instantiate undefined class<br>
&gt; &nbsp; &nbsp; &quot;+classname);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.warn(&quot;Trying with &#39;lz.&#39; ...&quot;);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;constructor = eval(&#39;lz.&#39;+this.classname)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if(constructor == null){<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.warn(&quot;Cannot instantiate undefined class lz.&quot;<br>
&gt; &nbsp; &nbsp; + this.classname);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;new constructor(eval(this.area),{})<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/handler&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/import&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Henry Minsky<br>
&gt; Software Architect<br>
</div></div>&gt; <a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a> &lt;mailto:<a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a>&gt;<br>
&gt;<br>
&gt;<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br><br>
</div>