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
1 answer

AMD Loader disable, enable in theme

I have a problem with the AMD Loader. I want bind the bootstrap-slider.js and the css into the application. All the javascript and css are declare in a theme. Now the slider js don't harmonize with the dojo js. I found the explains from Marky Roden…
khsopro
  • 107
  • 1
  • 10
1
vote
1 answer

Looking for a sample db using select2

I have been trying to get select2 to work on an existing xPages application with no luck. I keep getting errors saying select2() is not a function. I must have something messed up with my files/folders for the required code. I am not sure what…
Bitwyse1
  • 339
  • 3
  • 18
1
vote
2 answers

Xpages and Bootstrap - Pager is not aligned

My pagers will not align correctly on an Xpages view. The blank table cells on the left and right are huge. Any help would be greatly appreciated:
Bryan Schmiedeler
  • 2,977
  • 6
  • 35
  • 74
1
vote
1 answer

xpages carousel with dynamic content

Is it possible to feed the xe:carousel control from the Extension Library with dynamic content? At first it seems the slide nodes can only be set static?
Patrick Kwinten
  • 1,988
  • 2
  • 14
  • 26
1
vote
2 answers

Adding constraint to Dojo Data Grid Column Xpages

How could i add currency constraint to djxDataGridColumn in Dojo layout Programmaticly i will use: { name: 'Amount', field: 'col5', formatter: formatCurrency, constraint: {currency: 'EUR'}, widgetClass: HorizontalSlider, width: 10} But how can i…
simon peter
  • 403
  • 8
  • 19
1
vote
2 answers

Multi-value field storage limit on IBM Domino

I have a Domino Form and i was thinking of keeping a log in a multi-value field. For example User Foo Bar created a new Item on 1/2/2015 I am wondering what is the storage limit of a multi-value field?
mike_x_
  • 1,900
  • 3
  • 35
  • 69
1
vote
0 answers

XPage does not render Bootstrap Theme

After making a new Domino Designer installation (newest version) and a complete fresh ExtensionLibraryOpenNTF-901v00_15 … updateSite installation bootstrap is not rendered in XPage for browser preview. I can switch to Bootstrap3.2.0 Theme in XPage…
Ben
  • 677
  • 5
  • 19
1
vote
2 answers

Xpages-Setting Up the ViewScope from client-side javaScript (oncontextmenu)

I have a Xpages in which I have repeat control, Now I have the list of documents from a view. Onclick on the row is setting the viewScope Array with the Unid. I have done this actually for the purpose of selecting the document and to keep track that…
Ajit Hogade
  • 1,072
  • 9
  • 29
1
vote
1 answer

Images in RichText Fields without dimensions

Whenever I retrieve the contents of an RichText field, any images contained within are returned with absolute width and height, which in turn breaks my responsive design. This happens even if I use the CKEditor as an input device and create the…
1
vote
2 answers

Can xpages display data similar to fraction format?

May I ask can xpages display data similar to fraction format? We have to develop a web application using domino designer version 8.5.2. One of our task is to display data in fraction format(or similar). Please imagine the following…
beginner
  • 192
  • 1
  • 1
  • 13
1
vote
1 answer

ViewNavigator on a FTSearched view; underlying mechanism

Database db = Factory.getSession().getCurrentDatabase(); View view = db.getView("people"); //Returns the total number of entries e.g. 100 System.out.println( view.getEntryCount() ); //Filters the view so it represents only those documents that…
Dalie
  • 626
  • 1
  • 7
  • 19
1
vote
0 answers

XPages typeahead: do like Google

UPDATE This is now what I have in my xpage:
Ben Dubuc
  • 523
  • 3
  • 14
1
vote
1 answer

infinite scrolling to repeat or views not working properly

I am using the "Simple custom control to add infinite scrolling to repeat or views" available as snippet on OpenNTF. This works but incorrect, this is what happens: When you reach the bottom of screen a pager control gets triggered and an AJAX call…
Patrick Kwinten
  • 1,988
  • 2
  • 14
  • 26
1
vote
2 answers

How to add 3rd party jar files on IBM xpages runtime on Bluemix

I am an Xpage developer new to Bluemix, trying to find a way to put 3rd party jar files on server. Tried the following ways: 1) Adding jar files inside the nsf under WebContent/WEB-INF/lib folder and configuring the build path. 2) Adding jar files…
1
vote
1 answer

How to prevent special characters input into Edit Box

I added validateConstraint module to my edit box and it works fine when you submit the form:
VladP
  • 881
  • 2
  • 13
  • 37