yep, a bug indeed !
So, you're using a For inside the TabContainer, right? Cause i dont see
the loop
in the example... anyway, i think we can fix this soon :)
lolowok wrote:
> to reproduce the bug :
>
> my html is quite easy :
>
> <div jwcid="[EMAIL PROTECTED]:Widget" dojoType="TabContainer"
> isContainer="true"
> style="margin-left:20px;margin-right:20px;width:500px;height:500px; ">
>
> <div jwcid="@dojo:Widget"
> dojoType="ContentPane" label="ognl:theId"
> closable="true">
>
> </div>
>
> </div>
>
>
> In my class, i have defined theId.
>
> And the generated result is good for html, but bad for the javascript.
>
> The html part :
>
> <div id="tutu"
> style="margin-left:20px;margin-right:20px;width:500px;height:500px;">
>
> <div id="Widget_3" style="">
>
> 1
> </div>
>
> <div id="Widget_3_0" style="">
> 2
> </div>
>
> <div id="Widget_3_1" style="">
> 3
> </div>
>
> <div id="Widget_3_2" style="">
> 4
> </div>
>
> <div id="Widget_3_3" style="">
> 5
> </div>
>
> </div>
>
>
> The javascript part that is not good, this is the same widget id that is
> added to the container !!!
>
> var tutu = dojo.widget.getWidgetById("tutu");
>
> var child = dojo.widget.getWidgetById("Widget_3_3");
> tutu.addChild(child);
>
> var child = dojo.widget.getWidgetById("Widget_3_3");
> tutu.addChild(child);
>
> var child = dojo.widget.getWidgetById("Widget_3_3");
> tutu.addChild(child);
>
> var child = dojo.widget.getWidgetById("Widget_3_3");
> tutu.addChild(child);
>
> var child = dojo.widget.getWidgetById("Widget_3_3");
> tutu.addChild(child);});
>
>
> A bug ?, Someone has a solution to avoid this ?
>
>
--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel