You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Alvaro Sanchez-Mariscal (JIRA)" <ji...@apache.org> on 2007/08/22 09:50:34 UTC

[jira] Created: (WW-2123) Default tab in tabbedPanel loaded twice

Default tab in tabbedPanel loaded twice
---------------------------------------

                 Key: WW-2123
                 URL: https://issues.apache.org/struts/browse/WW-2123
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.8
         Environment: Tomcat 5.5, Firefox 2.
            Reporter: Alvaro Sanchez-Mariscal
            Priority: Minor


Having 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2123) Default tab in tabbedPanel loaded twice

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2123:
-----------------------------

      Component/s: Views
    Fix Version/s: 2.0.11

> Default tab in tabbedPanel loaded twice
> ---------------------------------------
>
>                 Key: WW-2123
>                 URL: https://issues.apache.org/struts/browse/WW-2123
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>         Environment: Tomcat 5.5, Firefox 2.
>            Reporter: Alvaro Sanchez-Mariscal
>            Priority: Minor
>             Fix For: 2.0.11
>
>
> Having 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2123) Default tab in tabbedPanel loaded twice

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41985 ] 

Musachy Barroso commented on WW-2123:
-------------------------------------

setting preload="false" should fix this issue, but that attribute is only available on 2.1

> Default tab in tabbedPanel loaded twice
> ---------------------------------------
>
>                 Key: WW-2123
>                 URL: https://issues.apache.org/struts/browse/WW-2123
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.8
>         Environment: Tomcat 5.5, Firefox 2.
>            Reporter: Alvaro Sanchez-Mariscal
>            Priority: Minor
>
> Having 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2123) Default tab in tabbedPanel loaded twice

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2123:
-----------------------------

    Fix Version/s:     (was: 2.0.11)
                   2.0.12

> Default tab in tabbedPanel loaded twice
> ---------------------------------------
>
>                 Key: WW-2123
>                 URL: https://issues.apache.org/struts/browse/WW-2123
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>         Environment: Tomcat 5.5, Firefox 2.
>            Reporter: Alvaro Sanchez-Mariscal
>            Priority: Minor
>             Fix For: 2.0.12
>
>
> Having 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-2123) Default tab in tabbedPanel loaded twice

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Husted resolved WW-2123.
----------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.1.2)
                   2.1.0

> Default tab in tabbedPanel loaded twice
> ---------------------------------------
>
>                 Key: WW-2123
>                 URL: https://issues.apache.org/struts/browse/WW-2123
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.8
>         Environment: Tomcat 5.5, Firefox 2.
>            Reporter: Alvaro Sanchez-Mariscal
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> Having 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.