This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I set up some jQuery dom manipulation on a single page web app, which combines jQuery direct manipulation on some instances, and using the lightbox plugin FancyBox to some alternate or iframe views. It works nice. Then I've added Struts 2 actions for the dynamic services, which is almost there.
My doubt is this: when I submit a form in Struts2-jquery there is a targets property where I can put a div and the form result gets in the div. Ok so far. What if I needed to choose wether to stuck the result in a view or call fancybox() for it, how can I setup struts2-jquery forms to specify calling a js function instead of going directly to the target?
Or is it the case to ditch it altogether and going directly to the ajax code? I'm doing it already, but I want to know if somebody has a better way for it, as single page DOM apps are getting pretty much in taste.