Communicating with dialogboxes in xpage

Looking for a way to use dialogboxes in XPages I stumbled over a simple example on “ozinisle: Creating Simple Dialog Box In XPage”.

If it is the right way to go about, I don’t know, but at least it works.

My only problem is communicating between the dialogbox and the underlying x-page.

I can set a sessionScope variable on my x-page that I can read in the dialogbox.

However I don’t get it working to (re-)set this sessionScope variable from inside the dialogbox.

(button >> sessionSope.put(“testvar”, “hello world”))

Any tips?

Thnx, Arthur