jQuery in Action, 3rd edition
The moose likes Other Application Frameworks and the fly likes struts 2 with dojo plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "struts 2 with dojo plugin" Watch "struts 2 with dojo plugin" New topic

struts 2 with dojo plugin

Howard Ralstone

Joined: Nov 21, 2004
Posts: 8

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.



David Newton

Joined: Sep 29, 2008
Posts: 12617

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: struts 2 with dojo plugin
It's not a secret anymore!