1 Replies - 632 Views - Last Post: 04 November 2012 - 08:46 PM

#1 Jay0830  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 58
  • Joined: 01-June 10

struts2-jquery iteratory lag problem

Posted 04 November 2012 - 07:27 PM

I am not sure what cause this problem.

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?


my struts2 version:
freemarker-2.3.18
ognl-3.0.4
struts2-core-2.3.1.2
struts2-jquery-plugin-3.3.0
xwork-core-2.3.1.2



Thanks.

Is This A Good Question/Topic? 0
  • +

Replies To: struts2-jquery iteratory lag problem

#2 Jay0830  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 58
  • Joined: 01-June 10

Re: struts2-jquery iteratory lag problem

Posted 04 November 2012 - 08:46 PM

I found the problem is.
I added <sj:head/> to the head in Message page.
when I removed that, everything works fine.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1