Monthly Archives: June 2013

Using beans as validators in XPages

This article describes how you can create your custom validators by implementing javax.faces.validator.Validator interface. But one problem with this is that you need to create a separate Java class for each validation, for e.g. you would have individual Java classes for validating email, credit card number and so on. And for each Java class you have to add <validator>…</validator> entry in faces-config.xml.

Continue reading

Share:

Editing faces-config.xml with content assist in Domino Designer

Many a times while editing faces-config.xml I felt the need of content assist which could provide me with available tags and its attributes to ease development. JSF provides a DTD for faces-config.xml which can be used for this purpose.

Include this DOCTYPE in your faces-config.xml file

< !DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">

Continue reading

Share:

Using JSF Framework Development Standards for your XPages Project (Part Three: Creating the DAO)

In the previous installment of this series we described the object model that will be used to help illustrate the Model-View-Controller (MVC) architecture. Included in the article was an object diagram (not quite UML) which provided a representation of a very simple employee database application. To recap, the objects involved consist of:

Model Layer:

  • Employee object: This is our low level data. In Domino this comes from the data saved to a Domino employee document. In relational terms, this is a row of data.
  • DominoEmployeeDAO (implements EmployeeDAO) : A Data Access Object (DAO) which provides a concrete implementation of an interface to the Employee data for a Domino database.
    • DominoDB: These are the instructions for working with our Domino database. They are encapsulated by the DominoEmployeeDAO.
  • EmployeeCRUDFacade: The business logic of retrieving data from the system.

Continue reading

Share:

Speed up your development using Templates in Domino Designer

Eclipse provides a bevy of features which are available to us via Domino Designer. One of them is Templates. It allows us to insert commonly used code and easily customize them. So in your Java editor when you type while (and no space after that) then hit Ctrl+Space to bring up content assist it shows you sample code to iterate with enumeration, iterator or condition.

while content assist

Continue reading

Share:


Fatal error: Call to undefined function bccl_full_html_license() in /var/sites/p/pipalia.co.uk/public_html/wp-content/themes/pipalia-ltd/archive.php on line 57