gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

sj:div doesn't reload #814

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?
1.I use sj:a tag to load an popup page and display in same page of <sj:div> 
tag. the popup page contains some sj:div tag to load information from other 
pages. 
2.first time to load the popup page - working
3.after first time, the <sj:div> tag in popup page - doesn't work at all.

What is the expected output? What do you see instead?
all of <sj:div href="action"> load at first time.
when I second time, all of <sj:div href="action"> doesn't run.

Which struts2 version?
struts2 2.3.1.2

Which struts2-jquery plugin version?
struts2-jquery-plugin 3.3.0

Please provide any additional information below.
cut code: in main page:
            <s:url id="focusImage" value="focusImage.action" escapeAmp="false">
                <s:param name="imageID" value="%{id}" />
            </s:url>
        </s:else>
            <sj:a href="%{focusImage}" targets="showImage">
                <img src="<s:url action='loadClosetImageAction?imagePath=%{filePath}&imageType=thumb' />" id="<s:property value="category"/>" />
            </sj:a>
<s:div id="showImage"></s:div>

code in popup Page:
<s:url id="likeLink" value="likeAction.action" escapeAmp="false">
    <s:param name="imageID" value="%{imageDetail.id}" />
    <s:param name="userID" value="%{userID}"/>
</s:url>
    <sj:div id="vote" href="%{likeLink}" align="left"></sj:div>
    </div>
</div>
<div id="postMessage">
<s:url id="messageList" value="loadMessage.action" escapeAmp="false">
    <s:param name="imageID" value="%{imageDetail.id}" />
</s:url>
<sj:div id="list" href="%{messageList}" align="center">

Original issue reported on code.google.com by jack08...@gmail.com on 1 May 2012 at 4:37