You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by André Faria <an...@mandic.com.br> on 2007/01/17 15:28:43 UTC
[S2] Adding a Tab Dynamically
Is the a way to add tag dynamically in tabbedPane...
I am triyng this way:
<script>
var tabContainer = dojo.widget.byId("tabbedPane");
var url = 'person.action';
var cp = dojo.widget.createWidget("BindDiv", {label:'Persons',
executeScripts:true, parseContent:true, extractContent:true, href:url,
id:'personTab' });
tabContainer.addChild(cp);
</script>
That's works but the result is not the same that when using
<s:tabbedPane><s:div>...
Regards,
André Faria
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [S2] Adding a Tab Dynamically
Posted by Musachy Barroso <mb...@wfscorp.com>.
How is it different? Feel free to log a ticket.
regards
musachy
André Faria wrote:
> Is the a way to add tag dynamically in tabbedPane...
>
> I am triyng this way:
> <script>
> var tabContainer = dojo.widget.byId("tabbedPane");
> var url = 'person.action';
> var cp = dojo.widget.createWidget("BindDiv", {label:'Persons',
> executeScripts:true, parseContent:true, extractContent:true, href:url,
> id:'personTab' });
> tabContainer.addChild(cp);
> </script>
>
> That's works but the result is not the same that when using
> <s:tabbedPane><s:div>...
>
> Regards,
> André Faria
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org