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

Martin Grigorov commented on WICKET-6575:
-----------------------------------------

I guess the default precondition could be extended to check for HTML element 
visibility: `$(el).is(':visible')` or something similar.

> Ajax requests are still firing even when placeholder tag is written only
> ------------------------------------------------------------------------
>
>                 Key: WICKET-6575
>                 URL: https://issues.apache.org/jira/browse/WICKET-6575
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 8.0.0
>            Reporter: Sven Meier
>            Assignee: Sven Meier
>            Priority: Minor
>
> Wicket JavaScript has a default precondition, that prevents Ajax requests 
> from being fired, should the component no longer be on the page.
> If a component is not visible, but nevertheless is writing a placeholder tag, 
> the request is still fired. This results in a 
> ListenerInvocationNotAllowedException and redirect to an access denied page.
> Wicket could add some magic to prevent this from happening.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to