Skip to content

Slider fails on re-rendered page #44

@svenmeier

Description

@svenmeier
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions