Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

[S2] Adding a Tab Dynamically

André Faria

2007-01-17

Replies:

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@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.