Cesar Mugnatto commented on Jan 1, 2014

Re: Tutorial: Introduction to XPages - Exercise 12

I had to first disable validation on the TagLine field before I could get the Server-side script to fire correctly. I don't believe this was documented above.

Alexander W. Guenzel commented on Oct 14, 2013

Re: Tutorial: Introduction to XPages - Exercise 12

What the author forgot to mention is, that you need to click on the Source tab of the xpage and there at the submit button is a property called "immediate", you have to set this to "true" in order to have the server side javascript working and show you the right output, like in the last screenshot!

I searched 2,5 days, because it wasn't mentioned in this exercise!

===> Very, very bad quality testing of all exercises in this tutorial

There are more errors in the previous exercises!

Robert F Harwood commented on Jan 13, 2012

Re: Tutorial: Introduction to XPages - Exercise 12

checked

Don Mottolo commented on Dec 13, 2011

Re: Tutorial: Introduction to XPages - Exercise 12

On the CSJS client onclick event, I'd recommend adding "return" to the second line. This keeps the code from continuing on to a server side script (if one exists).

var element = dojo.byId("#{id:TagLine}");

return checkSearchField(element, 4, "We need a tag line");

Don Mottolo commented on Dec 13, 2011

Re: Tutorial: Introduction to XPages - Exercise 12

On the CSJS client onclick event, I'd recommend adding "return" to the second line. This keeps the code from continuing on to a server side script (if one exists).

var element = dojo.byId("#{id:TagLine}");

return checkSearchField(element, 4, "We need a tag line");

Alfa Tecnologias commented on Nov 9, 2011

Re: Tutorial: Introduction to XPages - Exercise 12

Domino 8.5.3 Win32 - Designer 8.5.3 - Firefox 8.0

Using ServerSideLibrary results in Error 500

Error while executing JavaScript computed expression - com.sun.faces.lifecycle.InvokeApplicationPhase

CLFAD0211E: Exception thrown

CLFAD0246E: Exception occurred servicing request for: /xScrapbook.nsf/validationTest12.xsp - HTTP Code: 500

Executing code inside the condition for the Action Group works. Sample:

var componente = getComponent("TagLine");

var etiq = getComponent("TagLabel");

var value = componente.getValue();

if(null == value || value == ""){

etiq.setValue('requerimos un valor');

return false;

} else { return true };

Duke Johnson commented on Nov 29, 2010

Tutorial: Introduction to XPages - Exercise 12

Section 6. should read:

function requiredFieldCheck(editBoxComponent, labelComponent, requiredMessage){

var value = editBoxComponent.getValue();

if(null == value || value == ""){

labelComponent.setValue(requiredMessage);

return false;

}

return true;

}

There is some weird HTML thing going on here which hides the "==" characters and uses a Heading instead.

qiu na zhang commented on Apr 14, 2010

Tutorial: Introduction to XPages - Exercise 12

the client and server javascript library can't work ,and may server version is the same as designer version.

Bob Cross commented on Dec 2, 2009

Tutorial: Introduction to XPages - Exercise 12

Sheryl - I'm seeing the same thing. My function won't work from a script library. Did you find a solution to this?

Patrick Tuin commented on Nov 20, 2009

Tutorial: Introduction to XPages - Exercise 12

John, Goto the source of this page, the text that's supposed to be before it is available there.

John L Smart commented on Nov 17, 2009

Tutorial: Introduction to XPages - Exercise 12

Looks like the top of this page is missing? It starts with

Home > Tutorial: Introduction to XPages - Exercise 12

== ""){

labelComponent.setValue(requiredMessage);

return false;

}

return true;

}

7. Add the server side script library to the page.

8. Add a new...

Sheryl C Banks commented on Nov 2, 2009

'requiredFieldCheck' not found

I was unable to get the Client Side script to work undoubtedly because my server version is 8.5 and Designer client is 8.5.1.

However I was unable to get the server side script from working until I moved it from the script library to the Xpage. Having it in the script library kept giving me the script interpreter error, 'requiredFieldCheck' not found. Why would this be happen? When I looked at view source, it does have a reference to the resource "ServerSideValidation" script library. Any ideas?