xPages API - your good friend ...

David Marko  15 May 2011 17:58:19
As xPages developer you should really appreciate accessible xPages API. Its realy nice overview of xPages internals at least. You can find many nice utils, that mostly work as static shortcuts to many other objects.  

http://public.dhe.ibm.com/software/dw/lotus/Domino-Designer/JavaDocs/XPagesExtAPI/8.5.2/index.html

Some interesting helper classes mostly with easily accessible static methods ... are available for you. Just mentioning a few:

com.ibm.xsp.model.domino.DominoUtils
### the good set of very common static methods like getCurrentSession(), getDocumentById(), getFilePath() available from syntax:
DominoUtils.getCurrentSession()

com.ibm.commons.util.StringUtil
com.ibm.commons.util.PathUtil
### these can be a 'lite' alternative to Apache Commons class. But here I would definitely recommend Apache Commons http://commons.apache.org/ especialy 'Lang' subproject.

com.ibm.xsp.util.FacesUtil
com.ibm.xsp.util.HtmlUtil
### many nice helper methods as this one: FacesUtil.addErrorMessage(java.lang.String summary, java.lang.String detail)

Image:xPages API - your good friend ...
Comments

1Miroslav Navratil  16.05.2011 19:49:26  xPages API - your good friend ...

Thanks for the tip. I've already started developing helper classes on my own and now it seems that I do not need them any more. Great!

TOPlist