You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alvaro Sanchez-Mariscal <al...@gmail.com> on 2007/08/19 18:03:12 UTC

Default tab in tabbedPanel loaded twice

Hi,

I have the following tabbed panel:

<s:tabbedPanel id="panel">
<c:choose>
	<c:when test="${sessionScope.user.departmentMember}">
	    <s:div id="myTab" label="Mis acogidas" autoStart="false"
theme="ajax" href="%{my}" cssStyle="margin: 10px 10px 10px 10px;"
listenTopics="/refresh" executeScripts="true" refreshOnShow="true"/>
	    <s:div id="newTab" label="Nueva acogida" theme="ajax"
href="%{new}" cssStyle="margin: 10px 10px 10px 10px;"
refreshOnShow="true"/>
	</c:when>
	<c:otherwise>
	    <s:div id="currentTab" label="Acogidas en curso" theme="ajax"
href="%{current}"  cssStyle="margin: 10px 10px 10px 10px;"
executeScripts="true"/>
	    <s:div id="searchTab" label="Consultas" autoStart="false"
theme="ajax" href="%{search}" cssStyle="margin: 10px 10px 10px 10px;"
refreshOnShow="true"/>
	    <c:if test="${sessionScope.user.admin}">
	    	<s:div id="adminTab" label="Administraci&oacute;n"
autoStart="false" theme="ajax" href="%{admin}" cssStyle="margin: 10px
10px 10px 10px;"/>
	    </c:if>
	</c:otherwise>	
</c:choose>	
</s:tabbedPanel>

(<s:url's for href attributes omitted).

When the page first load, all tabs are requested in background, and
the default one (the first, "myTab" or "currentTab" in my case) is
requested another time.

I have tried with autoStart=false, but it doesn't work.

What's wrong?

Alvaro.

-- 
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
alvaro.sanchezmariscal@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Default tab in tabbedPanel loaded twice

Posted by Alvaro Sanchez-Mariscal <al...@gmail.com>.
Is that attribute available in any 2.0.x version?

On 9/10/07, Musachy Barroso <mu...@gmail.com> wrote:
> Use the "preload" attribute.
>
> musachy
>
> On 9/10/07, Alvaro Sanchez-Mariscal <al...@gmail.com> wrote:
> > Any help on this?
> >
> > In a page with 6 tabs, 6 requests are made, and browser get freezed.
> >
> > autoStart="false" doesn'w work. Is there another way to prevent tab preloading?
> >
> > https://issues.apache.org/struts/browse/WW-2166
> >
> > Alvaro.
> >
> > On 8/19/07, Alvaro Sanchez-Mariscal <al...@gmail.com> wrote:
> > > Here is a screenshot of firebug:
> > >
> > > http://www.upload-images.net/imagen/7915ac25eb.gif
> > >
> > > On 8/19/07, Alvaro Sanchez-Mariscal <al...@gmail.com> wrote:
> > > > Hi,
> > > >
> > > > I have the following tabbed panel:
> > > >
> > > > <s:tabbedPanel id="panel">
> > > > <c:choose>
> > > >         <c:when test="${sessionScope.user.departmentMember}">
> > > >             <s:div id="myTab" label="Mis acogidas" autoStart="false"
> > > > theme="ajax" href="%{my}" cssStyle="margin: 10px 10px 10px 10px;"
> > > > listenTopics="/refresh" executeScripts="true" refreshOnShow="true"/>
> > > >             <s:div id="newTab" label="Nueva acogida" theme="ajax"
> > > > href="%{new}" cssStyle="margin: 10px 10px 10px 10px;"
> > > > refreshOnShow="true"/>
> > > >         </c:when>
> > > >         <c:otherwise>
> > > >             <s:div id="currentTab" label="Acogidas en curso" theme="ajax"
> > > > href="%{current}"  cssStyle="margin: 10px 10px 10px 10px;"
> > > > executeScripts="true"/>
> > > >             <s:div id="searchTab" label="Consultas" autoStart="false"
> > > > theme="ajax" href="%{search}" cssStyle="margin: 10px 10px 10px 10px;"
> > > > refreshOnShow="true"/>
> > > >             <c:if test="${sessionScope.user.admin}">
> > > >                 <s:div id="adminTab" label="Administraci&oacute;n"
> > > > autoStart="false" theme="ajax" href="%{admin}" cssStyle="margin: 10px
> > > > 10px 10px 10px;"/>
> > > >             </c:if>
> > > >         </c:otherwise>
> > > > </c:choose>
> > > > </s:tabbedPanel>
> > > >
> > > > (<s:url's for href attributes omitted).
> > > >
> > > > When the page first load, all tabs are requested in background, and
> > > > the default one (the first, "myTab" or "currentTab" in my case) is
> > > > requested another time.
> > > >
> > > > I have tried with autoStart=false, but it doesn't work.
> > > >
> > > > What's wrong?
> > > >
> > > > Alvaro.
> > > >
> > > > --
> > > > Alvaro Sanchez-Mariscal Arnaiz
> > > > Java EE Architect & Instructor
> > > > alvaro.sanchezmariscal@gmail.com
> > > >
> > >
> > >
> > > --
> > > Alvaro Sanchez-Mariscal Arnaiz
> > > Java EE Architect & Instructor
> > > alvaro.sanchezmariscal@gmail.com
> > >
> >
> >
> > --
> > Alvaro Sanchez-Mariscal Arnaiz
> > Java EE Architect & Instructor
> > alvaro.sanchezmariscal@gmail.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
alvaro.sanchezmariscal@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Default tab in tabbedPanel loaded twice

Posted by Musachy Barroso <mu...@gmail.com>.
Use the "preload" attribute.

musachy

On 9/10/07, Alvaro Sanchez-Mariscal <al...@gmail.com> wrote:
> Any help on this?
>
> In a page with 6 tabs, 6 requests are made, and browser get freezed.
>
> autoStart="false" doesn'w work. Is there another way to prevent tab preloading?
>
> https://issues.apache.org/struts/browse/WW-2166
>
> Alvaro.
>
> On 8/19/07, Alvaro Sanchez-Mariscal <al...@gmail.com> wrote:
> > Here is a screenshot of firebug:
> >
> > http://www.upload-images.net/imagen/7915ac25eb.gif
> >
> > On 8/19/07, Alvaro Sanchez-Mariscal <al...@gmail.com> wrote:
> > > Hi,
> > >
> > > I have the following tabbed panel:
> > >
> > > <s:tabbedPanel id="panel">
> > > <c:choose>
> > >         <c:when test="${sessionScope.user.departmentMember}">
> > >             <s:div id="myTab" label="Mis acogidas" autoStart="false"
> > > theme="ajax" href="%{my}" cssStyle="margin: 10px 10px 10px 10px;"
> > > listenTopics="/refresh" executeScripts="true" refreshOnShow="true"/>
> > >             <s:div id="newTab" label="Nueva acogida" theme="ajax"
> > > href="%{new}" cssStyle="margin: 10px 10px 10px 10px;"
> > > refreshOnShow="true"/>
> > >         </c:when>
> > >         <c:otherwise>
> > >             <s:div id="currentTab" label="Acogidas en curso" theme="ajax"
> > > href="%{current}"  cssStyle="margin: 10px 10px 10px 10px;"
> > > executeScripts="true"/>
> > >             <s:div id="searchTab" label="Consultas" autoStart="false"
> > > theme="ajax" href="%{search}" cssStyle="margin: 10px 10px 10px 10px;"
> > > refreshOnShow="true"/>
> > >             <c:if test="${sessionScope.user.admin}">
> > >                 <s:div id="adminTab" label="Administraci&oacute;n"
> > > autoStart="false" theme="ajax" href="%{admin}" cssStyle="margin: 10px
> > > 10px 10px 10px;"/>
> > >             </c:if>
> > >         </c:otherwise>
> > > </c:choose>
> > > </s:tabbedPanel>
> > >
> > > (<s:url's for href attributes omitted).
> > >
> > > When the page first load, all tabs are requested in background, and
> > > the default one (the first, "myTab" or "currentTab" in my case) is
> > > requested another time.
> > >
> > > I have tried with autoStart=false, but it doesn't work.
> > >
> > > What's wrong?
> > >
> > > Alvaro.
> > >
> > > --
> > > Alvaro Sanchez-Mariscal Arnaiz
> > > Java EE Architect & Instructor
> > > alvaro.sanchezmariscal@gmail.com
> > >
> >
> >
> > --
> > Alvaro Sanchez-Mariscal Arnaiz
> > Java EE Architect & Instructor
> > alvaro.sanchezmariscal@gmail.com
> >
>
>
> --
> Alvaro Sanchez-Mariscal Arnaiz
> Java EE Architect & Instructor
> alvaro.sanchezmariscal@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Default tab in tabbedPanel loaded twice

Posted by Marco Carnevale <ma...@gmail.com>.
Hmmm,  Do you have a real simple test using 2.0.6 vs 2.0.8?  I recall the
problem was eliminated at the 2.0.8.  We only changed to 2.0.9 to get the
security fix.



On 9/11/07, Alvaro Sanchez-Mariscal <al...@gmail.com>
wrote:
>
> I'm using 2.0.8. I will try 2.0.9 right now.
>
> Alvaro.
>
> On 9/11/07, Marco Carnevale <ma...@gmail.com> wrote:
> > Back to your original issue.  The loading of the default tab twice seems
> to
> > have been resolved in 2.0.8 and/or 2.0.9.  I used to have the same
> problem
> > using 2.0.6 until I upgraded.
> >
> > Marco
> >
> >
> > On 9/10/07, Alvaro Sanchez-Mariscal <al...@gmail.com>
> > wrote:
> > >
> > > Any help on this?
> > >
> > > In a page with 6 tabs, 6 requests are made, and browser get freezed.
> > >
> > > autoStart="false" doesn'w work. Is there another way to prevent tab
> > > preloading?
> > >
> > > https://issues.apache.org/struts/browse/WW-2166
> > >
> > > Alvaro.
> > >
> > > On 8/19/07, Alvaro Sanchez-Mariscal <al...@gmail.com>
> > > wrote:
> > > > Here is a screenshot of firebug:
> > > >
> > > > http://www.upload-images.net/imagen/7915ac25eb.gif
> > > >
> > > > On 8/19/07, Alvaro Sanchez-Mariscal <
> alvaro.sanchezmariscal@gmail.com>
> > > wrote:
> > > > > Hi,
> > > > >
> > > > > I have the following tabbed panel:
> > > > >
> > > > > <s:tabbedPanel id="panel">
> > > > > <c:choose>
> > > > >         <c:when test="${sessionScope.user.departmentMember}">
> > > > >             <s:div id="myTab" label="Mis acogidas"
> autoStart="false"
> > > > > theme="ajax" href="%{my}" cssStyle="margin: 10px 10px 10px 10px;"
> > > > > listenTopics="/refresh" executeScripts="true"
> refreshOnShow="true"/>
> > > > >             <s:div id="newTab" label="Nueva acogida" theme="ajax"
> > > > > href="%{new}" cssStyle="margin: 10px 10px 10px 10px;"
> > > > > refreshOnShow="true"/>
> > > > >         </c:when>
> > > > >         <c:otherwise>
> > > > >             <s:div id="currentTab" label="Acogidas en curso"
> > > theme="ajax"
> > > > > href="%{current}"  cssStyle="margin: 10px 10px 10px 10px;"
> > > > > executeScripts="true"/>
> > > > >             <s:div id="searchTab" label="Consultas"
> autoStart="false"
> > > > > theme="ajax" href="%{search}" cssStyle="margin: 10px 10px 10px
> 10px;"
> > > > > refreshOnShow="true"/>
> > > > >             <c:if test="${sessionScope.user.admin}">
> > > > >                 <s:div id="adminTab" label="Administraci&oacute;n"
> > > > > autoStart="false" theme="ajax" href="%{admin}" cssStyle="margin:
> 10px
> > > > > 10px 10px 10px;"/>
> > > > >             </c:if>
> > > > >         </c:otherwise>
> > > > > </c:choose>
> > > > > </s:tabbedPanel>
> > > > >
> > > > > (<s:url's for href attributes omitted).
> > > > >
> > > > > When the page first load, all tabs are requested in background,
> and
> > > > > the default one (the first, "myTab" or "currentTab" in my case) is
> > > > > requested another time.
> > > > >
> > > > > I have tried with autoStart=false, but it doesn't work.
> > > > >
> > > > > What's wrong?
> > > > >
> > > > > Alvaro.
> > > > >
> > > > > --
> > > > > Alvaro Sanchez-Mariscal Arnaiz
> > > > > Java EE Architect & Instructor
> > > > > alvaro.sanchezmariscal@gmail.com
> > > > >
> > > >
> > > >
> > > > --
> > > > Alvaro Sanchez-Mariscal Arnaiz
> > > > Java EE Architect & Instructor
> > > > alvaro.sanchezmariscal@gmail.com
> > > >
> > >
> > >
> > > --
> > > Alvaro Sanchez-Mariscal Arnaiz
> > > Java EE Architect & Instructor
> > > alvaro.sanchezmariscal@gmail.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
>
>
> --
> Alvaro Sanchez-Mariscal Arnaiz
> Java EE Architect & Instructor
> alvaro.sanchezmariscal@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Default tab in tabbedPanel loaded twice

Posted by Alvaro Sanchez-Mariscal <al...@gmail.com>.
I'm using 2.0.8. I will try 2.0.9 right now.

Alvaro.

On 9/11/07, Marco Carnevale <ma...@gmail.com> wrote:
> Back to your original issue.  The loading of the default tab twice seems to
> have been resolved in 2.0.8 and/or 2.0.9.  I used to have the same problem
> using 2.0.6 until I upgraded.
>
> Marco
>
>
> On 9/10/07, Alvaro Sanchez-Mariscal <al...@gmail.com>
> wrote:
> >
> > Any help on this?
> >
> > In a page with 6 tabs, 6 requests are made, and browser get freezed.
> >
> > autoStart="false" doesn'w work. Is there another way to prevent tab
> > preloading?
> >
> > https://issues.apache.org/struts/browse/WW-2166
> >
> > Alvaro.
> >
> > On 8/19/07, Alvaro Sanchez-Mariscal <al...@gmail.com>
> > wrote:
> > > Here is a screenshot of firebug:
> > >
> > > http://www.upload-images.net/imagen/7915ac25eb.gif
> > >
> > > On 8/19/07, Alvaro Sanchez-Mariscal <al...@gmail.com>
> > wrote:
> > > > Hi,
> > > >
> > > > I have the following tabbed panel:
> > > >
> > > > <s:tabbedPanel id="panel">
> > > > <c:choose>
> > > >         <c:when test="${sessionScope.user.departmentMember}">
> > > >             <s:div id="myTab" label="Mis acogidas" autoStart="false"
> > > > theme="ajax" href="%{my}" cssStyle="margin: 10px 10px 10px 10px;"
> > > > listenTopics="/refresh" executeScripts="true" refreshOnShow="true"/>
> > > >             <s:div id="newTab" label="Nueva acogida" theme="ajax"
> > > > href="%{new}" cssStyle="margin: 10px 10px 10px 10px;"
> > > > refreshOnShow="true"/>
> > > >         </c:when>
> > > >         <c:otherwise>
> > > >             <s:div id="currentTab" label="Acogidas en curso"
> > theme="ajax"
> > > > href="%{current}"  cssStyle="margin: 10px 10px 10px 10px;"
> > > > executeScripts="true"/>
> > > >             <s:div id="searchTab" label="Consultas" autoStart="false"
> > > > theme="ajax" href="%{search}" cssStyle="margin: 10px 10px 10px 10px;"
> > > > refreshOnShow="true"/>
> > > >             <c:if test="${sessionScope.user.admin}">
> > > >                 <s:div id="adminTab" label="Administraci&oacute;n"
> > > > autoStart="false" theme="ajax" href="%{admin}" cssStyle="margin: 10px
> > > > 10px 10px 10px;"/>
> > > >             </c:if>
> > > >         </c:otherwise>
> > > > </c:choose>
> > > > </s:tabbedPanel>
> > > >
> > > > (<s:url's for href attributes omitted).
> > > >
> > > > When the page first load, all tabs are requested in background, and
> > > > the default one (the first, "myTab" or "currentTab" in my case) is
> > > > requested another time.
> > > >
> > > > I have tried with autoStart=false, but it doesn't work.
> > > >
> > > > What's wrong?
> > > >
> > > > Alvaro.
> > > >
> > > > --
> > > > Alvaro Sanchez-Mariscal Arnaiz
> > > > Java EE Architect & Instructor
> > > > alvaro.sanchezmariscal@gmail.com
> > > >
> > >
> > >
> > > --
> > > Alvaro Sanchez-Mariscal Arnaiz
> > > Java EE Architect & Instructor
> > > alvaro.sanchezmariscal@gmail.com
> > >
> >
> >
> > --
> > Alvaro Sanchez-Mariscal Arnaiz
> > Java EE Architect & Instructor
> > alvaro.sanchezmariscal@gmail.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>


-- 
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
alvaro.sanchezmariscal@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Default tab in tabbedPanel loaded twice

Posted by Marco Carnevale <ma...@gmail.com>.
Back to your original issue.  The loading of the default tab twice seems to
have been resolved in 2.0.8 and/or 2.0.9.  I used to have the same problem
using 2.0.6 until I upgraded.

Marco


On 9/10/07, Alvaro Sanchez-Mariscal <al...@gmail.com>
wrote:
>
> Any help on this?
>
> In a page with 6 tabs, 6 requests are made, and browser get freezed.
>
> autoStart="false" doesn'w work. Is there another way to prevent tab
> preloading?
>
> https://issues.apache.org/struts/browse/WW-2166
>
> Alvaro.
>
> On 8/19/07, Alvaro Sanchez-Mariscal <al...@gmail.com>
> wrote:
> > Here is a screenshot of firebug:
> >
> > http://www.upload-images.net/imagen/7915ac25eb.gif
> >
> > On 8/19/07, Alvaro Sanchez-Mariscal <al...@gmail.com>
> wrote:
> > > Hi,
> > >
> > > I have the following tabbed panel:
> > >
> > > <s:tabbedPanel id="panel">
> > > <c:choose>
> > >         <c:when test="${sessionScope.user.departmentMember}">
> > >             <s:div id="myTab" label="Mis acogidas" autoStart="false"
> > > theme="ajax" href="%{my}" cssStyle="margin: 10px 10px 10px 10px;"
> > > listenTopics="/refresh" executeScripts="true" refreshOnShow="true"/>
> > >             <s:div id="newTab" label="Nueva acogida" theme="ajax"
> > > href="%{new}" cssStyle="margin: 10px 10px 10px 10px;"
> > > refreshOnShow="true"/>
> > >         </c:when>
> > >         <c:otherwise>
> > >             <s:div id="currentTab" label="Acogidas en curso"
> theme="ajax"
> > > href="%{current}"  cssStyle="margin: 10px 10px 10px 10px;"
> > > executeScripts="true"/>
> > >             <s:div id="searchTab" label="Consultas" autoStart="false"
> > > theme="ajax" href="%{search}" cssStyle="margin: 10px 10px 10px 10px;"
> > > refreshOnShow="true"/>
> > >             <c:if test="${sessionScope.user.admin}">
> > >                 <s:div id="adminTab" label="Administraci&oacute;n"
> > > autoStart="false" theme="ajax" href="%{admin}" cssStyle="margin: 10px
> > > 10px 10px 10px;"/>
> > >             </c:if>
> > >         </c:otherwise>
> > > </c:choose>
> > > </s:tabbedPanel>
> > >
> > > (<s:url's for href attributes omitted).
> > >
> > > When the page first load, all tabs are requested in background, and
> > > the default one (the first, "myTab" or "currentTab" in my case) is
> > > requested another time.
> > >
> > > I have tried with autoStart=false, but it doesn't work.
> > >
> > > What's wrong?
> > >
> > > Alvaro.
> > >
> > > --
> > > Alvaro Sanchez-Mariscal Arnaiz
> > > Java EE Architect & Instructor
> > > alvaro.sanchezmariscal@gmail.com
> > >
> >
> >
> > --
> > Alvaro Sanchez-Mariscal Arnaiz
> > Java EE Architect & Instructor
> > alvaro.sanchezmariscal@gmail.com
> >
>
>
> --
> Alvaro Sanchez-Mariscal Arnaiz
> Java EE Architect & Instructor
> alvaro.sanchezmariscal@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Default tab in tabbedPanel loaded twice

Posted by Alvaro Sanchez-Mariscal <al...@gmail.com>.
Any help on this?

In a page with 6 tabs, 6 requests are made, and browser get freezed.

autoStart="false" doesn'w work. Is there another way to prevent tab preloading?

https://issues.apache.org/struts/browse/WW-2166

Alvaro.

On 8/19/07, Alvaro Sanchez-Mariscal <al...@gmail.com> wrote:
> Here is a screenshot of firebug:
>
> http://www.upload-images.net/imagen/7915ac25eb.gif
>
> On 8/19/07, Alvaro Sanchez-Mariscal <al...@gmail.com> wrote:
> > Hi,
> >
> > I have the following tabbed panel:
> >
> > <s:tabbedPanel id="panel">
> > <c:choose>
> >         <c:when test="${sessionScope.user.departmentMember}">
> >             <s:div id="myTab" label="Mis acogidas" autoStart="false"
> > theme="ajax" href="%{my}" cssStyle="margin: 10px 10px 10px 10px;"
> > listenTopics="/refresh" executeScripts="true" refreshOnShow="true"/>
> >             <s:div id="newTab" label="Nueva acogida" theme="ajax"
> > href="%{new}" cssStyle="margin: 10px 10px 10px 10px;"
> > refreshOnShow="true"/>
> >         </c:when>
> >         <c:otherwise>
> >             <s:div id="currentTab" label="Acogidas en curso" theme="ajax"
> > href="%{current}"  cssStyle="margin: 10px 10px 10px 10px;"
> > executeScripts="true"/>
> >             <s:div id="searchTab" label="Consultas" autoStart="false"
> > theme="ajax" href="%{search}" cssStyle="margin: 10px 10px 10px 10px;"
> > refreshOnShow="true"/>
> >             <c:if test="${sessionScope.user.admin}">
> >                 <s:div id="adminTab" label="Administraci&oacute;n"
> > autoStart="false" theme="ajax" href="%{admin}" cssStyle="margin: 10px
> > 10px 10px 10px;"/>
> >             </c:if>
> >         </c:otherwise>
> > </c:choose>
> > </s:tabbedPanel>
> >
> > (<s:url's for href attributes omitted).
> >
> > When the page first load, all tabs are requested in background, and
> > the default one (the first, "myTab" or "currentTab" in my case) is
> > requested another time.
> >
> > I have tried with autoStart=false, but it doesn't work.
> >
> > What's wrong?
> >
> > Alvaro.
> >
> > --
> > Alvaro Sanchez-Mariscal Arnaiz
> > Java EE Architect & Instructor
> > alvaro.sanchezmariscal@gmail.com
> >
>
>
> --
> Alvaro Sanchez-Mariscal Arnaiz
> Java EE Architect & Instructor
> alvaro.sanchezmariscal@gmail.com
>


-- 
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
alvaro.sanchezmariscal@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Default tab in tabbedPanel loaded twice

Posted by Alvaro Sanchez-Mariscal <al...@gmail.com>.
Here is a screenshot of firebug:

http://www.upload-images.net/imagen/7915ac25eb.gif

On 8/19/07, Alvaro Sanchez-Mariscal <al...@gmail.com> wrote:
> Hi,
>
> I have the following tabbed panel:
>
> <s:tabbedPanel id="panel">
> <c:choose>
>         <c:when test="${sessionScope.user.departmentMember}">
>             <s:div id="myTab" label="Mis acogidas" autoStart="false"
> theme="ajax" href="%{my}" cssStyle="margin: 10px 10px 10px 10px;"
> listenTopics="/refresh" executeScripts="true" refreshOnShow="true"/>
>             <s:div id="newTab" label="Nueva acogida" theme="ajax"
> href="%{new}" cssStyle="margin: 10px 10px 10px 10px;"
> refreshOnShow="true"/>
>         </c:when>
>         <c:otherwise>
>             <s:div id="currentTab" label="Acogidas en curso" theme="ajax"
> href="%{current}"  cssStyle="margin: 10px 10px 10px 10px;"
> executeScripts="true"/>
>             <s:div id="searchTab" label="Consultas" autoStart="false"
> theme="ajax" href="%{search}" cssStyle="margin: 10px 10px 10px 10px;"
> refreshOnShow="true"/>
>             <c:if test="${sessionScope.user.admin}">
>                 <s:div id="adminTab" label="Administraci&oacute;n"
> autoStart="false" theme="ajax" href="%{admin}" cssStyle="margin: 10px
> 10px 10px 10px;"/>
>             </c:if>
>         </c:otherwise>
> </c:choose>
> </s:tabbedPanel>
>
> (<s:url's for href attributes omitted).
>
> When the page first load, all tabs are requested in background, and
> the default one (the first, "myTab" or "currentTab" in my case) is
> requested another time.
>
> I have tried with autoStart=false, but it doesn't work.
>
> What's wrong?
>
> Alvaro.
>
> --
> Alvaro Sanchez-Mariscal Arnaiz
> Java EE Architect & Instructor
> alvaro.sanchezmariscal@gmail.com
>


-- 
Alvaro Sanchez-Mariscal Arnaiz
Java EE Architect & Instructor
alvaro.sanchezmariscal@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org