Thanks Igor, I forgot to wrap it using ModelIteratorAdapter... :)
igor.vaynberg wrote: > > On 7/15/07, Ballist1c <[EMAIL PROTECTED]> wrote: >> >> >> So with the recent discovery of the RefreshingView, I have decided I >> wanted >> to transplant all my code from ListView. >> >> Unfortuantely, I am getting a nasty error and i have tracked the actual >> failure to the 'getItemModels()' abstracted function. I retrieve the >> appropriate iterator, and debug shows that it is being returned to the >> original class/function that calls it. What I am doing is using an >> Iterator >> from another POJO backend class. The code itself is quite similar to the >> code I had for listView with the addition of retrieving the iterator for >> getItemModels(). >> >> I am not sure if thats the actual code thats causing the problem. The >> code >> is below the error message. >> >> Anyway, yeah let me know what you guys think. >> >> >> ----------------------------------------------------------------------------------- >> >> WicketMessage: Error attaching this container for rendering: >> [MarkupContainer [Component id = chatDisplay, page = >> jumbuck.ffweb.wicket.page.FFWeb, path = >> 0:main_tabbed_panel:target_panel:tabbed_panel:target_panel: >> chatDisplay.HotListTargetPanel$1, >> isVisible = true, isVersioned = false]] >> >> Root cause: >> >> java.util.ConcurrentModificationException >> at java.util.AbstractList$Itr.checkForComodification(AbstractList.java >> :372) >> at java.util.AbstractList$Itr.next(AbstractList.java:343) >> at >> org.apache.wicket.markup.repeater.DefaultItemReuseStrategy$1.next( >> DefaultItemReuseStrategy.java:71) >> at >> org.apache.wicket.markup.repeater.RefreshingView.addItems( >> RefreshingView.java:189) >> at >> org.apache.wicket.markup.repeater.RefreshingView.onBeforeRender( >> RefreshingView.java:115) >> at org.apache.wicket.Component.beforeRender(Component.java:846) >> at >> org.apache.wicket.MarkupContainer.onBeforeRenderChildren( >> MarkupContainer.java:1449) >> at org.apache.wicket.Component.beforeRender(Component.java:856) >> at >> org.apache.wicket.MarkupContainer.onBeforeRenderChildren( >> MarkupContainer.java:1449) >> at org.apache.wicket.Component.beforeRender(Component.java:856) >> at >> org.apache.wicket.MarkupContainer.onBeforeRenderChildren( >> MarkupContainer.java:1449) >> at org.apache.wicket.Component.beforeRender(Component.java:856) >> at >> org.apache.wicket.ajax.AjaxRequestTarget.respondComponent( >> AjaxRequestTarget.java:757) >> at >> org.apache.wicket.ajax.AjaxRequestTarget.respondComponents( >> AjaxRequestTarget.java:662) >> at >> org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java >> :520) >> at >> org.apache.wicket.request.AbstractRequestCycleProcessor.respond( >> AbstractRequestCycleProcessor.java:103) >> at >> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java >> :1037) >> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107) >> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176) >> at org.apache.wicket.RequestCycle.request(RequestCycle.java:499) >> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java >> :257) >> at >> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java >> :127) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( >> ApplicationFilterChain.java:202) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter( >> ApplicationFilterChain.java:173) >> at >> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter( >> MonitorFilter.java:368) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( >> ApplicationFilterChain.java:202) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter( >> ApplicationFilterChain.java:173) >> at >> org.apache.catalina.core.StandardWrapperValve.invoke( >> StandardWrapperValve.java:213) >> at >> org.apache.catalina.core.StandardContextValve.invoke( >> StandardContextValve.java:178) >> at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java >> :126) >> at >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java >> :105) >> at >> org.apache.catalina.core.StandardEngineValve.invoke( >> StandardEngineValve.java:107) >> at >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java >> :148) >> at >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) >> at >> >> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection >> (Http11BaseProtocol.java:664) >> at >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( >> PoolTcpEndpoint.java:527) >> at >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( >> LeaderFollowerWorkerThread.java:80) >> at >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( >> ThreadPool.java:684) >> at java.lang.Thread.run(Thread.java:619) >> >> >> -------------------------------------------------------------------------------- >> CODE >> >> chatRefreshingView = new RefreshingView("view", new PropertyModel(new >> PropertyModel(ChatView.this.getJumbuckSession(), "currentChatSession"), >> "chatEntries")) >> { >> protected Iterator getItemModels() >> { >> //i like cereal >> chatViewItemsIterator = >> ChatView.this.getJumbuckSession().getCurrentChatSessionIterator(); >> return chatViewItemsIterator; >> } >> protected void populateItem(Item item) >> { >> ChatViewItem chatViewItem = getItem("viewItem"); >> item.add(chatViewItem); >> chatViewItem.setMyModels(); >> } >> }; >> -- > > > need to see more code, especially chatViewItem.setMyModels() what that > method does. getcurrentchatsessioniterator() returns an iterator<imodel> ? > > -igor > > > > View this message in context: >> http://www.nabble.com/java.util.ConcurrentModificationException-with-RefreshingView-tf4084206.html#a11608321 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/java.util.ConcurrentModificationException-with-RefreshingView-tf4084206.html#a11608759 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user