Hi Guys, 

I am facing a problem with the usage of AjaxLink within a DataView. The
dataview is contained in a container since the DataView is updated on
ajaxform.submit. The AjaxLink is on each Item of the DataView, which opens
up a modal window (with a panel as the content) with further details of each
item listed in the DV.

Everything works fine, unless the user tries to open up the same Page
(containing the above components) in another window/tab, which apparently
results in the wicket component tree getting out of sync with the actual
DOM, and hence clicking the ajaxlink on the first window/tab results in the
following exception...(must be obvious but just for info, if i do a refresh
of the same page in the first tab/window, the ajaxlink would work fine) 

org.apache.wicket.WicketRuntimeException: component
certificateDataViewContainer:certificateList:2:certificateSummaryLink not
found on page company.wicket.product.page.CertificateSearchPage[id = 0],
listener interface = [RequestListenerInterface name=IBehaviorListener,
method=public abstract void
org.apache.wicket.behavior.IBehaviorListener.onRequest()]
        at
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:416)
        at
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:461)
        at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1366)
        at org.apache.wicket.RequestCycle.request(RequestCycle.java:499)
        at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
        at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)
        at
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
        at
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
        at
com.evermind.server.http.HttpRequestHandler.handleNotFound(HttpRequestHandler.java:1041)
        at
com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911)
        at
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
        at
com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
        at
com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
        at
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
        at
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java


Waiting for followup..

Thanks in advance

-- 
View this message in context: 
http://www.nabble.com/AjaxLink-in-a-DataView-causes-WicketRuntimeException-due-to-component-tree-getting-of-outofsync-tp18099619p18099619.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to