Schlagwort-Archive: 9.0

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: A Bootstrap Skin for CKEditor

I have found a very nice skin for CKEditor, the “BootstrapCK-Skin”. It gives a bootstrap look and feel to the Editor: The dialogs are also skinned: You can find and download the skin here http://kunstmaan.github.io/BootstrapCK-Skin/ To use the skin in … Weiterlesen

Veröffentlicht unter Java Script, Web, XSP | Verschlagwortet mit , , , | 4 Kommentare

Quick-n-Dirty: Use „isDocEditable“ in an old school Java Agent

If you want to check if a document is editable, you can do this in an old school Java agent with the NAPI function isDocEditable provided by the XSPNative class. First you have to add the required JARs to your … Weiterlesen

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

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