[Dojo-interest] TabContainer selected="true"

Rob Gillan rob at mosais.com
Mon Mar 1 05:57:37 EST 2010


OK,

Step 1, engage brain....

The selected="true" is doing it's job.  Turns out the TabContainer is  
never recreated, just hidden and we overwrite it's content.  Simple  
forcing selectChild on content change solves the issue.

Think I need to get either more sleep or more coffee...

On 01/03/2010, at 9:26 PM, Rob Gillan wrote:

> Hi,
>
> Sorry to ask such a menial question but I'm having trouble with the
> selected="true" declaration in a TabContainer.  The first time after
> page load defaults (as always) to the first tab, but if it's re-
> opened, the last visited tab is still visible (not the first tab).
> Any ideas what I'm doing wrong much appreciated.  We're using 1.4.1.
>
> 		<div id="as_skinmanager_editskin_contentpanel" class="contentpanel"
> dojoType="dijit.layout.TabContainer" region="center">
> 			<form id="as_skinmanager_style_form"
> dojoType="dijit.layout.BorderContainer" title="Style" style="border:
> 0px; padding: 0px;" selected="true">
> 				<div id="as_skinmanager_style_contenttop"
> dojoType="dijit.layout.ContentPane" region="top" style="border: 0px;
> padding: 2px;"></div>
> 				<div id="as_skinmanager_style_contentcentre"
> dojoType="dijit.layout.ContentPane" region="center" style="border:
> 0px; padding: 2px;" class="contentpanel-center"></div>
> 				<div id="as_skinmanager_style_contentleft"
> dojoType="dijit.layout.ContentPane" region="leading" style="border:
> 0px; padding: 2px;"></div>
> 				<div id="as_skinmanager_style_contentright"
> dojoType="dijit.layout.ContentPane" region="right" style="border: 0px;
> padding: 2px;"></div>
> 				<div id="as_skinmanager_style_contentbottom"
> dojoType="dijit.layout.ContentPane" region="bottom" style="border:
> 0px; padding: 2px;"></div>
> 			</form>
> 			<form id="as_skinmanager_icons_form"
> dojoType="dijit.layout.BorderContainer" title="Icons" style="border:
> 0px; padding: 0px;">
> 				<div id="as_skinmanager_icons_contenttop"
> dojoType="dijit.layout.ContentPane" region="top" style="border: 0px;
> padding: 2px;"></div>
> 				<div id="as_skinmanager_icons_contentcentre"
> dojoType="dijit.layout.ContentPane" region="center" style="border:
> 0px; padding: 2px;" class="contentpanel-center"></div>
> 				<div id="as_skinmanager_icons_contentleft"
> dojoType="dijit.layout.ContentPane" region="leading" style="border:
> 0px; padding: 2px;"></div>
> 				<div id="as_skinmanager_icons_contentright"
> dojoType="dijit.layout.ContentPane" region="right" style="border: 0px;
> padding: 2px;"></div>
> 				<div id="as_skinmanager_icons_contentbottom"
> dojoType="dijit.layout.ContentPane" region="bottom" style="border:
> 0px; padding: 2px;"></div>
> 			</form>
> 			<form id="as_skinmanager_graphics_form"
> dojoType="dijit.layout.BorderContainer" title="Graphics"
> style="border: 0px; padding: 0px;">
> 				<div id="as_skinmanager_graphics_contenttop"
> dojoType="dijit.layout.ContentPane" region="top" style="border: 0px;
> padding: 2px;"></div>
> 				<div id="as_skinmanager_graphics_contentcentre"
> dojoType="dijit.layout.ContentPane" region="center" style="border:
> 0px; padding: 2px;" class="contentpanel-center"></div>
> 				<div id="as_skinmanager_graphics_contentleft"
> dojoType="dijit.layout.ContentPane" region="leading" style="border:
> 0px; padding: 2px;"></div>
> 				<div id="as_skinmanager_graphics_contentright"
> dojoType="dijit.layout.ContentPane" region="right" style="border: 0px;
> padding: 2px;"></div>
> 				<div id="as_skinmanager_graphics_contentbottom"
> dojoType="dijit.layout.ContentPane" region="bottom" style="border:
> 0px; padding: 2px;"></div>
> 			</form>
> 			<form id="as_skinmanager_logos_form"
> dojoType="dijit.layout.BorderContainer" title="Logos" style="border:
> 0px; padding: 0px;">
> 				<div id="as_skinmanager_logos_contenttop"
> dojoType="dijit.layout.ContentPane" region="top" style="border: 0px;
> padding: 2px;"></div>
> 				<div id="as_skinmanager_logos_contentcentre"
> dojoType="dijit.layout.ContentPane" region="center" style="border:
> 0px; padding: 2px;" class="contentpanel-center"></div>
> 				<div id="as_skinmanager_logos_contentleft"
> dojoType="dijit.layout.ContentPane" region="leading" style="border:
> 0px; padding: 2px;"></div>
> 				<div id="as_skinmanager_logos_contentright"
> dojoType="dijit.layout.ContentPane" region="right" style="border: 0px;
> padding: 2px;"></div>
> 				<div id="as_skinmanager_logos_contentbottom"
> dojoType="dijit.layout.ContentPane" region="bottom" style="border:
> 0px; padding: 2px;"></div>
> 			</form>
> 		</div>
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://docs.dojocampus.org
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest



More information about the Dojo-interest mailing list