You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Shing Hing Man <ma...@yahoo.com> on 2007/01/19 18:14:17 UTC
Tap 4.1.2 Snapshot : Using Dojo TabContainer
I have noticed the static way of defining a Dojo
TabContainer
in a Tapestry page html template does not work.
<div id="testTabContainer" dojoType="TabContainer"
style="width: 100%; height: 20em;" >
<div id="tab1" dojoType="ContentPane" label="Tab
One">
This is a piece of static content.
</div>
<div id="tab2" dojoType="ContentPane" label="Tab
Two">This is tab2</div>
</div>
However it works when the TabContainer widget is
created dynamically.
Eg :
<div id="testTabContainer" >
<div id="tab1" label="Tab One">
This is a piece of static content.
</div>
<div id="tab2" >This is tab2</div>
</div>
var containernode=dojo.byId("testTabContainer");
// Could have used
tapestry.widget.synchronizeWidgetState to create
widget
var tabContainer =
dojo.widget.createWidget("TabContainer",
{id:"testTabContainer",style:"height:20em"},
containernode);
var param;
// Create contentPane for tab1
var tab1 =
dojo.widget.createWidget("ContentPane", {label:"Tab
One"},dojo.byId("tab1"));
tabContainer.addChild(tab1);
// Create contentPane for tab1
var tab2 =
dojo.widget.createWidget("ContentPane", {label:"Tab
Two"},dojo.byId("tab2"));
tabContainer.addChild(tab2);
tabContainer.select(tab1);
It would be appreciated if someone can explain why
doesn't the static way work ?
Shing
Home page :
http://uk.geocities.com/matmsh/index.html
___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tap 4.1.2 Snapshot : Using Dojo TabContainer
Posted by Shing Hing Man <ma...@yahoo.com>.
I have posted an answer in Tapestry mailing list.
http://article.gmane.org/gmane.comp.java.tapestry.user/44693/match=dojotabs
Also, there is an online example (with source code) at
my site
http://lombok.demon.co.uk/tapestry4Demo/app
Shing
--- kmadha <km...@yahoo.com> wrote:
> Shing Hing Man <matmsh <at> yahoo.com> writes:
>
> >
> > I have noticed the static way of defining a Dojo
> > TabContainer
> > in a Tapestry page html template does not work.
>
>
> Hello,
> I am facing quite similar problem.
> if I use the tacos:DojoTabs then the tabs are
> visible but the tab content is
> not visible.
> Can you please help me in this?
>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail:
> users-help@tapestry.apache.org
>
>
Home page :
http://uk.geocities.com/matmsh/index.html
___________________________________________________________
Inbox full of unwanted email? Get leading protection and 1GB storage with All New Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tap 4.1.2 Snapshot : Using Dojo TabContainer
Posted by kmadha <km...@yahoo.com>.
Shing Hing Man <matmsh <at> yahoo.com> writes:
>
> I have noticed the static way of defining a Dojo
> TabContainer
> in a Tapestry page html template does not work.
Hello,
I am facing quite similar problem.
if I use the tacos:DojoTabs then the tabs are visible but the tab content is
not visible.
Can you please help me in this?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org