Florin M.
Florin M.

Reputation: 2169

Xpages delay time when composing a new document

<xp:button value="  Add" id="button1">

    <xp:eventHandler event="onclick" submit="true"
        refreshMode="complete">
        <xp:this.action>
            <xp:openPage name="/doc.xsp" target="newDocument"></xp:openPage>
        </xp:this.action>
    </xp:eventHandler>
</xp:button>

But, I have to wait up to 8 seconds - 10 seconds, for the structure document to appear. Also, in its structure there are displayed maximum 10-15 fields binded to datasource. There are as well some partial refreshes but everything goes OK, the delay time is only when I access the above button.

Is this a server issue? What can causes the above delay via the button?

Upvotes: 1

Views: 177

Answers (1)

Paul Stephen Withers
Paul Stephen Withers

Reputation: 15739

Try adding the setting "Do not validate or update data" to the button. That will prevent any of the page lifecycle occurring for the current page for that button. You're redirecting to a new page and running no other code, so there's no need to update the current page.

If it's still taking a long time, it's a problem on the page you're going to.

Upvotes: 2

Related Questions