Archiv der Kategorie: JSF

Quick-n-Dirty: Disable Validation for FileDownload control (2)

Because my old snippet does not work anymore for ND9 (the IBM changed the internal methods / objects) I had to create a new way to disable the validation of the FileDownload control. Now I have switched to a PhaseListener … Weiterlesen

Veröffentlicht unter Java, JSF, XPages | Verschlagwortet mit , , , , | Schreib einen Kommentar

XPages: Use a PhaseListener for global URL commands

One of my customers wanted an easy way for printing XPages in different formats and with different content, depending of the current XPage opened in the browser. It was a requirement to develope a global solution for every XPage-based application … Weiterlesen

Veröffentlicht unter Infrastruktur, Java, JSF, Web, XPages | Verschlagwortet mit , , , , , , , , , | 4 Kommentare

XPages: Create your own Required Validators

If you try to implement your own JSF Validator (by implementing javax.faces.validator.Validator), you will notice that you are unable to check for an empty value. The reason for this is rather simple: The method validate() is only called, if there … Weiterlesen

Veröffentlicht unter Java, JSF, ServerSide JavaScript, XPages | Verschlagwortet mit , , , , , , | 4 Kommentare

In Ya Facet!

Using Facets in XPages is very nice, because it gives you an easy way for a global design of your application (and much more). It can be used in all XPages and their custom controls. The xp:callback element defines a … Weiterlesen

Veröffentlicht unter Allgemein, JSF, XPages | Verschlagwortet mit , , | 4 Kommentare

A performance bottleneck?

Paul Withers wrote an very interesting article about the difference between a passthrough UIComponents and the corresponding XPages elements. This means the use of <br> instead a <xp:br>, or a <div> instead of a <xp:div>. A while ago I have … Weiterlesen

Veröffentlicht unter Allgemein, Java, JSF, Performance, ServerSide JavaScript, XPages | Verschlagwortet mit , , , , , | Schreib einen Kommentar

XPages: compositeData is undefined

An interesting question was asked on StackOverflow.com: The compositeData of custom control is undefined in beforeRenderResponse event. I have never noticed this before, but if you are accessing the compositeData object in the before-, afterRenderResponse or the afterRestoreView event, the … Weiterlesen

Veröffentlicht unter Java, JSF, ServerSide JavaScript, XPages | Verschlagwortet mit , , , , , , , | Schreib einen Kommentar

Quick-n-Dirty: Use your own Factory classes in XPages (2) – The VirtualPageTransformer

While playing a little bit with core XPages functionality I found the interesting VirtualPageTransformer interface. With this interface it is possible to implement „virtual“ XPages, and this allows to do something which can be described like an url mapping (the … Weiterlesen

Veröffentlicht unter Java, JSF, XPages | Verschlagwortet mit , , , , | 3 Kommentare

Quick-n-Dirty: Use your own Factory classes in XPages

Here is a easy way to use your own factory classes in XPages: 1. Create a file named „com.ibm.xsp.factories.properties“ in the WEB-INF-Folder of your NSF     2. In this file, define the factory classes you want to use in … Weiterlesen

Veröffentlicht unter Extensibility API, Java, JSF, Server, ServerSide JavaScript, XPages | Verschlagwortet mit , , , , , , , | 4 Kommentare

XPages: Run your own Servlets

A really interesting article about running your own servlets on domino server can be found here: http://www.ibm.com/developerworks/cn/lotus/xpage-servlet/index.html It’s chinese, but you can translate f.e. with Google’s Translator. With 8.5.3 I had have some problems because the required interface IServletFactory could … Weiterlesen

Veröffentlicht unter Extensibility API, Java, JSF, Server, Web, XPages | Verschlagwortet mit , , , , , , | 6 Kommentare

XPages application events: Create your own ApplicationListener (2)

There is another interface available which provides the additional method applicationRefreshed. This event is always raised if the method refresh() of the Application-Object is fired. Instead of implement the interface described in the previous posting, you have to use the … Weiterlesen

Veröffentlicht unter Extensibility API, Java, JSF, XPages | Verschlagwortet mit , , , , , , | 5 Kommentare