Happy new year everyone!  I have a simple question about the <webwork:iterator> tag 
and performance using WW 1.2.1.

I have this list of countries that contains 245 entries.  When I execute the following 
fragment, it takes about 15 seconds to execute the iterator loop by itself.  Any of 
you WW gurus have some pointers on making it faster?  I can't simply cache the select 
list because the form is for an address book so the selected value is user specific.

<%@ taglib uri="webwork" prefix="ww" %>
<%@ taglib uri="webwork" prefix="ui" %>
<%
    long start, end = -1;
%>

    <table width="100%">
    <tr>
    <!-- start cell with webwork components -->
    <ww:action name="'CountriesList'" id="countrieslist"/>
<% start = System.currentTimeMillis(); %>
    <ui:select label="'Country'" name="'country'" list="@countrieslist/countries" 
listKey="'countryCode'" listValue="'description'"/>
<% end = System.currentTimeMillis(); %>
    <!-- end cell with webwork components -->
    </tr>
    </table>
<p>
Execution Time=<%= ((double)end - start) / 1000.0 %> sec
</p>

Thanks,
Kirk Rasmussen
Lucasfilm Ltd.


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to