[
https://issues.apache.org/jira/browse/WICKET-6575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16566524#comment-16566524
]
Martin Grigorov commented on WICKET-6575:
-----------------------------------------
Then setOutputMarkupPlaceholderTag(true) can add data-wicket-invisible
attribute and check for it ?
> 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)