This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes accordion in struts2-jquery-plugin-2.1.0 not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "accordion in struts2-jquery-plugin-2.1.0 not working" Watch "accordion in struts2-jquery-plugin-2.1.0 not working" New topic
Author

accordion in struts2-jquery-plugin-2.1.0 not working

Rohit Bhal
Ranch Hand

Joined: Aug 28, 2007
Posts: 44
Hi
I've just started playing with struts2-jquery-plugin-2.1.0 and was trying the 'accordion from list' from Struts2 jQuery Plugin Showcase, version 2.1.0. Strangely enough, I am getting the data retrived but not the accordion look and feel. Here is the image showing what I am trying to say here, http://www.freeimagehosting.net/image.php?800edec649.jpg. I am not on comission for that add, I just needed to host the image somewhere to upload it here to make my query more understood. Here is the code that I am using:

In struts.xml


In Accordion.java



In accordion-list.jsp



Could someone tell me why am I not getting the accordion look and feel?

Thanks.
Glen Divers
Ranch Hand

Joined: Jan 21, 2010
Posts: 61
Have you got the Struts Jquery tags defined in your jsp <%@ taglib prefix="sj" uri="/struts-jquery-tags"%> and have you remembered to include the <sj:head/> tag as well?

What does your rendered HTML look like?
Rohit Bhal
Ranch Hand

Joined: Aug 28, 2007
Posts: 44
Now this is what I call a blunder.

I missed the following tag:

This was how it looked like http://www.freeimagehosting.net/image.php?800edec649.jpg.
Had it linked to the original post as well.

Many thanks
Glen Divers
Ranch Hand

Joined: Jan 21, 2010
Posts: 61
Actually what I meant was what does your rendered html look like as in <htnl><head>...</html>. No matter, glad you got things sorted

Regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: accordion in struts2-jquery-plugin-2.1.0 not working