You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Veronica Iturrioz <vi...@yahoo.com> on 2007/10/30 19:35:14 UTC

[S2] TabbedPanel

Hi,  
   I'm trying to use de tag tabbedPanel where each tab with remote content.


my code is:

<s:tabbedPanel id="user_tab" theme="simple">
   <s:url id="urlRemote" value="/myAction.do"/> 
   <s:div id="tab_remote" label="remote tab" theme="ajax" href="%{urlRemote}" executeScripts="true">

....


but it give me this error: "Error Loading '../myAction.do' (200OK) "
Someone can help me to solve this problem ?

Struts 2.0.9


thanks.
Veronica

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [S2] TabbedPanel

Posted by Fátima Silveira <fa...@gmail.com>.
Hello,

I tried to use that tag also but i had no success... so i just used the
syntax in dojo... as I was using ajax it may differ but the code that i've
done is:

<div id="mainDiv">
        <%
        session=request.getSession();
        String selectedTab=(String)session.getAttribute("selectedTab");
        if (selectedTab!=null){
            out.print("<div dojoType=\"TabContainer\"
id=\"mainTabContainer\" doLayout=\"false\" style=\"width:100%;
height:100%;\" selectedTab=\""+selectedTab+"\">");
        }else{
            out.print("<div dojoType=\"TabContainer\"
id=\"mainTabContainer\" doLayout=\"false\" style=\"width:100%;
height:100%;\">");
        }
        %>
            <div dojoType="ContentPane" id="baseTab" label="<s:text name="
tabName.base"/>">
                <s:include value="base.jsp" />
            </div>
            <div dojoType="ContentPane" id="appLanguagesTab" label="<s:text
name="tabName.appLanguages"/>">
                <s:include value="appLanguages.jsp" />
            </div>
            <div dojoType="ContentPane" id="rightsTab" label="<s:text name="
tabName.rights"/>">
                <s:include value="rights.jsp" />
            </div>
            <div dojoType="ContentPane" id="versionsTab" label="<s:text
name="tabName.versions"/>">
                <s:include value="versions.jsp" />
            </div>
            <div dojoType="ContentPane" id="languagesTab" label="<s:text
name="tabName.languages"/>">
                <s:include value="languages.jsp" />
            </div>
        <%
            out.println("</div>");
        %>

    </div>

you must insert in the header this :

dojo.require("dojo.widget.TabContainer");
dojo.require("dojo.widget.ContentPane");

from what i experienced the struts tag that use dojo has some kind of
bug.... i also had problems with the tree tag...

hope that help

On 10/30/07, Veronica Iturrioz <vi...@yahoo.com> wrote:
>
> Hi,
>    I'm trying to use de tag tabbedPanel where each tab with remote
> content.
>
>
> my code is:
>
> <s:tabbedPanel id="user_tab" theme="simple">
>    <s:url id="urlRemote" value="/myAction.do"/>
>    <s:div id="tab_remote" label="remote tab" theme="ajax"
> href="%{urlRemote}" executeScripts="true">
>
> ....
>
>
> but it give me this error: "Error Loading '../myAction.do' (200OK) "
> Someone can help me to solve this problem ?
>
> Struts 2.0.9
>
>
> thanks.
> Veronica
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com