Re: Struts2 iterator twice for select tag

2014-06-04 Thread Lukasz Lenart
2014-06-03 19:17 GMT+02:00 Matt Williams mattwms1998...@yahoo.com.invalid: I am using struts 2.1.8. I am extending the org.apache.struts2.components.Select tag and writing my own select.ftl (freemarker template). I need to iterate over the parameter parameters.list twice. Example:

Re: Struts2 iterator twice for select tag

2014-06-04 Thread Matt Williams
I ended up overriding the 'evaluateExtraParams()' method and performing the exact same logic that is in the ListUIBean.evaluateExtraParams() to set a new parameter called 'listCopy' to use in the extra iterator. Code: @Override public void evaluateExtraParams() {    

Struts2 iterator twice for select tag

2014-06-03 Thread Matt Williams
I am using struts 2.1.8.  I am extending the org.apache.struts2.components.Select tag and writing my own select.ftl (freemarker template). I need to iterate over the parameter parameters.list twice.  Example: @s.iterator value=parameters.list    divloop1/div /@s.iterator @s.iterator

Re: Struts2 iterator twice for select tag

2014-06-03 Thread Paul Benedict
Maybe you found a bug. Hopefully Struts cleans up its iterator when the tag finishes. Maybe you can look into the source code to find out for us. Cheers, Paul On Tue, Jun 3, 2014 at 12:17 PM, Matt Williams mattwms1998...@yahoo.com.invalid wrote: I am using struts 2.1.8. I am extending the