[
https://issues.apache.org/jira/browse/WW-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13800487#comment-13800487
]
Lukasz Lenart commented on WW-4129:
-----------------------------------
The real problem isn't with reloading XML configuration, but with Freemarker
cache - when {{devMode}} is on, cache isn't used. I have changed a bit
configuration to allow separately configure cache/config reloading from
devMode, see example below:
{code:xml}
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="true" />
<constant name="struts.configuration.xml.reload" value="false"/>
<constant name="struts.freemarker.templatesCache" value="true"/>
<constant name="struts.freemarker.templatesCache.updateDelay" value="120"/>
<constant name="struts.freemarker.mru.max.strong.size" value="120"/>
<constant name="struts.disableRequestAttributeValueStackLookup"
value="true"/>
{code}
The above settings will disable config reloading and enable cache even is
devMode is on. Thus speeds up page rendering.
> 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 was sent by Atlassian JIRA
(v6.1#6144)