xPages "No Update" is not working as intended

Running 8.5.1 on server and client I am having problem understanding the “no update” option on a ssjs onclick event

  • I have a computed field control on a xPage which should print out the cgi variable “referer”

  • I have one link control whith the ssjs: print(“T”), I have set the server option for this click event to “No Update”

When I load the xPage in the browser i get my link

My problem here is that when I click the link the page refreshes and show the computed value. which means the page is indeed refreshing even though it should not.

What is wrong?

Subject: It could be the link element itself

Hi,

The problem may be that you’re using a link element. On your link, what is the url set to on the properties?

If you do the same with a button (making sure it’s set to be a normal button and not a submit one) instead of a link, does this change things?

I only suggest this as I’m wondering if it processes your onclick code (with no update as it should), and then it tries to run the normal link element functionality which may be redirecting you to the same page; giving the impression of a refresh.

This is a complete shot in the dark as I haven’t had time to copy your code and try it out

Subject: thanks, but it is the same problem with button

I tried it using a button and it is the same result, I set the button to typ Button and just add an onclick ssjs event print(“test”) and set it to “no update” but the page is refreshed.

The funny think if I enter partial refresh and set it to a refresh pane not containing the computed value code the value is not updating.

so it looks like the “No update” code is not working at all. the partial refresh code could be a workaround.

thanks for your answr

Thomas

Subject: This is an issue…

Hi,

This is an issue in 8.5.1 which will be fixed in 8.5.2. SPR → MKEE7VVJ26

Kind Regards,

Edel

Subject: wow, thanks!