[ 
https://issues.apache.org/jira/browse/WICKET-5947?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14620480#comment-14620480
 ] 

Andrea Del Bene commented on WICKET-5947:
-----------------------------------------

The problem is that AJAX requests in Wicket 7 do not increase page version 
indicator. The problem can be seen in example page pageables. If we open two 
tabs pointing at the same page version (i.e. open a navigation link in another 
tab) and then we try to click on a link previously disabled in the other tab 
(for example first/ last page links), we obtain the exception reported in this 
issue. 
We might solve it overriding 
AjaxPagingNavigationLink#canCallListenerInterface(Method method) but maybe 
there are better options.

> AjaxPagingNavigationLink throws exception that Behavior is not enabled
> ----------------------------------------------------------------------
>
>                 Key: WICKET-5947
>                 URL: https://issues.apache.org/jira/browse/WICKET-5947
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 7.0.0
>            Reporter: Martijn Dashorst
>            Priority: Blocker
>
> When clicking on an AjaxPagingNavigationLink I get the exception below, based 
> on wicket-7.0.0-SNAPSHOT from yesterday.
> {code}
> 13:12:23,425 WARN  [org.apache.wicket.RequestListenerInterface] (default 
> task-10) behavior not enabled; ignore call. Behavior 
> org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationLink$1@2281aefc
>  at component [AjaxPagingNavigationLink [Component id = pageLink]]
> 13:12:23,431 WARN  [RequestCycleExtra] (default task-10) 
> ********************************
> 13:12:23,431 WARN  [RequestCycleExtra] (default task-10) Handling the 
> following exception: 
> org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException: 
> Behavior rejected interface invocation. Component: [AjaxPagingNavigationLink 
> [Component id = pageLink]] Behavior: 
> org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationLink$1@2281aefc
>  Listener: [RequestListenerInterface name=IBehaviorListener, method=public 
> abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
>       at 
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:237)
>  [wicket-core-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
>       at 
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
>  [wicket-core-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
>       at 
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
>  [wicket-core-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
>       at 
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865)
>  [wicket-core-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
>       at 
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
>  [wicket-request-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
>       at 
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265) 
> [wicket-core-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
>       at 
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
>  [wicket-core-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
>       at 
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
>  [wicket-core-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
>       at 
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
>  [wicket-core-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
>       at 
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
>  [wicket-core-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
>       at 
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284) 
> [wicket-core-7.0.0-SNAPSHOT.jar:7.0.0-SNAPSHOT]
>       at 
> io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) 
> [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to