File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes No tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "No tag "tabbedPanel" defined in tag lib" Watch "No tag "tabbedPanel" defined in tag lib" New topic
Author

No tag "tabbedPanel" defined in tag lib

James Hollier
Greenhorn

Joined: Jul 27, 2009
Posts: 19
I am trying to use the tabbedPanel in Struts2 but get the following dump:



I have the following libs loaded from the Struts 2.1.6 distribution:

commons-fileupload
commons-logging
commons-logging-api
freemarker
ognl
struts2-core
struts2-dojo
xwork

From examples I have the following in my JSP:

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It's <sx:tabbedpanel>. The S2 documentation is your friend.

http://struts.apache.org/2.1.6/docs/tag-reference.html
James Hollier
Greenhorn

Joined: Jul 27, 2009
Posts: 19
Thanks, that did the trick. I must be going blind! How do I control the coloring used by the tabbedpanel? I set the cssClass but noticed NO affect, so the default coloring seemed to still be used. Plus there are 3 types of background in a tabbedpanel: #1 - background color in button, #2 - background color above (and right) of buttons, #3 - regular background in content region. How can I control these adequately in order to use this control in my app.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You'll probably have to look at the Dojo (*old* Dojo) docs for that; I don't really recall. It's Dojo 0.4.3--good luck.

(That's one reason the Dojo tags are deprecated--too much work to keep up with. IMO it's really just easier to use raw JavaScript frameworks, and that's the general conclusion the project has made, despite a new jQuery plugin in the sandbox.)
James Hollier
Greenhorn

Joined: Jul 27, 2009
Posts: 19
I see the dojo jar distributed with Struts2 is struts2-dojo-plugin-2.1.6.jar...so you are saying that is using dojo 0.4.3 right? You are no doubt correct...I've seen alot of threads complaining about TabbedPanel bugs, etc.

I actually chose to use Struts2 assuming that it would have the latest screen widgets such as TabbedPanels, Rich TextArea, etc and that they would actually work robustly and NOT just be another vaporware feature listed in the docs. But, I'm finding out that all is not too merry in this regard.

What top-notch JS Frameworks are you using to augment development with Struts2 that work?

Thanks,
J
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

When WebWork/Struts 2 first integrated the Dojo widgets they *were*, at least partially, best-of-breed. The massive changes in Dojo since then make the amount of work necessary to revamp them something unpalatable to the S2 team, and community as well.

Recent Dojo is still a strong choice for a client-side framework, particularly if you need a full complement of widgets. It really depends on what you need, and what you're willing to learn. There are other compelling choices in "full-service" frameworks (YUI comes to mind, along with GWT, which I've never used). If you're looking for a "lighter-weight" solution then both jQuery and Prototype are excellent choices.
James Hollier
Greenhorn

Joined: Jul 27, 2009
Posts: 19
Definitely longer term (ie the next project) I'll lean towards GWT and be done with all the html/js non-sense - I love Java! For the current project I am constrained to more traditional web technologies so I guess I'll checkout of few of those you mentioned - Thanks for your input!
Ajay Dhiman
Greenhorn

Joined: Sep 11, 2011
Posts: 1
tabbedPanel tag should be like tabbedpanel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No tag "tabbedPanel" defined in tag lib
 
Similar Threads
Ajax tag is not working in strus2.1.6 with eclipse editor
Ajax using dojo plugins in struts2
STRUTS2 Tabbed interface problem with Tiles tag in IE6
tabbedpanel not working within tiles page in struts2.1.6
Struts2: How to use tree tag