Schlagwort-Archive: Tipp

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

Quick-n-Dirty: Control Dojo generation for individual XPages

Another interesting question has been asked on stackoverflow.com: How to enable or disable the Dojo libraries for individual XPages, not the whole application? Just adding the parameter as shown below to the XPage won’t work: <xp:this.properties> <xp:parameter name=“xsp.client.script.libraries“ value=“none“ /> … Weiterlesen

Veröffentlicht unter ExtLib, Server, ServerSide JavaScript, XPages | Verschlagwortet mit , , , , , , , | 1 Kommentar

Quick-n-Dirty: A simple isRecycled() method (2)

Tommy Valand improved the idea: In his solution the isDead method of the NotesBase class is accessed, and this works better, because the method addionally checks for the C object handle. Here you can find the method: http://stackoverflow.com/questions/12740889/what-is-the-least-expensive-way-to-test-if-a-view-has-been-recycled Update: If you … Weiterlesen

Veröffentlicht unter Java, ServerSide JavaScript | Verschlagwortet mit , , , | 1 Kommentar

Quick-n-Dirty: A simple isRecycled() method

Update: Please read the second article – there you will find a better version. You will find that the domino java API does not have a suitable method to test if a domino object was already recycled or not. And … Weiterlesen

Veröffentlicht unter Java, ServerSide JavaScript | Verschlagwortet mit , , , | 7 Kommentare

Teamstudio Unplugged: SSJS & Error Messages

Today I had to fight with a mysterious error message in a XPage application which is running on Teamstudio Unplugged: SyntaxError: missing ; before statement This IS the message. No more information. No stack trace. No library name. Nothing! It … Weiterlesen

Veröffentlicht unter Errorhandling, Mobile, ServerSide JavaScript, XPages | Verschlagwortet mit , , , , , | 1 Kommentar

XPages: Capture Signatures with the jQuery-Plugin ‚jSignature‘

In one of my current projects it is one of the goals that the members of the field staff have the possibility to sign a report directly on their iPad. After some research I found the very cool jQuery plugin … Weiterlesen

Veröffentlicht unter Java, Java Script, Mobile, Web, XPages | Verschlagwortet mit , , , , , , , , , | 10 Kommentare

Quick-n-Dirty: Development Helper for Unplugged

I started today testing/evaluating Teamstudio Unplugged for a customer project. The first thing I missed during developement was a button to sync the current page directly to see my changes on the fly. That’s why I created this small custom … Weiterlesen

Veröffentlicht unter HTML, Java Script, Mobile | Verschlagwortet mit , , , , | Schreib einen Kommentar

XPages: High Performance Applications

During the last months I worked on a high performance XPages application used by a lot of end users.  To get a better data throughput, I decided to use a reverse proxy for load balancing, caching of ressources, SSL connections … Weiterlesen

Veröffentlicht unter Java, Java Script, Lotus Script, Performance, ServerSide JavaScript, Web, XPages | Verschlagwortet mit , , , , , , , , | 8 Kommentare

XPages: Lost in Translation

The localization feature is really nice and helps a lot, but you also can have some trouble using it. The first problem is that the language codes which are used in XPages are different from the language codes in java.util.Locale. … Weiterlesen

Veröffentlicht unter Allgemein, CSS, HTML, Java Script, Web, XPages | Verschlagwortet mit , , , , , , , | Schreib einen Kommentar

Quick-n-Dirty: @ClientType() in XPages

The @ClientType formula provides an interesting behaviour: If you add the value to a label, the result will be as expected. It returns “Web” in Browser and returns “Notes” in XPiNC. <?xml version=“1.0″ encoding=“UTF-8″?> <xp:view xmlns:xp=“http://www.ibm.com/xsp/core“> <xp:label value=“#{javascript:@ClientType()}“ id=“label1″ /> … Weiterlesen

Veröffentlicht unter @Formula, Allgemein, ServerSide JavaScript, Web, XPages | Verschlagwortet mit , , , , , | Schreib einen Kommentar