You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Nathan.Comstock@wellsfargo.com (JIRA)" <ji...@apache.org> on 2013/07/05 16:15:59 UTC

[jira] [Commented] (WW-4129) Tag s:chekbox is very slow when devMode is enabled

    [ https://issues.apache.org/jira/browse/WW-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13700685#comment-13700685 ] 

Nathan.Comstock@wellsfargo.com commented on WW-4129:
----------------------------------------------------

I will be out of the office until July 5th

On Jun 28, 2013, at 12:57 AM, "Ferret Renaud (JIRA)" <ji...@apache.org>
 wrote:

   [ https://issues.apache.org/jira/browse/WW-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13695309#comment-13695309 ]

Ferret Renaud commented on WW-4129:
-----------------------------------

I agree with you, but the difference of loading time for this component between devMode value is really huge regardless the Log configuration.

Tag s:chekbox is very slow when devMode is enabled
--------------------------------------------------

               Key: WW-4129
               URL: https://issues.apache.org/jira/browse/WW-4129
           Project: Struts 2
        Issue Type: Bug
        Components: Other
  Affects Versions: 2.3.14.3, 2.3.15
       Environment: Tomcat 7.0.37, Java 1.7.0.21
          Reporter: Ferret Renaud
           Fix For: 2.3.16

       Attachments: sample.war


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.
{code:html}
<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>
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

                
> Tag s:chekbox is very slow when devMode is enabled
> --------------------------------------------------
>
>                 Key: WW-4129
>                 URL: https://issues.apache.org/jira/browse/WW-4129
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.3.14.3, 2.3.15
>         Environment: Tomcat 7.0.37, Java 1.7.0.21
>            Reporter: Ferret Renaud
>            Priority: Minor
>             Fix For: 2.3.16
>
>         Attachments: sample.war
>
>
> 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.
> {code:html}
> <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>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira