Hi, Did you find a solution for this?
I'm using wicket 1.4.8 and get almost the same error. Like you I have a customized column with a Link component in a datagrid. I have an ajax search field which updates the data (and the links) in the data grid when changing the search input. Sometimes if I click the link very quickly after I have changed the search value,, I get the same exception as you: org.apache.wicket.WicketRuntimeException: component panel:searchAndShowPanel:form:dataGrid:form:bodyContainer:body:row:31:item:addLink:addRecipientLink not found on page se.diamo.paysol.web.pages.invoicerecipientdir.pages.pagerorecipientdirectory.invoicerecipientdirectoryforcustomerpage.admin.AdminInvoiceRecipientDirectoryForCustomerPage[id = 27], listener interface = [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:426) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:471) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:144) But, if I wait one or two seconds before clicking, I never get this error. It seems like this has to do with the re-rendering of the page after the ajax request. At the moment the link is clicked, the link listener is not present on the server side. The question is if this should be considered a bug in Wicket or if this is by design. I'm thankful for any input on this. Apollo Apollo11 wrote: > > Hi all, > > I create a customized column with a Link component with an Icon, which it > will popup a new page for editding after click on it, for the Wicket > Datatable. > > *public* IconLinkPanel( *final* Item item, *final* String componentId, * > final* IModel model) {*{* > > *final* Link link = *new* Link("iconLink") { > > @Override > > *public* *void* onClick() { > > PageParameters params = *new* PageParameters(); > > params.put("object", theModel.getObject()); > > EditorPopupPage page = *new *EditorPopupPage(params ) ; > > setRedirect(*true*); > > setResponsePage(page); > > }; > > link.setPopupSettings(getPopupSettings()); > > Image img = *new* Image("image", getImageResourceReference()); > > *if* (getAltString() != *null* && !getAltString().trim().isEmpty()) { > > img.add(*new* SimpleAttributeModifier("alt", getAltString())); > > } > > *if* (getTitleString() != *null* && !getTitleString().trim().isEmpty()) { > > img.add(*new* SimpleAttributeModifier("title", getTitleString())); > > } > > link.add(img); > > add(link); > > } > > > the Datatable itself I added AjaxSelfUpdatingTimerBehavior to refresh the > table every 5 seconds. > > I've encountered a Intermittent internal server error whick when clicking > on > the link. the log shows > > Caused by: org.apache.wicket.WicketRuntimeException: component > homePage:panel:table:rows:32:cells:14:cell:link not found on page > com.apollo.fo.web.HomePage[id = 0], listener interface = > [RequestListenerInterface name=ILinkListener, method=public abstract void > org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] > > at > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:426) > > at > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:471) > > at > org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:144) > > > > I believe this issue is related to the datatable refreshing every 5 > seconds. > > > Is everyone have the same issue? If so, any solution for this? > > Your feedback are appreciated! > > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/component-not-found-on-page-for-a-Link-colun-in-the-Datatable-after-self-refresh-using-the-AjaxSelfUr-tp1892913p2229885.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org