So I ended up figuring out the issue. My loop was nested within a zone, when the loop was loaded. !request.xhr was blocking a query causing the result size to differ between load and submit. On submit I was submitting values that the onPrepare method wasn't aware of.
On Sun, Jan 25, 2015 at 6:18 AM, George Christman <gchrist...@cardaddy.com> wrote: > Below is the tml code > > 12 <t:zone t:id="filterZone"> > 13 <t:modalDialog t:id="filterDialog"> > 14 <t:form t:id="filterForm" context="facetHolder.key"> > 15 <div t:type="loop" source="facetViews" value="var:facetView" > formState="iteration"> > 16 <div t:type="loop" source="var:facetView" value="facetView" > formstate="iteration"> > 17 <t:checkbox t:id="selected" value="facetView.selected"/> > 18 </div> > 19 </div> > 20 </t:form> > 21 </t:modalDialog> > 22 </t:zone> > > > java > > @Property > private FacetView facetView; > > @Property > private List<List<FacetView>> facetViews; > > > public void onPrepareFromFilterForm(String filterType) throws IOException { > try { > searchResponse = > vehicleSearchDAO.getAllFacetResults(searchFilter); > > facetViewList = > searchResponse.getFacetGroupMap().get(filterType).getFacetViews(); > > int rows = 1; > > if (facetViewList.size() > 3) { > rows = facetViewList.size() / 3; > } > > if (!facetViewList.isEmpty()) { > facetViews = Lists.partition(facetViewList, rows); > } > } catch (NullPointerException ex) { > System.out.println(ex); > } > } > > On Sat, Jan 24, 2015 at 7:47 PM, Geoff Callender > <geoff.callender.jumpst...@gmail.com> wrote: >> Can you paste the source of FacetFilter.tml, and identify line 16, too? >> >> On 25 Jan 2015, at 5:24 am, George Christman <gchrist...@cardaddy.com> wrote: >> >>> Hi guys, I've been seeing this exception a lot lately and I can't seem >>> to track it down, I'm wondering if anybody has see anything like this >>> before and might be able to lend a helping hand to understand it. >>> Thanks >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) >>> at >>> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) >>> at java.lang.Thread.run(Thread.java:745) Caused by: >>> org.apache.tapestry5.runtime.ComponentEventException [at >>> classpath:com/cardaddy/auto/components/search/FacetFilter.tml, line >>> 12] at >>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1126) >>> at >>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3100(ComponentPageElementImpl.java:57) >>> at >>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1047) >>> at >>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1044) >>> at >>> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:82) >>> ... 91 more Caused by: >>> org.apache.tapestry5.ioc.internal.util.TapestryException [at >>> classpath:com/cardaddy/auto/components/search/FacetFilter.tml, line >>> 16] at >>> org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:749) >>> at org.apache.tapestry5.corelib.components.Form.onAction(Form.java:516) >>> at >>> org.apache.tapestry5.corelib.components.Form.dispatchComponentEvent(Form.java) >>> at >>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:917) >>> at >>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1102) >>> ... 95 more Caused by: java.util.NoSuchElementException at >>> java.util.ArrayList$SubList$1.next(ArrayList.java:1109) at >>> org.apache.tapestry5.corelib.components.Loop.advanceVolatile(Loop.java:375) >>> at org.apache.tapestry5.corelib.components.Loop.access$200(Loop.java:64) >>> at org.apache.tapestry5.corelib.components.Loop$3.execute(Loop.java:115) >>> at org.apache.tapestry5.corelib.components.Loop$3.execute(Loop.java:110) >>> at >>> org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:738) >>> ... 99 more >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: users-h...@tapestry.apache.org >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> > > > > -- > George Christman > CEO > www.CarDaddy.com > P.O. Box 735 > Johnstown, New York -- George Christman CEO www.CarDaddy.com P.O. Box 735 Johnstown, New York --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org