You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2019/11/15 07:16:00 UTC
[jira] [Resolved] (WICKET-6710) Infinite page loading with
StalePageException
[ https://issues.apache.org/jira/browse/WICKET-6710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Tzvetanov Grigorov resolved WICKET-6710.
-----------------------------------------------
Resolution: Cannot Reproduce
Closing as "Cannot reproduce" because a quickstart was not provided by the reporter.
> Infinite page loading with StalePageException
> ---------------------------------------------
>
> Key: WICKET-6710
> URL: https://issues.apache.org/jira/browse/WICKET-6710
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 8.6.1
> Environment: Windows 10, CentOS 7, Eclipse
> Reporter: Petr
> Priority: Major
>
> Hi, I have a problem, that somehow because of this in constructor of the page:
>
> {code:java}
> add(new AjaxEventBehavior("DOMContentLoaded") { add(new AjaxEventBehavior("DOMContentLoaded") { private static final long serialVersionUID = 1L;
> @Override protected void onEvent(final AjaxRequestTarget target) { [0].classList.add('fade-in');"); target.appendJavaScript("some javascript"); } });{code}
>
> when I access the page, the StalePageException is thrown and wicket starts infinite reloading the page again and again. I cant work with app after that. What could be the problem? My app console is full of these:
> {code:java}
> WARN RequestCycleExtra - ******************************** WARN RequestCycleExtra - Handling the following exception org.apache.wicket.core.request.mapper.StalePageException: A request to page '[Page class = *.*Page, id = 1, render count = 2]' has been made with stale 'renderCount'. The page will be re-rendered. WARN RequestCycleExtra - ********************************{code}
> and page is refreshing. So I guess, that I am not using the behaviors in right way.
>
> Same as if I will use AbstractDefaultAjaxBehavior.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)