XPages is a web Framework for IBM Notes platform. It was introduced in Lotus Domino 8.5 (has to be verified).
It is based on JSF (JavaServer Faces) with a lot of useful extensions to represent and manipulate IBM Notes data.
IBM offers a tutorial for XPages: https://www-10.lotus.com/ldd/ddwiki.nsf/dx/Tutorial-intro-to-XPages.htm
In short: XPages is part of IBM Domino Designer. Extra setup or installation isn't required for XPages.
To create your first XPage you have to create a new NSF first. Open the IBM Domino Designer, and open the menu "File" -> "New" -> "Application".
In the popup Dialog make these settings:
Hello World NSF".
The new NSF is created.
Now right-click on section "[XPages]" in the application navigator and select "new XPage ...".
HelloWorld". This will create a file named "HelloWorld.xsp".
Double-click at your new HelloWorld XPage, which you can find under the "[XPages]" section.
Select the tab "Source" (which is located at the bottom of the editor), and add a simple textfield component to your page. This should be the result:
<?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core" pageTitle="Hello My World"> <xp:text id="simpleTextField" value="Hello World!!!!" /> </xp:view>
Save the page and build the project (right-click at your application "Hello World NSF" and select menu entry "build").
Now, open a browser like Internet Explorer, and navigate to the new XPage of your application's NSF. For example "http://mydominoserver.com/hello-world.nsf/HelloWorld.xsp" and you will see your Hello World text.
First create a "
message.properties" file in Resources/Files/. Example:
############## # Test message.properties ############## label.age=Enter your age: validate.error.reqired.age=Sorry, but you have to give away the secret of your age ...
Next, connect the resource with your XPage or Custom Control:
<xp:this.resources> <xp:bundle src="/messages.properties" var="appMsg" /> .... </xp:this.resources>
Note: The "var" defines the name you want to use in your XPages or Custom Controls to reference the message map.