This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No tag "tabbedPanel" defined in tag lib

 
James Hollier
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's <sx:tabbedpanel>. The S2 documentation is your friend.

http://struts.apache.org/2.1.6/docs/tag-reference.html
 
James Hollier
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tabbedPanel tag should be like tabbedpanel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic