Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider fails on re-rendered page #44

Open
svenmeier opened this issue Nov 7, 2013 · 1 comment
Open

Slider fails on re-rendered page #44

svenmeier opened this issue Nov 7, 2013 · 1 comment

Comments

@svenmeier
Copy link

  • Start wiquery demo
  • open the slider page
  • refresh the page (F5)
  • all further Ajax calls fail with StalePageException

This issue is caused by the cached statement in JsScope:

public CharSequence render()
{
    if (statement == null)
    {
        statement = new StringBuilder();
        statement.append("function(");
        statement.append(scopeContext.scopeDeclaration());
        statement.append(") {\n");
        execute(scopeContext);
        statement.append(scopeContext.render());
        closeScope();
    }
    return statement.toString();
}

The rendered callbackScript from SliderAjaxJsScopeUiEvent#execute() contains the render count of the page. Since this is never updated, all following requests are rejected because the page count doesn't match the one of the stored page.

@svenmeier
Copy link
Author

BTW the same error happens with the Tabs-example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant