Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts 2 with dojo plugin

 
Howard Ralstone
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a piece of my app working. I can do a search for a bible book, chapter, verse and return the results into a div using the dojo plugin.
The next and previous buttons work fine as well. However, I want to have more options within the results.

In the results next to every verse number I want to place a button, link, whichever, that when clicked will open a div below the verse. This
div will offer options to bookmark, highlight, etc. the verse.

I get the button to show up but when I click it I get nothing. The action is not being called for any of the buttons.
I'm using the "bind" example from the showcase app from the struts download. I'm trying to create new divs and buttons on the fly as I iterate
over the list of verses. As its in an ajax results div, I can't see the html code generated.

Does anybody have an idea as to how to achieve the desired results?

Here is the .jsp that is called into the results div. The "#bibId: <s:property value="bibId" />" line shows the correct bibId for each verse.

Thanks,

Howard

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question should be asked in the Struts forum.

As its in an ajax results div, I can't see the html code generated.

That's why Firebug (or proxies, or similar) exist.

I don't even understand how your JSP could compile--it's completely invalid:(And other similar issues.) You can't nest custom tags like that in JSP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic