Hi, 

I am getting a strange error when i use AjaxFormComponentUpdatingBehavior.

I have a ListView in a form and i populate the ListView with a panel ( each 
list items contain a panel )
I have attached a AjaxFormComponentUpdatingBehavior to a Drop Down in the same 
form to re render the list view based on the item selected in the drop down. 

All this works well and listview gets re-drawn perfectly based on the item 
selected in the drop down

Then i submit the page and goes to the next page and uses the browsers back 
button  to traverse back to the original page.  Then change the item selected 
in the drop down ( list view gets re drawn woth out any problem ) and submits 
the page again and goes to the next page. Now if i try to come back to the 
original page using the browsers back button i get an error (stack trace given 
below)

If i override the isVersioned method of the page and return false every thing 
works fine, i really have no clue about whats happening and whats causing the 
error.
Has anyone seen  this before ? Whats the best way to get around this ? 

I am using wicket 1.2.5

Root cause:
java.lang.IllegalStateException: Cannot remove [MarkupContainer [Component id = 
3, page = <No Page>, path = 3.ListItem]] from null parent!     at 
wicket.Component.remove(Component.java:1469)     at 
wicket.version.undo.Add.undo(Add.java:81)     at 
wicket.version.undo.ChangeList.undo(ChangeList.java:93)     at 
wicket.version.undo.UndoPageVersionManager.undo(UndoPageVersionManager.java:217)
     at 
wicket.version.undo.UndoPageVersionManager.getVersion(UndoPageVersionManager.java:167)
     at wicket.Page.getVersion(Page.java:589)     at 
wicket.PageMap.get(PageMap.java:461)     at 
wicket.Session.getPage(Session.java:447)     at 
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPage(DefaultRequestTargetResolverStrategy.java:215)
     at 
wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRequestTargetResolverStrategy.java:153)
     at 
wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:48)
     at wicket.RequestCycle.step(RequestCycle.java:992)     at 
wicket.RequestCycle.steps(RequestCycle.java:1084)     at 
wicket.RequestCycle.request(RequestCycle.java:454)     at 
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)     at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)     at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
     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:595)RegardsDipu
-------------------------------------------------------------------------
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

Reply via email to