361 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
XPages: WebContent Files (3) – Create a Minimizer Servlet
Thu, Nov 27th 2014 86
XPages: WebContent Files (2) – Manipulate exitsting files using the Java NAPI
Wed, Nov 19th 2014 89
XPages: WebContent Files (1) – Create a file using the Java NAPI
Tue, Nov 18th 2014 86
XPages: Running Google’s Chrome V8 Javascript Engine
Sun, Nov 9th 2014 201
GDL, Streik & der deutsche Michel (2)
Fri, Nov 7th 2014 60
GDL, Streik & der deutsche Michel
Wed, Nov 5th 2014 96
Eine neue Zwiebelschicht
Thu, Oct 30th 2014 87
Top 10
XPages: Running Google’s Chrome V8 Javascript Engine
Sun, Nov 9th 2014 201
GDL, Streik & der deutsche Michel
Wed, Nov 5th 2014 96
XPages: WebContent Files (2) – Manipulate exitsting files using the Java NAPI
Wed, Nov 19th 2014 89
Eine neue Zwiebelschicht
Thu, Oct 30th 2014 87
XPages: WebContent Files (1) – Create a file using the Java NAPI
Tue, Nov 18th 2014 86
XPages: WebContent Files (3) – Create a Minimizer Servlet
Thu, Nov 27th 2014 86
Krautreporter sind online
Fri, Oct 24th 2014 85
GDL, Streik & der deutsche Michel (2)
Fri, Nov 7th 2014 60
Identifying Back Doors, Attack Points, and Surveillance Mechanisms in iOS Devices
Mon, Jul 21st 2014 56
MongoDB for Java Developers
Mon, Oct 6th 2014 39


Sven Hasselbach
 
Blog Title blog@hasselba.ch
Blog Description No blog description listed in the feed.
Blog URL http://blog.hasselba.ch
RSS Feed http://hasselba.ch/blog/?feed=rss2
PlanetLotus Feed http://planetlotus.org/profiles/rss/sven-hasselbach
Validate Feed feedvalidator.org or validator.w3.org
Feed Last Checked Nov 28, 2014 8:12:34 PM EST. Realtime Update:
Landed Here Nov 22, 2011
Location Wiesbaden, Hessen, Germany
Posts: # / 1st / Latest - -
Total Hits 1,551. myPL RSS Selections: 7


Recent Blog Posts
86


XPages: WebContent Files (3) – Create a Minimizer Servlet
Thu, Nov 27th 2014 1:25a   Sven Hasselbach
Because of Stefano Fois comment I decided to write an example about how to create a minimizer servlet for Domino which cmpresses JavaScript resources on the fly. This is, again, a simple Proof-Of-Concept, nothing more and nothing less. First, I downloaded the YUICompressor, a Java based minimizer for JavaScript code from the project page. There are other compressors outside, I decided to use this one because it was the first result in my StartPage.com search. The project is a single jar file [read] Keywords: domino ibm R6 xpages application database java javascript server
89


XPages: WebContent Files (2) – Manipulate exitsting files using the Java NAPI
Wed, Nov 19th 2014 8:54a   Sven Hasselbach
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 folder. To do this, I have an old school LotusScript Agent which updates the selection formula of a view (Some details about this technique can be found here). Sub Initialize     Dim session As New NotesSession     Dim doc As NotesDocument     D [read] Keywords: agent domino ibm ldd lotus lotusscript notes R8 xpages database java javascript properties server vm xml
86


XPages: WebContent Files (1) – Create a file using the Java NAPI
Tue, Nov 18th 2014 8:44a   Sven Hasselbach
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 a file using a Java Agent. Before you can compile the code, you have to import the required jars as described here. import lotus.domino.AgentBase; import com.ibm.designer.domino.napi.NotesConstants; import com.ibm.designer.domino.nap [read] Keywords: agent domino ibm lotus xpages application database java security
201


XPages: Running Google’s Chrome V8 Javascript Engine
Sun, Nov 9th 2014 6:38a   Sven Hasselbach
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 a test how this can be realized. So I downloaded the Windows binaries to get the required DLL and imported it into a new database. I also imported the source files of the lu.fler.script package to recompile all required classes. Then, I registered t [read] Keywords: domino ibm R4 xpages database google java javascript server xml
60


GDL, Streik & der deutsche Michel (2)
Fri, Nov 7th 2014 12:11p   Sven Hasselbach
Da ja der eine oder andere zürnt, der Streik würde tagtäglich “immensen volkswirtschaftlichen Schäden anrichten”, sollte sich vielleicht doch besser mal den Schaum vom Mund abwischen und die Zahlen mal in die passenden Relationen bringen: Jeder Streiktag kostet geschätzte 50 bis 100 Millionen Euro, je nachdem, wer da so gefragt wird. Die Lokführer müssten also mindestens ein halbes Jahr am Stück streiken, um den gleichen Schaden anzurichten, die uns die letzte Krise der WestL [read] Keywords:
96


GDL, Streik & der deutsche Michel
Wed, Nov 5th 2014 3:19a   Sven Hasselbach
Wenn ich mir die Kommentare in den unterschiedlichsten Foren rund um das Thema “GDL & Streik” durchlese, frage ich mich ernsthaft, in was für einem Land ich eigentlich lebe: Man ist ja viel gewohnt von den “Berufstrollen“, die sich den ganzen Tag den Lebensfrust von der Seele schreiben. Und man findet natürlich auch die eher zur Erheiterung beitragenden Formulierungen, wie zum Beispiel den, dass man “wegen dem Sch…ß Ossi nicht zu den Feierlichkeiten des [read] Keywords:




87


Eine neue Zwiebelschicht
Thu, Oct 30th 2014 4:04a   Sven Hasselbach
Es sind manchmal die kleinen Dinge, die einen auf die großen Probleme aufmerksam machen: Eine kleine, zusätzliche Bitte im “Projekt-Anbahnungsgespräch” zum Beispiel. Nichts wildes – nur eine freiwillige Angabe, die aber – wenn sie denn Schulung macht – in meinen Augen für alle IT Freiberufler in Deutschland dramatische Auswirkungen haben wird. Was war geschehen? Am gestrigen Tag habe ich eine Projektanfrage erhalten, die ich – wie immer – gerne bean [read] Keywords:
85


Krautreporter sind online
Fri, Oct 24th 2014 5:16a   Sven Hasselbach
Das Warten hat ein Ende! Mit dem heutigen Tag ist das Krautreporter-Projekt endlich online gegangen. Ich bin gespannt, was sich aus diesem Versuch alles entwickelt. Es ist erfrischend, das man beim Besuch der Seite nur auf einen einzigen Tracker stößt, und nicht wie bei manchen anderen Online-Magazinen die Ghostery-Warnungen die halbe Seite blockiert. [read] Keywords:
39


MongoDB for Java Developers
Mon, Oct 6th 2014 12:31p   Sven Hasselbach
Today I have got the confirmation for successfully completing the “MongoDB for Java Developers” course: [read] Keywords: java sap
28


XPages: Execute Events with HTTP Get
Tue, Sep 30th 2014 10:06a   Sven Hasselbach
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 Render Response phase, that why you can not execute an event with a GET request. But with the help of a PhaseListener, the execution can be done earlier in the Restore View phase: package ch.hasselba.xpages.util; import javax.faces.event.PhaseEvent; import javax.faces.event. [read] Keywords: ibm xpages application dojo java javascript server xml
8


Apple: Ganz großes Kino!
Tue, Sep 9th 2014 1:19p   Sven Hasselbach
[read] Keywords: apple
19


To Dump Or Not To Dump
Wed, Aug 13th 2014 1:05p   Sven Hasselbach
Die Firma GULP bietet ein neues “Feature”: Stundensätze der anderen Bewerber auf ein Projekt werden in 10-Euro Schritten gut sichtbar auf der Online-Bewerbungsseite angezeigt. Eine interessante Neuerung, denn letztlich fördert es den Wettbewerb, die Angebote der Anderen noch ein wenig zu unterbieten. Dumping at it’s best. Wenn ich mir allerdings den obigen Screenshot eines Projektes anschaue, sehe ich ein Angebot für 30€ oder weniger. Da frage ich mich schon, was diese [read] Keywords: domino ibm lotus notes
56


Identifying Back Doors, Attack Points, and Surveillance Mechanisms in iOS Devices
Mon, Jul 21st 2014 7:59a   Sven Hasselbach
Eine sehr interessante Präsentation von Jonathan Zdziarski: Overall, the otherwise great security of iOS has been compromised… by Apple… by design. Kommt mir irgendwie bekannt vor… [read] Keywords: lotus notes apple security
9


Ein bischen mehr Privatspähre
Mon, Jul 21st 2014 4:13a   Sven Hasselbach
Nach dem Post von Julian Buss habe ich seinen Hinweis auf die Suchmaschine startpage.com angenommen, und letze Woche die Umstellung vollzogen. Seit dem fehlt mir überraschenderweise nichts! Die Suchergebnisse stimmen, die Geschwindigkeit auch, und ich bemerke die Umstellung nur an dem anderen Seitenlayout. Anfangs war es etwas nervig, dass die Suchergebnisse allesamt per POST übertragen werden, und dadurch die Browser-Historie leidet, aber nachdem ich mal die Konfiguration angepasst hatte, lie [read] Keywords: roaming firefox google linux
8


Ich, der Extremist (3)
Thu, Jul 17th 2014 6:00a   Sven Hasselbach
Node Nr. 2 ist jetzt auch am laufen. Die nächste Node wird eine Exit-Node, doch nach den Auswüchsen der letzten Zeit werde ich diese wohl 100% Anonym betreiben. (Es dauert übrigens immer ein paar Tage, bis die “Endgeschwindigkeit” erreicht wird. Erst muss die Node als “Stable” eingestuft werden.) Wenn jemand interesse verspürt, ebenfalls eine Node zu betreiben, kann sich gerne bei mir melden, ich helfe gerne bei den unterschiedlichen Szenarien. Node Nr. 2 läuft zum [read] Keywords: atlas nd8 vm
6


Gauchogate
Wed, Jul 16th 2014 10:00a   Sven Hasselbach
Die Übersetzung des kleinen Liedchens findet sich hier: http://www.wm2014-in-brasilien.de/argentinien-invasion/7198/ [read] Keywords:
10


Stürmerfoul
Tue, Jul 15th 2014 6:49a   Sven Hasselbach
Es ist für mich durchaus nachvollziehbar, dass die Niederlage im WM-Finale die Argentinier geschockt hat, und nun jede erdenkliche Fehlentscheidung des Schiedsrichters als Begründung für das Scheitern herhalten muss. Auch kann ich es gut verstehen, dass man sich als unterlegene Mannschaft betrogen fühlt um den verdienten Erfolg, der dem eigenen Team durch eine krasse Fehlentscheidungen verwehrt wurde, wie z.B. der nicht gegebene Elfmeter im Spiel Argentinien – Iran. Doch eines muss man [read] Keywords: wiki
12


Brasilien
Sun, Jul 13th 2014 1:51a   Sven Hasselbach
Das war ja wohl nix: Mit 1:10 Tore in den letzten zwei Spielen und einer mehr als schlechten Vorstellung verabschiedet sich der WM Gastgeber vom Turnier. Und schon werden die ersten Stimmen laut, dass bei der WM 2018 in Russland alles besser werde. Ein Detail darf dabei nicht vergessen werden: Den Gastgeberbonus gibt diesmal nicht, und Brasilien muss durch die Qualifikation. 18 Spiele, in denen Mannschaften warten, die man nicht unterschätzen sollte. Es wird ein hartes Stück Arbeit, Tabula Ra [read] Keywords:
11


Leaving the Yellow Bubble
Thu, Jul 10th 2014 8:36a   Sven Hasselbach
A while ago I wrote an article about leaving leaving the Yellow Bubble. While I am still currently doing some IBM Notes Projects, there are more and more PHP Projects on my agenda (and some Java development too) . It takes some time to “transform” myself out of the IBM world, and this process won’t be finished in the next 12 monthes. During the last half year, I spent a lot of time to develop my personal project cyccle. While there was a lot of development work, most of the tim [read] Keywords: ibm notes development java
10


Karma
Thu, Jul 10th 2014 1:33a   Sven Hasselbach
Die Niederlande verlieren gegen Argentinien im Elfmeterschießen. Durch zwei vergebene Elfmeter. Da hatte der Fußballgott wohl ein Einsehen. [read] Keywords:
3


Ich, der Extremist (2)
Wed, Jul 9th 2014 6:43a   Sven Hasselbach
Da es Dinge gibt, die mich maßlos ärgern, ist Node Nr. 1 wieder aktiv: Die anderen Nodes werde ich auch wieder in Betrieb nehmen. [read] Keywords: atlas R6
3


TOR Projekt wegen Beihilfe verklagt
Wed, Jul 9th 2014 5:44a   Sven Hasselbach
In Texas wurde das TOR Projekt wegen Beihilfe verklagt. In der Klage wird dem TOR Projekt vorgeworfen, “privates” und “anonymes” Hosting zu betreiben, und damit zu werben, Kriminellen einen Unterschlupf zu bieten. Dadurch würde der Zugang zu einer dubiosen Pornoseite, die über das Onion-Netz bereit gestellt wird, ermöglicht. Hier die ganze Klageschrift Im Detail geht es darum, dass durch den Zugang mittels tor2web.org die Webseite auch außerhalb des Onion-Netztes er [read] Keywords:
13


Ich, der Extremist
Thu, Jul 3rd 2014 3:54p   Sven Hasselbach
Wie heute in den Medien zu lesen war, sind TOR Nutzer durch die NSA automatisch in einer Datenbank gelandet und als Extremisten “markiert” worden. Und Betreiber von TOR Nodes scheinen noch intensiver durchleuchtet und gezielt ausspioniert worden zu sein. Da ich selbst über Jahre hinweg einen größeren TOR Knoten in Betrieb hatte, kann ich mir also sicher sein, ebenfalls zu dem Personenkreis zu gehören, der eine höhere Aufmerksamkeit durch die US Amerikaner erfahren hat. Womit me [read] Keywords:
8


Österreich: Betrieb von TOR Nodes illegal
Wed, Jul 2nd 2014 5:57a   Sven Hasselbach
Am 30.06. wurde durch ein Präzedenzfall der Betrieb von TOR Nodes in Österreich praktisch für illegal erklärt: https://network23.org/blackoutaustria/2014/07/01/to-whom-it-my-concern/ Als Begründung für das Urteil diene §12 des StGB, so der Beklagte: Nicht nur der unmittelbare Täter begeht die strafbare Handlung, sondern auch jeder, der einen anderen dazu bestimmt, sie auszuführen, oder der sonst zu ihrer Ausführung beiträgt. Weder Staatsanwaltschaft noch der Beklagte werden das Urte [read] Keywords:
8


Yii Framework: Security Fix for Version 1.1.14
Tue, Jul 1st 2014 7:05a   Sven Hasselbach
A security fix for the Yii framework was released on 29th June: http://www.yiiframework.com/news/78/yii-1-1-15-is-released-security-fix/ The issue only affects the CDetailView component of Version 1.1.14, and can be upgraded safely without breaking existing code. [read] Keywords: security
9


Klinsmann
Mon, Jun 23rd 2014 3:53p   Sven Hasselbach
Wann immer ich Klinsmann im Fernsehen sehe, was aus gegebenem Anlass zur Zeit häufiger vorkommt, muss ich zwangsläufig an seinen Auftritt damals bei Günther Jauch denken, im Debüt der neuen ARD Talkshow am 11. September 2011. Denn dort erklärte er uns “den Amerikaner” und wie der so tickt: Das der zwar immer nach vorne schaue, und nicht nach hinten, doch in ständiger Angst lebe, seinen Job zu verlieren. Und keine Zeit hätte, sich mit Politik und Nachrichten tiefer zu bes [read] Keywords:
9


Verbrannte Erde
Sat, Jun 21st 2014 1:09p   Sven Hasselbach
Zwar hatte die NATO in dem von Ihrem Generalsekretär Anders Fogh Rasmussen selbst ausgearbeiten neuen Strategischem Konzept im Jahr 2010 beschlossen, die Zusammenarbeit mit Russland zu verbessern, doch mittlerweile scheint das etwas in Vergessenheit geraten zu sein. Denn die NATO warnt: Der Kreml verbreite nicht nur mit bezahlten Schreiberlingen Pro-Russische Propaganda in den sozialen Netzwerken, er unterwandere sogar die Fracking-Gegner, um die Abhängigkeit der EU von russischem Gas zu erha [read] Keywords: atlantic security wiki
5


Zum Fremdschämen
Fri, Jun 20th 2014 2:56a   Sven Hasselbach
In Wiesbaden kennt man Oliver D. und seine “Werke”, denn seit Jahren werden sämtliche freie Flächen wie Plakatwände, Liftfaßsäulen, Sicherungskästen und wo-halt-grade-Platz-ist von ihm mit Bibelsprüchen vollgeschmiert. Meist in schwarz, doch er hat auch immer passende Stifte in anderen Farben dabei. Auch für strukturierte Untergründe. Unter seinen Zitaten finden sich zahlreiche alttestamentarische Sprüche, gerne frauenfeindlich oder antisemitisch, was die Kirche gar nicht l [read] Keywords: wiki
8


Thema verfehlt. Setzen, Sechs!
Mon, Jun 16th 2014 2:49a   Sven Hasselbach
Der Philosoph Jörg Friedrich hat auf Heise “Stellung genommen” zu dem erfolgreichen Crowd-Funding der Krautreporter, doch leider hat er in seinem Kommentar irgendwie das Thema verfehlt: Keineswegs geht es um die Zeitung im Allgemeinen, und hätte er die Seite der Krautreporter etwas näher studiert, dann wäre ihm das wohl aufgefallen. Bevor er sich in seiner Abhandlung über die “Zeitung der Zukunft” vollkommen verliert, bemängelt er die fehlende Innovation des Projekt [read] Keywords: wiki
8


Krautreporter: Finanzierungsziel erreicht!
Fri, Jun 13th 2014 8:09a   Sven Hasselbach
Die Krautreporter haben es geschafft! Heute morgen fehlten noch über 1.500 Unterstützer, und ich hatte schon alle Hoffnung aufgegeben. Doch mittlerweile ist die 15.000er Marke geknackt. Und das acht Stunden vor Ablauf, an einem Freitag den 13ten. Ich hatte schon Angst, dass der Journalismus nun endgültig am Boden liegt, denn nachdem neben dem WM-Start das gestrige Thema des Tages Claus Klebers Twittererfolg war, ahnte ich nichts Gutes. Doch nun ist es, allen Unkenrufen zum Trotz, doch noc [read] Keywords: twitter
6


Die Spannung steigt!
Thu, Jun 12th 2014 3:18a   Sven Hasselbach
Nach langer Pause geht es endlich wieder los! Pünktlich zur WM werden wieder Gesetzesvorschläge eingebracht, die – während der deutsche Michel abgelenkt das Deutschlandfähnchen schwingt – in einer Geschwindigkeit verabschiedet werden, das einem beim Zusschauen schwindelig werden kann. Es ist schon erstaunlich, zu welchen Höchsteistungen die Regierungsparteien im Stande sind, wenn es keiner mitbekommen soll. Doch die Messlatte für neue Rekorde ist dieses Jahr recht hoch: Das Aus [read] Keywords:
5


Die NSA: Too big to comply
Wed, Jun 11th 2014 2:55a   Sven Hasselbach
Die Banken kamen mit dem “Too big too fail” durch, jetzt versucht es die NSA mit “Too big to comply“. Am Freitag erklärte die NSA dem Gericht: [A]ttempts to fully comply with the Court’s June 5 Order would be a massive and uncertain endeavor because the NSA may have to shut down all databases and systems that contain Section 702 information in an effort to comply. Tja, dann kann man da wohl nichts machen… [read] Keywords:
5


Swift vs. Objective-C: Benchmarks
Tue, Jun 10th 2014 10:38a   Sven Hasselbach
Here are some benchmarks comparing Swift and Objective-C: http://www.splasmata.com/?p=2798. These are just simple operations, no complex algorithms. But this unsettles me a little bit. Maybe I should wait a while before I begin to learn Swift. [read] Keywords:
6


Ab 13. Juni: Die neue EU-Verbraucherrechterichtlinie
Tue, Jun 10th 2014 3:29a   Sven Hasselbach
Onlineshopper und Shopbetreiber augepasst! Ab 13. Juni tritt die EU-Verbraucherrechterichtlinie in Kraft, und dadurch kann sich einiges ändern: Die wichtigste Änderung für die Kunden dürfte wohl der Wegfall der 40€-Grenze für die Übernahme der Rücksendekosten durch den Verkäufer sein. Grundsätzlich trägt also der Käufer von nun an die Rücksendekosten. Für Shopbetreiber gilt es, die neue Widerufsbelehrung mit all Ihren Ausprägungen fristgerecht in den AGBs eingepflegt zu haben, da [read] Keywords:
6


iOS 8 & die MAC Verschleierung: Einfach genial!
Mon, Jun 9th 2014 3:09p   Sven Hasselbach
Man muss es Apple lassen: Gute Ideen gehen Ihnen einfach nie aus. Mit iOS 8 wird ein neuen Feature zur MAC Adressen-Verschleierung eingeführt, wodurch Location Based Tracking praktisch unmöglich gemacht wird. Und gleichzeitig wurde mit iBeacon eine Technologie ins Leben gerufen, die eben genau das ermöglicht: Location Based Tracking, nur noch viel genauer, und mit einem deutlich erhöhten Funktionsumfang. So wird der Markt zukünftig von “Fremdanbietern” bereinigt, da deren bisher [read] Keywords: apple mac wiki
9


Tschüß RFC 2616! War nett mit Dir!
Sun, Jun 8th 2014 12:06p   Sven Hasselbach
Wie auf Heise berichtet, ist das RFC 2616 zu seinem 15ten Geburtstag in Rente geschickt worden, und sollte keine Verwendung mehr finden. Bei Fragen rund um die HTTP/1.1 Spezifikation gelten von nun an folgende RFCs: RFC7230 - HTTP/1.1: Message Syntax and Routing – low-level message parsing and connection management RFC7231 - HTTP/1.1: Semantics and Content – methods, status codes and headers RFC7232 - HTTP/1.1: Conditional Requests – e.g., If-Modified-Since RFC7233 - HTTP/ [read] Keywords:
7


Happy Birthday, BILDBlog!
Sat, Jun 7th 2014 8:58a   Sven Hasselbach
Gestern hat das BILDBlog seinen 10ten Geburtstag gefeiert. Herzlichen Glückwunsch! Und vielen Dank für die gute Arbeit! Nicht vergessen: Das BILDBlog kann man jederzeit ein wenig unter die Arme greifen. [read] Keywords:
11


XPages & Angular.js: AngScope for Firebug
Fri, Jun 6th 2014 1:40a   Sven Hasselbach
AngScope is a “Simple Firebug extension that allows you to inspect the AngularJS scope that a DOM element binds to.” Just do a right click on the DOM element you want to inspect and select “Inspect Angular Scope“: This gives you a direct access to all elements of the scopes of your Angular.js application: [read] Keywords: R7 R8 xpages application firefox
7


XPages & Angular.js: Accessing Rich Text (1)
Thu, Jun 5th 2014 4:16p   Sven Hasselbach
If you want to access Rich Text with Angular.js, an easy way to get the content is to use a XPage as handler and grab the content of a XspInputRichText component. The component does all required steps automatically (f.e. it detaches all embedded images to disc and cleans up the temporary files later) and returns the complete HTML of the Rich Text item. For the conversion I have created a small java helper class: package ch.hasselba.xpages.util; import javax.faces.context.FacesContext; import [read] Keywords: ibm R4 R5 rich text richtext xpages application interface java javascript xml
8


Krautreporter: Jetzt auch mit PayPal bezahlbar
Thu, Jun 5th 2014 11:54a   Sven Hasselbach
Die Krautreporter können jetzt auch per PayPal unterstüzt werden. Siehe dazu: http://blog.krautreporter.de/post/ab-sofort-krautreporter-per-paypal-unterstuetzen/ [read] Keywords:
8


WordPress 3.9.1: Fix für Bug mit Copy & Paste von Bildern aus Zwischenablage
Thu, Jun 5th 2014 11:50a   Sven Hasselbach
Um das Problem zu beheben, muss der Konfigurationsparameter paste_data_images für den TinyMCE Editor auf true gesetzt werden. Dazu kann man folgendes tun: In der Datei /wp-includes/class-wp-editor.php folgende Zeile ergänzen: init["paste_data_images"] = true; Zu finden ist die richtige Stelle dafür in diesem Code-Block (ca. Zeile 1135): ..... /** * Fires after tinymce.js is loaded, but before any TinyMCE editor * instances are created. * * @since 3.9.0 * * @param array $mce_setting [read] Keywords: admin ajax bug javascript wiki
4


WordPress 3.9.1: Bug mit Copy & Paste von Bildern aus Zwischenablage
Thu, Jun 5th 2014 6:07a   Sven Hasselbach
Anscheinden hat das heutige Update des Blog eines meiner liebsten Features gekillt: Das direkte Copy & Pasten von Bildern aus der Zwischenablage geht nicht mehr. Tolle Sache. Siehe dazu: https://core.trac.wordpress.org/ticket/27970 [read] Keywords: bug
6


The Voices Told Me To Do It!
Wed, Jun 4th 2014 6:32a   Sven Hasselbach
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!” [read] Keywords: ibm R6 server
9


Krautreporter: Nur noch 9 Tage
Wed, Jun 4th 2014 3:39a   Sven Hasselbach
Zur Zeit läuft ein Experiment namens “Krautreporter“: Ein Versuch, eine neue Form des Onlinejournalismus zu etablieren und dessen derzeit desolaten Zustand zu sanieren. Vielleicht sogar ein bisschen Rebellion gegen die bestehenden Strukturen im Verlagswesen, indem die Unabhängigkeit von Journalisten wieder etwas hergestellt wird. 15.000 Unterstützer müssen monatlich 5 € investieren, um ein werbefreies und qualitativ anspruchsvolles Onlinemagazin zu finanzieren. Ohne die ständi [read] Keywords:
7


XPages & Angular.js: Fileuploads
Mon, Jun 2nd 2014 1:27p   Sven Hasselbach
When using Angular.js you sooner or later want to upload a file to your Domino server. But to do this, you not only need some nice looking frontend, you also need some code in the backend. For the frontend you can use one of the already exsiting modules which are available for Angular.js, for example the angular-file-upload. For a quick start, I have choosen to modify the provided Simple example. After stripping down the example files (just saved the whole website with Firefox), you can import a [read] Keywords: domino ibm lotus R6 richtext xpages application database firefox java javascript server vm xml
12


XPages: Create a Database without Template
Fri, May 30th 2014 3:14a   Sven Hasselbach
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 the question is: How can you create this document? Jesse Gallagher came up with the idea to use the DXL import and create the Icon document this way, which works fine. But the next problem is, that there is no ACL note in the database and no defaul [read] Keywords: acl domino dxl ibm lotus notes xpages database java javascript properties server xml
6


You might not need jQuery
Thu, May 8th 2014 3:42a   Sven Hasselbach
I have found a very interesting website: You might not need jQuery. It contains a lot of usefull solutions for the different IE versions. [read] Keywords: java
5


Problems with Handles: When the same document is not the same
Thu, Apr 24th 2014 8:43a   Sven Hasselbach
Disclaimer: This will work in Java, SSJS and Lotus Script. When opening the same document from the same database in different instances, and then recycle one of them, the other documents will be recycled too, because the handle to the underlying C object are the same. This SSJS example…                                          … fails, because docOther is recycled too. But if you open the database dbOther after initializing the database obj [read] Keywords: ibm lotus database java javascript server xml
10


XPages: Bootstrap File Input
Wed, Mar 26th 2014 5:16a   Sven Hasselbach
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 this plugin is added to your XPage, the button will look like this: To initialize the jQuery plugin, you have to call it with a selector which selects all DOM elements of type file: The description of the button can be changed by setting the title attr [read] Keywords: xpages application css java twitter
5


XPages: A Bootstrap Skin for CKEditor
Mon, Mar 17th 2014 7:59a   Sven Hasselbach
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 one of your applications, you have to import the unzipped files into your NSF… … and add your “own” declaration of a xspCKEditor instance: This is required to remove an URL parameter, which is added automa [read] Keywords: ibm R8 richtext xpages applications dojo java widget
6


Quick-n-Dirty: Use “isDocEditable” in an old school Java Agent
Fri, Mar 14th 2014 4:40a   Sven Hasselbach
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 agent. Then, you have to call XSPNative.isDocEditable with the document you want to test: import lotus.domino.AgentBase; import lotus.domino.Database; import lotus.domino.Document; import lotus.domino.Session; import com.ibm.domino.napi.c.xsp.XSPNative; public class JavaAgent exte [read] Keywords: agent domino ibm lotus database java
7


XPages: Set a Theme for a single XPage
Fri, Mar 14th 2014 4:00a   Sven Hasselbach
… 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; import javax.faces.context.FacesContext; import com.ibm.xsp.application.ApplicationExImpl; import com.ibm.xsp.context.FacesContextExImpl; import com.ibm.xsp.stylekit.StyleKit; /**  * ThemeSwitcherFacesContext  * allows to sw [read] Keywords: domino ibm xpages application database java javascript security xml
3


Quick-nDirty: A Hotfix for CKEditor4
Mon, Mar 10th 2014 1:01p   Sven Hasselbach
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 don’t need to change the HTML files on the domino server: 1. Switch to package explorer perspective 2. Open the file ckeditor.js 3. Search for the variable timestamp… 4. …and remove the 4 characters 5. Save it. That’s it! Now, CKEditor 4 can be [read] Keywords: domino xpages java server
5


XPages: Use async / defer option for external CSJS Script Libraries
Mon, Mar 10th 2014 6:56a   Sven Hasselbach
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 XPage which contains two external CSJS scripts (for demonstration purposes they are computed to get a remote script out of nowhere): Foo! Bar! When opening the XPage, the DOM is blocked, until the operation times out: The best you can do i [read] Keywords: ibm xpages javascript xml
4


XPages: Add an attribute to the BODY-Element
Sun, Mar 9th 2014 8:22a   Sven Hasselbach
Today I wanted to add an attribute to the element of my XPage. My goal was to generate HTML code like this: After some testing I found a solution by overwriting the method encodeHtmlBodyStart. To do this, you have to extend the class ViewRootRendererEx2: package ch.hasselba.xpages; import java.io.IOException; import javax.faces.context.FacesContext; import javax.faces.context.ResponseWriter; import com.ibm.xsp.component.UIViewRootEx; import com.ibm.xsp.renderkit.html_basic.ViewRootRende [read] Keywords: ibm xpages java xml
6


XPages: Use a Method Binding as Converter
Sat, Mar 8th 2014 3:17a   Sven Hasselbach
I accidentally found a way to add a method binding as a converter to a component, because I have added a managed bean as a converter directly in the source code. The DDE does not support this. If you go to the converter property of a component, you can only add one of the predefined converters: But you can go to the source and add a method binding to the option, in this case my bean which implements my converter functionality. If you now reopen the saved XPage, the converter property is fille [read] Keywords: xpages
7


XPages: Optimized Partial Refreshs (2)
Fri, Mar 7th 2014 9:11a   Sven Hasselbach
With the Optimized Partial Refresh you can do a lot of nice things: If only a part of the form is sent to the server, only this part of the components in the JSF component tree will be processed. This means that only submitted values are applied, coverted and validated, which can result in less server usage and a better performance. Normally, if you have two required fields on you XPage and do a Partial Refresh, both fields will have a validation error: But with this technique, you can choose w [read] Keywords: ibm xpages dojo server xml
8


XPages: Optimized Partial Refreshs
Fri, Mar 7th 2014 3:58a   Sven Hasselbach
Inspired by the last post of Mark, I have created a small CSJS snippet which allows to optimize the behaviour of a Partial Refresh. Normally, if you execute a Partial Refresh, all elements of a form are sent to the server. Take a look at this XPage:                                                                                      The button refreshes only a small portion of the XPa [read] Keywords: ibm xpages dojo java javascript server vm xml
3


XPages: SSJS & How you can have fun at the office
Tue, Mar 4th 2014 2:20a   Sven Hasselbach
This article is a demonstration of what harmful things you can do when using the SSJS & prototyping wrong( decribed here by the great Mark Roden). Don’t do that! Especially not on a productive server!   Wanna have a lot of fun in the office with the other developers? Just overwrite some global SSJS functionality! They will never find out what happend to their applications! This is the application we destroy Our demonstration application uses a small Java class which has only a singl [read] Keywords: ibm R5 R6 xpages application applications java javascript office server xml
8


XPages: Events, ActionListeners & Parameters
Sun, Mar 2nd 2014 4:21a   Sven Hasselbach
To access the event parameters of an event within your actionListener, you have to access the source object of your actionEvent object: package ch.hasselba.xpages; import java.util.List; import javax.faces.event.AbortProcessingException; import javax.faces.event.ActionEvent; import com.ibm.xsp.complex.Parameter; import com.ibm.xsp.component.xp.XspEventHandler; public class MyActionListener implements javax.faces.event.ActionListener {     public void processAction(ActionEvent eve [read] Keywords: ibm xpages java javascript xml
4


Quick-n-Dirty: Disable Validation for FileDownload control (2)
Wed, Feb 19th 2014 2:36p   Sven Hasselbach
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 which waits for to any XspEventHandler and checks if this event handler is a child of the FileDownload control. If so, it skips the validation. Here is the code for the PhaseListener: package ch.hasselba.xpages; import java.util.Iterator; import java.util.Map; import jav [read] Keywords: ibm R5 R6 xpages java vm xml
9


Quick-n-Dirty: Use “Old-School” Javacode in your XPages-Application
Thu, Feb 13th 2014 4:06p   Sven Hasselbach
Because I often have read that it is not possible to access “Old School” Java elements in XPages, but never understood the reason why, I have written my own class loader for fun to demonstrate how to do this: 1. I have created a simple Java library: 2. The library contains a single class “LoadedClass“: The class is very simple. When it is instantiated, it just prompts the current timestamp to the server console: package ch.hasselba.test; public class LoadedClass { [read] Keywords: domino ibm lotus R4 xpages application database java javascript properties server xml
8


XPages: Modify the File Selection Button
Fri, Jan 24th 2014 4:21a   Sven Hasselbach
With Dojo, you can easily customize the file upload button, f.e. to change the label, add additional style sheets or use HTML5 or Flash plugin for uploading. Here is basic example which adds a label and a blue border around the button:                                                                                          Have a look at dojox.form.Uploader for more details. [read] Keywords: ibm xpages dojo xml
7


Quick-n-Dirty: How to use the NAPI in a Java Agent
Thu, Jan 23rd 2014 3:32a   Sven Hasselbach
The undocumented NAPI for direct API calls in Java can easily used in normal agents. You just need to add two jar files to your java agent: lwpd.commons.jar lwpd.domino.napi.jar These files can be found in osgisharedeclipseplugins. After importing, you do lot of funny things, f.e. opening a Session in Full Administration Mode, etc. NotesSession nSession = new NotesSession(); nSession.setFullAdminMode( "SERVERNAME", true ); But don’t forget: These calls are native API calls and can ea [read] Keywords: administration agent domino notes eclipse java
8


Das Unitymedia-Fiasko
Tue, Jan 14th 2014 3:55p   Sven Hasselbach
Es begann im Frühjahr 2013, als der bestehende DSL-Vertrag in meinem damaligen Büro auslief, und ich – in weiser Vorraussicht, demnächst in meinem Haus Kabelanschluss zu benötigen – vorübergehend in mein Büro einen Internetanschluss von Unitymedia legen ließ. Da ich bisher keine Berührungspunkte mit Unitymedia hatte und Telefon sowie HD-Fernsehen haben wollte, kam mir das 3play Angebot gerade recht: 100 Mbit Down / 2,5 Mbit Up, Telefon-Flat, und “demnächst” dann [read] Keywords: email
8


Java: Reflection Madness
Mon, Jan 13th 2014 2:51p   Sven Hasselbach
A very interesting presentation about reflection in Java: Reflection Madness from Heinz Kabutz. You can find the slides here. [read] Keywords: java
5


A productive period: cyccle.net
Fri, Jan 10th 2014 6:57a   Sven Hasselbach
During the last weeks I started to think about my next steps leaving the yellow bubble. While I am still inside the bubble (and available for developement work, just contact me), I am in a very productive period: I continued to finalize the cyccle project. I started the development in 2012, but had a lot of breaks and was unable to finish the work. But in the next weeks, I am launching a new company and the beta phase will begin. Stay tuned… [read] Keywords: development
4


So Long, and Thanks For All the Fish
Tue, Oct 22nd 2013 10:28a   Sven Hasselbach
During the last three months I searched for a new project. I hoped to obtain a larger XPages development project. But in short, there are no projects. Even „normal“ Lotus Notes development projects does not exist anymore, or are extremly rare (and you don’t want to know their daily rates…). It is the same procedure as every year. But it’s getting harder. Year by year. In the last years, I always hoped that Lotus Notes is not dead. But the tribal wisdom of the Dakota Indians [read] Keywords: ibm lotus notes xpages development
5


Quick-n-Dirty: Ajax Fileuploads
Mon, Sep 9th 2013 1:42p   Sven Hasselbach
Here is an example how to upload a file with Ajax to a XPage. It is a simple Javascript, and adds the required fields to the xhr request. This example works in FireFox and Chrome and should work on Domino >=8.5.2.                                                                                                                                    The fileupload control execute [read] Keywords: domino ibm R7 ajax dojo firefox javascript server xml
4


XPages: File downloads and blocked UI
Wed, Jul 24th 2013 1:26p   Sven Hasselbach
Yesterday Christian asked a very interesting question: He had observed that the browser UI is blocked when clicking a button which generates a PDF on the server and sends the result. For about 30 seconds no button is working, no events are fired. My first thought was that this behaviour is caused by the submit locking during partial refreshs, and after testing a XSP.allowSubmit() in the debug console I could prove myself that I was right. It looked first like an easy solution, but after thinking [read] Keywords: ibm xpages ajax application archive dojo java javascript server xml
6


Quick-n-Dirty: Upgrading XPiNC / XULRunner
Wed, Jul 17th 2013 3:41p   Sven Hasselbach
I have tested a small upgrade of XULRunner (the internal browser used for XPiNC applications) and successfully changed the version from 1.9.2.10 to 1.9.2.28 in DDE 8.5.3 and 9.0. Version 1.9.2.10 was released on 15.10.2010 Release Notes for Firefox 3.6.10 Version 1.9.2.28 was released on 13.03.2012 Release Notes for Firefox 3.6.28 To do this by your own you have process the following steps: Close Notes and Designer completly Download the package for your platform from mozilla.org Extract the [read] Keywords: ibm notes applications eclipse firefox wiki
14


The Haunted Field
Wed, Jul 17th 2013 11:52a   Sven Hasselbach
I am currently working on a huge application which exists for many years now, and has a long history with different developers and just a few manuals and/or documentations. But as often it is a critical business application which is in use across different countries 24/7. The more danger, the more less honor: Every fault is just a further nail in the coffin of the developer… Today I had to develop an extension for this application, and this has driven me crazy, because it was a pain to ide [read] Keywords: agent ibm application xml
6


XPages: Use a PhaseListener for global URL commands
Thu, Jul 11th 2013 2:56p   Sven Hasselbach
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 in his company. That is why I created a global Java class which does not require to modify the existing applications at all. But it allows to customize and configure the output for the different needs of the departments and their required reports and pr [read] Keywords: xpages application applications java server xml
8


XPages: Create your own Required Validators
Thu, Jun 20th 2013 3:30p   Sven Hasselbach
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 is something to do. If the value is empty, there is nothing to do, that’s why nothing happens. But wait! What about the available required validator for XPages?       And yes, this is a validator, but the IBM implemented a workaroun [read] Keywords: ibm xpages bug interface javascript oracle xml
3


XPages: Dojo 1.8.1 & jQuery Mobile 1.3.1
Thu, Apr 25th 2013 10:46a   Sven Hasselbach
As David Leedy got into trouble with Dojo 1.8.1 and jQuery Mobile 1.3.1  and after reading the follow up from Ulrich Krause with the analysis of the problem, I thought that this problem is caused from the AMD loader of Dojo. That’s why I changed the loading order (by forcing the jQuery libraries to get loaded before Dojo), and this seems to work. I have tested it in IE 8, FF 20.0 and Chrome 26.0. Here is my test XPage:                                       [read] Keywords: domino ibm xpages css dojo java javascript mobile properties xml
4


Quick-n-Dirty: Dojo 1.8 & Domino 8.5.3
Thu, Apr 25th 2013 3:53a   Sven Hasselbach
If you want to use Dojo 1.8 with Domino 8.5.3, you can do the following: 1. Grab the Dojo JAR file from a ND9 installation: osgisharedeclipsepluginscom.ibm.xsp.dojo_9.0.0.jar 2. Create a folder “dojo-1.8.0” in your notes data directory dominojsdojo-1.8.0 3. Unpack the JAR file 4. Copy the content of the subfolder resourcesdojo-version of the unpacked JAR file in this folder: 5. Restart HTTP task. 6. Enjoy!     document.write(dojo.version)           P.S. Keep in mi [read] Keywords: domino ibm notes dojo eclipse javascript oracle xml
7


XPages: Add inline CSJS with a Theme
Thu, Apr 18th 2013 12:06p   Sven Hasselbach
I needed a way to add some inline CSJS to an existing application which affects any XPage, that’s why I did this them with a theme. Et voilà:                          alert('THEME JS!')             true              The javascript code is added and executed as expected: [read] Keywords: R6 xpages application java javascript
3


XPages: Inject CSJS code at page top
Tue, Apr 9th 2013 3:05a   Sven Hasselbach
Sometimes it is required to add a some CSJS code at the beginning of the XPage before the Dojo libaries are loaded and are executed. This can be easily achieved by using the resource aggregation feature and including a CSJS library with the . First you have to create a CSJS library which contains the code you want to execute: Then you have to add the which loads the CSJS library:                                                          [read] Keywords: ibm R6 xpages application dojo javascript properties xml
5


Notes 9: Some interesting xsp.properties
Wed, Apr 3rd 2013 2:22p   Sven Hasselbach
Some interesting new xsp.properties were introduced with Notes 9: xsp.client.resources.uncompressed When set to true, all Dojo libraries and CSS resources where delivered in the uncompressed version. The path changes f.e. to /xsp/.ibmxspres/dojoroot-1.8.1-u/dojo/dojo.js. xsp.client.script.dojo.html5attr When set to true, the Dojo HTML5 Data attribute is added to all Dojo component on the XPages. Here is an example for a Date/Time field: xsp.radiobuttongroup.item.label.prefixSpace When set [read] Keywords: ibm notes xpages css dojo properties widget
3


Notes 9: No Comment!
Tue, Mar 26th 2013 1:15p   Sven Hasselbach
[read] Keywords: notes
4


Quick-n-Dirty: How to add HTML 5 events
Tue, Mar 26th 2013 5:13a   Sven Hasselbach
One way for adding unsupported events to an XPage or a component is the trick from Keith. But this is limited to CSJS only. If you need to execute a server side event, you just need change the name of the event to a new HTML 5 event name which does not exist in the DDE. Here is an example for the new onSearch event:                                                                       After entering a value and hitti [read] Keywords: ibm bes javascript server xml
1


In Ya Facet!
Wed, Feb 20th 2013 6:27a   Sven Hasselbach
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 section, and this section can be filled in by the parent component with the xp:key attribute. Take a look at this custom control: It has a single callback area (I will never understand why it is called “Editable Area” in the DDE), and a xp:text which is filled [read] Keywords: ibm xpages application javascript properties xml
4


A performance bottleneck?
Sun, Feb 17th 2013 7:17a   Sven Hasselbach
Paul Withers wrote an very interesting article about the difference between a passthrough UIComponents and the corresponding XPages elements. This means the use of instead a , or a instead of a . A while ago I have tested if this would affect the performance, and as far as I know it makes no difference. Here is the code I used to test the performance: Test with a Open the page Partial Refresh Test with [read] Keywords: ibm xpages java javascript xml
5


XPages: The Problem with DataContext Variables
Mon, Feb 11th 2013 5:40a   Sven Hasselbach
There is a large problem with data context variables if they are bound dynamically. They will be recomputed again and again, even when in Partial Execution mode and if they are not in use. Here is a small demo XPage: If you are open the XPage, a dataContext variable will be recalculated for three times: Clicking on the button will recalculate them up to eleven times: Keep in mind: Partial Refresh & Partial Execution is enabled. T [read] Keywords: ibm R7 xpages java javascript xml
3


Quick-n-Dirty: Disable all validators at once
Sun, Feb 10th 2013 7:47a   Sven Hasselbach
In a larger project there are a lot of forms to fill in, each form has many fields with validators and converters. During the development of the workflow it was really helpful to disable all validators at once by using the setDisableValidators() method of the facesContext. To control the behaviour I have added an URL parameter which is checked in the afterRestoreView event. If you open the XPage in the format http://hostname/db.nsf/xPage.xsp?noValidators=true all validators and converters will b [read] Keywords: ibm development javascript xml
4


XPages: compositeData is undefined
Sun, Feb 10th 2013 3:50a   Sven Hasselbach
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 object is undefined. Here is a simple demonstration CC which just prints the type of the compositeData object to the console:                                          [read] Keywords: ibm xpages javascript xml
6


Quick-n-Dirty: Import SSJS libraries with DXL
Thu, Jan 10th 2013 3:02p   Sven Hasselbach
In the last time I have developed different techniques for manipulation the design elements of XPages applications. While I am still working on a way for manipulating the localization files, I was playing a little bit with DXL imports. Here comes a Java class to import a SSJS library with DXL to a database. It allows to create a new library directly from the browser: By clicking the Import button the new Library will be added to your database (perhaps you have to refresh the DDE): To use the [read] Keywords: acl dxl ibm lotus R6 scriptlibrary xpages applications database java javascript security xml
4


XPages: UI for editing localization files (1)
Mon, Dec 17th 2012 12:39p   Sven Hasselbach
For one of my customers I am developing an easy way for editing the localization/translation of existing XPages applications: Instead of importing and exporting the property files with the Domino Designer (which is not an option for non-developers) it would be more suitable, if the users would have the possibility to edit the files directly in the browser. I am currently  working on a XPage solution for this, and this is my current beta version. This is a proof-of-concept with some known bugs, [read] Keywords: domino ibm lotus notes xpages application applications database java javascript openntf properties xml
5


XSnippets: viewPanelHelper
Wed, Nov 28th 2012 2:40a   Sven Hasselbach
I have added a new XSnippet, the viewPanelHelper. The code helps to keep the selection of the selected documents in a view panel even if pager is used or categories are expand or collapsed. It is not required to modify the view: Only the script and the hidden field must be added to the facets section of the panel and the CSJS class “viewPanelHelper” must be added to the XPage (the class is loaded only once and can be stored in a separate CSJS resource file). The selected documents ar [read] Keywords: openntf
2


XPiNC and Attachments: A better PDF handling
Thu, Nov 15th 2012 2:11p   Sven Hasselbach
For one of my customers I have created a small XPiNC application with contains a lot of documents with attached PDFs. One of the key requirements was the posibility to open and read a PDF directly in Notes Client, without storing it on the desktop. The first thing to know is that XPiNC applications are running in XULRunner, which means that there is a compatibility to Firefox. That’s why you can use FF plugins*, for example the Foxit Reader plugin (npFoxitReaderPlugin.dll) or the original [read] Keywords: domino ibm lotus notes notes client R4 R7 xpages application applications desktop eclipse firefox java javascript vm wiki xml
5


XPages: Disable iOS “autocorrect” and “autocapitalize” features
Wed, Oct 31st 2012 3:48a   Sven Hasselbach
Two of the worst features ever implemented are the “autocapitalize” and “autocorrect” features from iOS devices, because they are enabled by default. It does not make fun to write a blog comment in another language… Or if you just want to enter your email address in a form: The first letter is always upper case, and you always have to kill the suggestion while writing some text. To disable this behaviour, you have to add two attributes to the components, autocorrect [read] Keywords: domino ibm xpages apple application email
1


Quick-n-Dirty: Use your own Factory classes in XPages(2) – The VirtualPageTransformer
Wed, Oct 24th 2012 5:43a   Sven Hasselbach
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 $$OpenDominoDocument.xsp url for example was implemented this way). To do create your own transformations you have to do the following: 1. Read the first article about using Factory classes in XPages and create the required /W [read] Keywords: ibm xpages database interface java properties
4


Quick-n-Dirty: Disable Validation for FileDownload control
Wed, Oct 24th 2012 3:12a   Sven Hasselbach
If you are using the file download control,  you sooner or later want to allow your users to delete an existing file. But if you have some required fields on your XPage, a deletion is not possible because the validation is always fired before the attachment is removed. To disable to validation you can use this little SSJS snippet which sets the “disableValidators” property for all events of the UIFileDownload control. Just add the following code to the beforeRenderResponse event o [read] Keywords: ibm java javascript
6


Quick-n-Dirty: Non Closable Dialog for ExtLib
Fri, Oct 19th 2012 2:53a   Sven Hasselbach
I have created a dirty hack for dialogs which prevents users to close the dialog by pressing the escape key or the close button. In my first approach  (StackOverflow.com)the hack has overwritten all dialogs for the whole XPage. This version allows to enable / disable it per dialog. To use this hack you have to add the CSJS library to your XPage and call the dialog with an additional parameter ‘nonclosable‘: XSP.openDialog("#{id:dialogNonClosable}", {'nonClosable': true } ); The [read] Keywords: ibm dojo xml
2


Quick-n-Dirty: Use your own Factory classes in XPages
Thu, Oct 18th 2012 5:27a   Sven Hasselbach
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 the format= HelloWorldFactory=ch.hasselba.factory.HelloWorld 3. Create a java class, in this example ch.hasselba.factory.HelloWorld package ch.hasselba.factory; public class HelloWorld {    public HelloWorld(){       System.out.println("Hello World Fa [read] Keywords: domino ibm lotus xpages application java javascript properties server xml
2


Quick-n-Dirty: Controlling Dojo generation for individual XPages
Wed, Oct 17th 2012 2:29a   Sven Hasselbach
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: The workaround is to add a single line to beforePageLoad or beforeRenderResponse event: facesContext.getRequestParameters().setJsLibrary(0); The parameter can be set as the following “0″ disables Dojo Framework “1″ enables Dojo Framwork [read] Keywords: traveler xpages application dojo javascript properties
6


Quick-n-Dirty: A simple isRecycled() method (2)
Thu, Oct 11th 2012 3:20a   Sven Hasselbach
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 [read] Keywords: domino lotus notes
1


Quick-n-Dirty: A simple isRecycled() method
Wed, Oct 10th 2012 3:24a   Sven Hasselbach
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 because of the internal caching of some method calls it is not reliable to check for example for a specific property with a try/catch block. But domino objects have a private property isdeleted which is transient and gives us the required information. With Java Reflection it is possible to access this property: package ch.hasselba.domino; import java.lang.reflect. [read] Keywords: agent domino lotus xpages database java oracle
6


Teamstudio Unplugged: SSJS & Error Messages
Fri, Sep 28th 2012 5:06a   Sven Hasselbach
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 was a hard piece of work to find the needle in the haystack: I used the synchronized keyword in a SSJS library. Hope in future Teamstudio will provide better error informations… [read] Keywords: application
5


XPages: Capture Signatures with the jQuery-Plugin ‘jSignature’
Wed, Sep 26th 2012 12:35a   Sven Hasselbach
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 jSignature, which easily allows to add a signature capture field to a XPage. The plugin is very easy to use: Just add a to your XPage and initialize the plugin with the .jSignature() constructor and that’s it! The API is very simple, but provides everything needed: The captured signatu [read] Keywords: agent ibm notes xpages css database javascript openntf wiki xml




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition