Have this code:
<sj:head compressed="false" jqueryui="true" jquerytheme="custom"/>
<s:url id="link" action="ABC" namespace="/DEF" escapeAmp="false"/>
<sj:a openDialog="_dialog" cssStyle="float:left;padding:5 0 0 10;">
Link
</sj:a> <sj:dialog id="_dialog" href="%{link}" modal="false" resizable="false"
position="center" closeOnEscape="true" draggable="false" title="Contact Us" autoOpen="false">
</sj:dialog>
And when I click the link – it opens the dialog, but the content is empty. And as I see there are no any request made to /DEF/ABC.action.
But, if I change autoOpen attribute to true, – then the dialog opens once page is loaded, and content is there.
What could be the problem, how can I make it work properly?
I’ve used the struts-jquery examples from http://code.google.com/p/struts2-jquery/wiki/DialogTag
sj:atag should look like this:<sj:a href="%{url}" openDialog="_dialog"/>your code should look like this:
You should not put
hrefinsj:dialogtag, it should be in thesj:atagUPDATE
Please check out the SHOWCASE