Questions tagged [xpages]

XPages is HCL's web and mobile application development platform for applications built on top of the HCL Domino server.

XPages is a rapid web and mobile application development platform. It allows HCL Notes/Domino data to be displayed to browser clients across all platforms.

The programming model is based on standards and common web development skills like JavaScript, Ajax, the Dojo Toolkit, Server-side JavaScript, Java, JavaServer Faces and it leverages HCL Lotus Domino functionality like the document-oriented database.

Layout

For the user interface XPages focus on the web development standards HTML, CSS and JavaScript. This allows projecting XPages applications to web clients and mobile devices and leveraging the same development skills. Additionally themes can be used as an easier way to manage multiple CSSs. XPages comes with default themes, for example the OneUI theme.

Logic

For client side logic various JavaScript frameworks can be used. However XPages comes with the Dojo Toolkit and Dojo controls can be easily referenced in XPages applications. XPages also uses Dojo internally for certain functionality to make key features easier to use without having to write Dojo code. A special XPages JavaScript library contains further convenience functionality, for example for client side field validations.

UI Controls

In addition to client side logic Dojo can also be used for rich user interface widgets and charts.

Access to Backend Services

As any web application XPages applications can use REST services. XPages also provides easy mechanisms to bind data sources to UI controls so that for many scenarios no code needs to be written. Additionally XPages allows to declaratively only refresh parts of the page via Ajax when submitting data.

Backend Technology

The development of XPages applications is done using HCL Domino Designer. With Designer many key scenarios can be implemented declaratively and rapidly, for example to render a list of entries from a database. Additionally for the business logic both JavaScript and Java code can be written.

JavaServer Faces

XPages is based internally on JavaServer Faces, but developers of XPages aren't required have to have explicit JavaServer Faces skills. The sources of a XPages design element are declared in an XML format called XSP which is compiled into Java code during a build. At runtime this code generates and returns the HTML to various clients.

Tooling with Domino Designer

XPages applications are stored in NSF (Notes Storage Facility) files which are collections of design elements that can be deployed as a whole and developed using Domino Designer. In order to access data XPages and Domino Designer use so called data sources. These data sources can be bound graphically to UI controls on pages. UI controls and other types of controls show up in a palette of controls in Domino Designer and can be dragged and dropped onto pages. Domino Designer also comes with futher convenience functionality, for example field validations, translations, etc.

XPages functionality can be modularized in so called 'Custom Controls' which are XPages controls that can be reused in multiple XPages pages and parameterized based on context.

Server Side JavaScript

In order to write business backend code Server Side JavaScript is used primarily. There are APIs to access the document oriented database and the XPages context - see here for more information on the APIs available. It is also possible to invoke standard Java SDK code from the JavaScript code and to write custom Java code using JSF managed beans.

XPages Runtime Extensibility

The XPages runtime can be extended using the XPages Extensibility API which is based on JavaServer Faces. This capability can for example be used by ISVs who want to provide their own libraries of XPages controls.


More information:

5449 questions
1
vote
2 answers

Dropdown menu does not trigger in oneui 3.0.2 (in Firefox)

I use an dropDownButton from the extlib, which does not work when I changed to OneUI 3.0.2 (from 2.1, in which it works fine). Happens in firefox (31.8), not in (a very old) IE. Firebug shows the following error in its console, when I click on on…
Uwe J.
  • 315
  • 1
  • 8
1
vote
0 answers

XPages: Paging with jsonRest in dojo Ehancedgrid

I have a problem with a pagination plugin in my Ehancedgrid on my XPages application using JSONRest, at pageload my grid display few data in between 5 and 10 of which my defaultPageSize is 25, but when i click on pageSizes on the pager control it…
K.john
  • 21
  • 1
1
vote
1 answer

Xpages: Keep view sort order when filtering on view

My Xpage has a dataView that points to a view which is sorted by employee name. One of the other fields in the employee view is their Location. I have a combobox in the header of the view that allows a user to subset to one location. When subsetted…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
1
vote
1 answer

Bootstrap Modal and responsive datatables

In an XPages application I am using Bootstrap modal and the datatables plugin. On the datatables website I have read to recalculate the responsiveness when loading the table in a Bootstrap modal e.g.: var table = $('#example').DataTable();…
Patrick Kwinten
  • 1,988
  • 2
  • 14
  • 26
1
vote
1 answer

How to Uninstall XPages Extension Library

I want to make a fresh XPages Extension Library v15 installation. So I want to remove former v14 version completely. But I have not found any description how to make an uninstallation. Is that not intended ?
Ben
  • 677
  • 5
  • 19
1
vote
1 answer

get the value from an entry in a properties file via CSJS

I want to access the value of an entry I have made in a properties file e.g. the file is called datasource.properties the entry is called DB_FILEPATH and the value is mydatadb.nsf In SSJS I would collect the value via datasource.getString('KEY') so…
Patrick Kwinten
  • 1,988
  • 2
  • 14
  • 26
1
vote
2 answers

how get JSON from URL

I need to read with the function SSJS fromJson() a URL. For example the Data access API for a Notes View http://{host}/{database}/api/data/collections/name/{name} How can I do this ? P.S I think (I don't know if is true) that if I use Java…
Daniele Grillo
  • 1,011
  • 4
  • 13
  • 31
1
vote
2 answers

XPages : Missing checkboxes with Bootstrap theme

In an XPage contact list I use chekboxes to delete docs (records). While using the application theme Bootstrap3.2.0_flat I do not see those checkboxes. Neither in a browser nor in Notes. Switching to OneUI xxx I see those checkboxes in the browser…
Ben
  • 677
  • 5
  • 19
1
vote
1 answer

XPages UI in Browser and Notes are not the same

For test purpose I create 2 XPages to add contacts and view them. I took a simple example from David Leedy / Youtube. When I preview the 2 XPages in a browser or in Notes it works as expected. But when I open the application through Notes (Launching…
Ben
  • 677
  • 5
  • 19
1
vote
2 answers

Xpages: Track changes when user updates document from Xpage

A business owner of my ticket tracking app in Xpages wants to track every change to the document. If a user opens the doc in edit mode but doesn't change anything, then no tracking. If, however, they open up a document and change one field, I have…
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
1
vote
1 answer

Xpages right Click context menu

I am trying to create a right click context menu in xpage, Even I have build one using the jQuery. Just want an idea if I can make it using any xpage functionality for example with extention library Pop up Menu, If I say extention library Pop up…
Ajit Hogade
  • 1,072
  • 9
  • 29
1
vote
2 answers

How trace exception JDBC connection

I developed an XPages application with access Anonymous that querying real-time inventories. Everything works perfectly So I've created OSGI package with the driver JTOpen to access DB2 AS400 (iSeries) database When you open the page, everything…
Daniele Grillo
  • 1,011
  • 4
  • 13
  • 31
1
vote
1 answer

xpage csjs code not sending inline images and attachment in proper format email thru gmail api

My xpage has following fields Xpage with evo:InputRichtext ckeditor from this snippet: I'm using gmail api to send email. I'm adding formatted text, inline images and files in Ckeditor Using button to get values from To, Subject and Ckeditor…
Mohan Gangan
  • 127
  • 11
1
vote
1 answer

Button not creating new docs, just updating old one - xpages

I hope this is a simple fix but I'm not experienced in xPages... I have an order app. I enter the customer ID, it looks it up and displays the information. Then in a type ahead I enter the product the customer is ordering. It looks it up,…
1
vote
2 answers

How could I possibly debug "Couldn't find design note - undefined"?

In an Xpages driven application I quite frequently see messages like this appearing at the server console: HTTP Web Server: Couldn't find design note - undefined [/myDbPath/myDb.nsf/undefined] Some Username Quite often but not always this message…
Lothar Mueller
  • 2,528
  • 1
  • 16
  • 29