Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4129

Tag s:chekbox is very slow when devMode is enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.14.3, 2.3.15
    • 2.3.16
    • Other
    • None
    • Tomcat 7.0.37, Java 1.7.0.21

    Description

      I want to show multible checkbox, in an html table.
      In my action I have an array of String, with its get/set.
      In my JSP I have a s:iterator on an list of object (160 in my test page), inside this iterator I create the s:checkbox.
      Creation of this is taking 2~4s, this is not normal it is far too slow, each checkbox takes between 16 and 32ms to build.

      <s:iterator value="#request.domainUsers" var="item">
      <tr>								
      	<td class="center" width="3%">										
      		<s:checkbox name="usersIdSelected" fieldValue="%{id}"/> 
      	</td>
      
      	<td></td>	
      	<td width="0%"><c:out value="${attr.item.fullName}"/></td>
      	<td><c:out value="${attr.item.phone}"/></td>
      	<td><c:out value="${attr.item.cellularPhone}"/></td>
      </tr>
      </s:iterator>
      

      Attachments

        1. sample.war
          4.19 MB
          Ferret Renaud

        Activity

          People

            lukaszlenart Lukasz Lenart
            renaud91 Ferret Renaud
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: