gigaZhang / struts2-jquery

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

struts2-jquery iteratory lag problem #915

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.when I have a page with <sj:div> dynamic contents 
2.
3.

What is the expected output? What do you see instead?
I used struts2-jquery to create dynamic DIV page.
There is my code.

<sj:div id="list" href="%{messageLink}">Loading....</sj:div>

and the Message page:

           <s:iterator value="message">
               <s:div id="headImage%{messageID}">
               <table>
               <tr><td rowspan="2" width="60px"><img src="https://graph.facebook.com/<s:property value="%{fbID}"/>/picture?type=small"/></td>
               <td align="left"><s:property value="%{lastName}"/>&nbsp;&nbsp;<s:property value="%{firstName}"/></td>

               </tr>
               <tr><td><s:div id="time<s:property value='%{messageID}'/>" cssClass="messageTime"><s:property value="%{passTime}"/></s:div></td></tr>
               <tr><td  colspan="2">
                <s:div cssClass="commentContent">
                    <s:property value="%{message}"/>
                </s:div>
               <hr/></td></tr>
               </table>

               </s:div>

           </s:iterator>
<s:textarea label="Message " name="leftMessage" rows="4"
    cols="35" id="textMessage%{id}" /><br/>

the problem is that after all of the messages completed to load, I still 
couldn't use "textarea" and scroll for the DIV for like 5 sec, even I could see 
all of message and the textarea, but I can't use it.
Even if the iterator didn't have any content, the problem still here.

the problem solved only I remove whole <s:iterator>.

so I believe that the problem is the iterator tag, but How to solve it?

Which struts2 version?
freemarker-2.3.18
ognl-3.0.4
struts2-core-2.3.1.2
xwork-core-2.3.1.2

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

Original issue reported on code.google.com by jack08...@gmail.com on 5 Nov 2012 at 3:35