struts jquery不加载对话框内容
有以下代码:struts jquery不加载对话框内容,jquery,jsp,struts2,Jquery,Jsp,Struts2,有以下代码: <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: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>
链接
当我点击链接时,会打开对话框,但内容是空的。如我所见,没有向/DEF/ABC.action发出任何请求
但是,如果我将autoOpen属性更改为true,-则在加载页面并保存内容后,对话框将打开
可能有什么问题,我怎样才能使它正常工作
我使用的struts jquery示例来自
sj:a
标记应该如下所示:
您的代码应该如下所示:
<sj:head compressed="false" jqueryui="true" jquerytheme="custom"/>
<s:url id="link" action="ABC" namespace="/DEF" escapeAmp="false"/>
<sj:a openDialog="_dialog" href="%{link}" cssStyle="float:left;padding:5 0 0 10;">
Link
</sj:a>
<sj:dialog id="_dialog" modal="false" resizable="false" position="center" closeOnEscape="true" draggable="false" title="Contact Us" autoOpen="false" />
链接
您不应该将href
放在sj:dialog
标记中,它应该放在sj:a
标记中
更新
请查看什么版本的所有内容?我记得有一个关于对话内容的问题,我会看看我是否能找出我所做的。