struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Minerva CC <>
Subject Re: [S2] Cannot run TabbedPanel tag
Date Fri, 13 Apr 2007 18:01:23 GMT
Thanks Dave for your help.
I tried to add <s:head theme="ajax"/> in my page and all the html tags to the test.jsp.
Then, I got only one tab showing up, which is dynamic one with a close icon. In the panel,
I have both panel contents displayed. When I click on the close icon, the dynamic panel content
was collapsed.
I also tried to put the theme ajax all over the place, in the header, outside and inside the
tabbedpanel and I got the same result. Would you be kindly point it out what is wrong?
<%@ taglib prefix="s" uri="/struts-tags"%>
<script type="text/javascript">
<s:head theme="ajax"/>
<s:url id="ajaxTest" value="/list.action" />
<s:tabbedPanel labelposition="left" closeButton="tab" selectedTab="dynamic" id="test">
<s:div label="static" id="static">
This is an static content tab.
<s:div href="%{ajaxTest}" theme="ajax" label="dynamic" id="dynamic">


----- Original Message ----
From: Dave Newton <>
To: Struts Users Mailing List <>
Sent: Friday, April 13, 2007 10:03:04 AM
Subject: Re: [S2] Cannot run TabbedPanel tag

--- Minerva CC <> wrote:
> <%@ taglib prefix="s" uri="/struts-tags"%><s:url
> id="ajaxTest" value="/AjaxTest.action"
> /><s:tabbedPanel labelposition="left"
> closeButton="tab" selectedTab="dynamic"
> id="test"><s:div label="static" id="static">This is
> an static content tab.</s:div><s:div
> href="%{ajaxTest}" theme="ajax" label="dynamic"
> id="dynamic">This is a dynamic content tab. The
> content of this div will be replaced with the text
> returned from
> "/AjaxTest.action"</s:div></s:tabbedPanel>
> But, when I run it I got an error that the attribute
> id is required for the TabbedPanlel. So, I added a
> id and run it again. Then, it populated a page with
> the text strings, but no tabs. When I view the
> source code, I can see the following code has been
> generated:

Do you have the <s:head theme="ajax"/> on your page?

Also, as general rule, you should generate well-formed
HTML. In other words, create a complete HTML page, not
just a JSP fragment, if you are dispatching directly
to a JSP.


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

To unsubscribe, e-mail:
For additional commands, e-mail:

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message