XPages, the first steps

Hi all x-pagers out there.

I am playing with my new 8.51 Designer to get the hang of x-pages.

My goal for today: create a custom controll containing 1 editbox and a button to alert the editboxes value.

Then add the custom controll to my xpage (containing no other elements) and show the entered value by clicking the button.

I have:

  • added an ID to the editbox

  • added a simple action - execute script - to the button: 2 versions I have tried:

alert(dojo.byId(“#{id:field1}”).value); or

alert(getComponent(“field1”).value);

  • selected “No Update” and “No validation”

Still the error message “Problem submitting an area of the page …” keeps appearing.

Can somebody please hand me the most basic scenario for doing this (including binding-settings that might influence this behaviour).

Thnx,

Arthur

Subject: Need to use client side javascript

The alert box is generated by the client so you need to choose client-side javascript instead. One useful tip is to open the application properties in the designer client and under the Xpages tab choose “Display default error page”. That will show you the full error stack.