struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fátima Silveira" <fawi...@gmail.com>
Subject Re: [S2] TabbedPanel
Date Wed, 31 Oct 2007 08:19:33 GMT
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 <viturrioz@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message