Archiv der Kategorie: XPages

XPages: WebContent Files (2) – Manipulate exitsting files using the Java NAPI

In this article, I will shortly give an overview how you can edit existing file from the WebContent folder (Don’t miss the first article on this topic). First, let’s create a view to display the design elements of the WebContent … Weiterlesen

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

XPages: WebContent Files (1) – Create a file using the Java NAPI

The great Marky Roden has written an interesting article about using the WebContent folder instead of standard domino design elements. To create or manipulate these files programmatically, you can use the Java NAPI. The first example demonstrates the creation of … Weiterlesen

Veröffentlicht unter Agenten, Java, XPages | Verschlagwortet mit , , , , , | 9 Kommentare

XPages: Running Google’s Chrome V8 Javascript Engine

After answering a question on Stackoverflow.com about the Prototype problematic in the XPages SSJS engine, I thought of running another Javascript engine on top of Domino. While you can use the JavaScripting API JSR223, I choosed the jav8 project for … Weiterlesen

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

XPages: Execute Events with HTTP Get

To execute an event on the server, you normally have to send a POST request, because actions will be executed in the Invoke Application phase of the JSF lifecycle. A GET request will only process the Restore View and the … Weiterlesen

Veröffentlicht unter Dojo Toolkit, Java, Java Script, JSF, Performance, XPages, XSP | Verschlagwortet mit , , , , , , , , , , | 2 Kommentare

The Voices Told Me To Do It!

1. „Create a new com.ibm.xsp.context.FacesContextExImpl!“ 2. „Add all required classed to the build path!“ 3. „Add a useless message to the constructor!“ 4. „BUILD IT!“ 5. „Open the original Jar!“ 6. „In WinRAR!“ 7. „Overwrite the existing classes!“ 8. „Quick! … Weiterlesen

Veröffentlicht unter Java, XPages | Verschlagwortet mit , , , , | 7 Kommentare

XPages: Create a Database without Template

On stackoverflow.com, an interessting topic was asked about how to create a notes database programmatically without using a template. The problem is, that it will not contain a Icon document. But in this document are all database properties stored. So … Weiterlesen

Veröffentlicht unter Java, XPages | Verschlagwortet mit , , , , , | 2 Kommentare

XPages: Bootstrap File Input

When using the default file upload control in a Bootstrap application, the default file upload button does not fit anymore to the design: To fix this issue, you can use a small jQuery plugin named Twitter Bootstrap File Input. When … Weiterlesen

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

XPages: Set a Theme for a single XPage

… or how you can use your own FacesContext implementation. What we need first is our own FacesContext implementation with new methods to set the StlyeKitId (which is the name of the Theme) for initializing the StyleKit instance: package ch.hasselba.xpages; … Weiterlesen

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

Quick-n-Dirty: A Hotfix for CKEditor 4

Russell Maher wrote a very interesting article about using CKEditor 4 in XPages, but the current solution requires to change to HTML files directly on the server. But with this little Hotfix you can use CKEditor form a NSF an … Weiterlesen

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

XPages: Use async / defer option for external CSJS Script Libraries

When adding CSJS libraries to your XPage, try to use the defer or the async option for a better user experience. When not using this options, the Page might be blocked during page load. Have a look at this example … Weiterlesen

Veröffentlicht unter HTML5, Java Script, Performance, Web, XPages | Verschlagwortet mit , , , , , , , , , | 1 Kommentar