Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accordion in struts2-jquery-plugin-2.1.0 not working

 
Rohit Bhal
Ranch Hand
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 44
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic