You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jay Bose <di...@yahoo.com> on 2008/05/12 02:20:03 UTC

TabbedPanel in Struts2

I was using tabbedPanel, with the Ajax theme in WebWork-2; no problem.

After my upgrade to Struts-2.0.11, I no longer get decorated tabs. The ajax recipes were
not as helpful as I would have liked
(http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-TabbedPanel).
 

Has anyone been able to use the ajax tabbedPanel in Struts-2.0.6+ (pre-2.1.x)?


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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


Re: TabbedPanel in Struts2

Posted by Jay Bose <di...@yahoo.com>.
I saw this page, but no real help -
http://struts.apache.org/2.0.11/docs/ajax-tags.html#AjaxTags-tabbedPanelTag

Any help would be greatly appreciated.


      

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


Re: TabbedPanel in Struts2

Posted by Jay Bose <di...@yahoo.com>.
OK User error: I had the struts.serve.static property set to false, and did not actually
have all the required files copied over. 

All, thanks for your quick responses.


      

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


Re: TabbedPanel in Struts2

Posted by Jay Bose <di...@yahoo.com>.
I do have debug on. No errors or config warnings are coming up.


--- Dave Newton <ne...@yahoo.com> wrote:

> Do you have Dojo debugging turned on in your <st:head.../> tag?
> 
> Do you have an <st:head.../> tag, I guess? I don't recall having had
> any major issues with it, but it was awhile ago I used it.
> 
> Dave



      

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


Re: TabbedPanel in Struts2

Posted by Dave Newton <ne...@yahoo.com>.
Do you have Dojo debugging turned on in your <st:head.../> tag?

Do you have an <st:head.../> tag, I guess? I don't recall having had
any major issues with it, but it was awhile ago I used it.

Dave

--- Jay Bose <di...@yahoo.com> wrote:

> No, not at all. I get Dojo-ififed tags, but they have no label or
> anything else, for that
> matter. They are just divs with the content of the tab, but no label.
> I will list the JSP
> content I'm using, and the resulting output.
> 
> The JSP code
> ======================================================
> <%@ taglib uri="/struts-tags" prefix="st" %>
> 
> <st:tabbedPanel id="tabContainer" selectedTab="test1">
> 	<st:div id="test1" label="Test One">
> 		One
> 	</st:div>
> 
> 	<st:div id="test2" label="Test Two">
> 		Two
> 	</st:div>
> </st:tabbedPanel>
> ======================================================
> 
> 
> The output
> ======================================================
> <script type="text/javascript">
>   dojo.require("dojo.widget.TabContainer");
>   dojo.require("dojo.widget.LinkPane");
>   dojo.require("dojo.widget.ContentPane");
> </script>
> 
> <div dojoType="TabContainer" id="tabContainer" selectedTab="test1"
> doLayout="false">
> 	<div dojoType="struts:BindDiv" id="test1" label="Test One"
> showError="true">
> 		One
> 	</div>
> 	<div dojoType="struts:BindDiv" id="test2" label="Test Two"
> showError="true">
> 		Two
> 	</div>
> </div>
> ======================================================
> 
> 
>       
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


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


Re: TabbedPanel in Struts2

Posted by Jay Bose <di...@yahoo.com>.
No, not at all. I get Dojo-ififed tags, but they have no label or anything else, for that
matter. They are just divs with the content of the tab, but no label. I will list the JSP
content I'm using, and the resulting output.

The JSP code
======================================================
<%@ taglib uri="/struts-tags" prefix="st" %>

<st:tabbedPanel id="tabContainer" selectedTab="test1">
	<st:div id="test1" label="Test One">
		One
	</st:div>

	<st:div id="test2" label="Test Two">
		Two
	</st:div>
</st:tabbedPanel>
======================================================


The output
======================================================
<script type="text/javascript">
  dojo.require("dojo.widget.TabContainer");
  dojo.require("dojo.widget.LinkPane");
  dojo.require("dojo.widget.ContentPane");
</script>

<div dojoType="TabContainer" id="tabContainer" selectedTab="test1" doLayout="false">
	<div dojoType="struts:BindDiv" id="test1" label="Test One" showError="true">
		One
	</div>
	<div dojoType="struts:BindDiv" id="test2" label="Test Two" showError="true">
		Two
	</div>
</div>
======================================================


      

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


Re: TabbedPanel in Struts2

Posted by Jeromy Evans <je...@blueskyminds.com.au>.
Jay Bose wrote:
> I was using tabbedPanel, with the Ajax theme in WebWork-2; no problem.
>
> After my upgrade to Struts-2.0.11, I no longer get decorated tabs. The ajax recipes were
> not as helpful as I would have liked
> (http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-TabbedPanel).
>  
>
> Has anyone been able to use the ajax tabbedPanel in Struts-2.0.6+ (pre-2.1.x)?
>
>   

Yes, I had no problems with it in 2.0.x.  Are you seeing any errors in 
FireBug (such as 404s)?


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