|Latest 7 Posts
| Bundle Inspector – Diagnosing XPages Plugin Resolution problems|
Wed, Aug 2nd 2017 3
| Swiper Official Version 2 Release|
Fri, Jul 21st 2017 6
| Auto-width Bootstrap Column XPages Controls|
Tue, Mar 21st 2017 4
| Swiper FP8 Version Beta Release|
Thu, Mar 16th 2017 6
| Swiper FP8 Integration Rollout|
Wed, Mar 8th 2017 4
| Markdown XPages UIControl|
Sun, Mar 5th 2017 5
| TextDiff XPages control – For visual comparison of text|
Tue, Feb 28th 2017 3
| Pasting Images into XPages CKEditor|
Sun, Feb 12th 2017 13
| Preventing Pasting of Images in CKEditor|
Mon, Nov 14th 2016 9
| Build System for XPages and OSGi plugins|
Fri, Aug 8th 2014 8
| Email Address Validator for XPages|
Wed, Feb 11th 2015 8
| My Slides from AUSLUG 2016 Presentations|
Fri, Apr 15th 2016 8
| Inspect Component Properties using Component Binding|
Tue, Mar 8th 2016 7
| Extended Messages Control available as an XspLibrary|
Tue, Jul 12th 2016 7
| Preventing pasting of remotely hosted images in CKEditor|
Mon, Nov 14th 2016 7
| XPages webmail – Using Mime Inspector to debug Mime|
Tue, Feb 14th 2017 7
| Select Bootstrap Themes from Drop-down|
Fri, Jul 11th 2014 6
||Review: JRebel with Domino OSGi development
Last year I finally figured out how to use JRebel with Domino, and I posted a how-to video. I thought I would do a quick follow up to say how it’s going.
It is going great! I can’t imagine giving back my JRebel license. I have gone entire days without restarting my http server.
If you are only developing xpages from within an NSF, and don’t do any OSGi plugin development, then you really don’t have much need for JRebel. But if you are involved in any OSGi Library development and in particular UI Component development, then I would recommended fighting tooth and nail to get yourself a JRebel licence.
I have done a bunch of UIComponent development in the last few months and I would have to say, that it would have probably just given up on it all if I didn’t have JRebel, as there is lots of small changes that would be so painful if it required me to restart all the time, especially when it is just a typo or an incorrectly sized array!
A couple of points
Static instances and inner classes
There are some things that JRebel can’t reload on the fly, thankfully it is only occasionally that you come across this, JRebel will say something like “Couldn’t load <blah blah> because something about static things” in the domino console.
Java Security Settings
When trying to do certain things JRebel can causes a AccessControlException error due to the java security settings. You can get around this by putting your **development** server into ‘AllPermissions’ mode.
e.g. putting this entry in a java.pol file in the domino/jvm/lib/security/ directory
This is not a perfect situation as it probably won’t mirror the settings on your Production server, and it might mask another AccessControlException that could be triggered by some other part of the code you are running.
Theoretically it should be possible to write a Java Security entry that specifically covers JRebel but on both occassions that I tried this I failed so I decided just to put it the dev server in ‘all permissions’ mode and then turn this off when I want to test anything special that could cause AccessControlException’s e.g. reflection / use of 3rd party libraries.
Video Correction / Clarification
In the how-to video, I mention that I don’t think the REBEL.base config is that important. However it is important.
When you start your Domino Server, the Rebel Base directory will be different, depending on whether you start your server as a regular application or Start it as a service.
You don’t have to specify the rebel.base location, but if you leave it blank, just know that JRebel will determine this directory based on whatever user account launches the server.
So if you launch as a service, it will use the HOME directory of whatever user is set to launch the service (perhaps Administrator?), or if you start as application, it will use your own HOME directory.
Sep 05, 2016
| Recent Blog Posts
Bundle Inspector – Diagnosing XPages Plugin Resolution problems|
Wed, Aug 2nd 2017 12:26p Cameron Gregor
A common task with XPages development is to installing some plugins that provide additional functionality.
If you do any plugin development of your own, you end up doing this task a lot more as you create new plugins, install new versions etc.
It is also common to encounter some problems after installing plugins to your Domino Server! Maybe your expected plugin doesn’t load up at all? maybe the wrong version is loading?
The standard method of diagnosing these problems is to use the OSGi c
Swiper Official Version 2 Release|
Fri, Jul 21st 2017 1:52p Cameron Gregor
So I have finally posted Swiper version 2 to OpenNTF! (and Github of course)
Swiper OpenNTF Project Page
Swiper Github Releases
The latest version is 2.0.1, and is the same as 2.0.0beta but with a bug fix for the toolbar buttons.
Swiper 2.0.0 beta has been available on the Github project site for a few months, and the core functionality of it works as planned. There was however a bug within the shortcut buttons that I added to the menu bar, and this is a bit of a nasty bug that can cause del
Auto-width Bootstrap Column XPages Controls|
Tue, Mar 21st 2017 1:13p Cameron Gregor
I’ve been stuck working with OneUI Version 3 for the past couple of years, due to a regretful decision made at the beginning of my major project. OneUI was better than nothing but very frustrating at times.
Finally, I have moved on to my next project and I am now using bootstrap (version 3)
A common task when laying out a page using bootstrap is to divide sections up into rows and columns, and use the appropriate css styles to do so. I’m going to assume you are familiar with bo
Swiper FP8 Version Beta Release|
Thu, Mar 16th 2017 12:50p Cameron Gregor
Last week I released the ‘alpha’ version of Swiper which was untested on FP8 but presumed to be ok. So far I have only had good reports from the pioneers who have gone ahead and installed FP8 + the alpha version.
I have since managed to ugrade my home office setup to FP8 which unfortunately has broken my ability to launch designer from eclipse but I am seeking some advice on fixing this up.
In the meantime I have to test the slow way of building plugins, import plugins, restart R
Swiper FP8 Integration Rollout|
Wed, Mar 8th 2017 12:43p Cameron Gregor
Notes Domino 9.0.1 FP8 is finally here and as far as I know (I have yet to download it) it includes the necessary changes which will allow Swiper to swipe whatever it wants, whenever it wants, which is good news for people who don’t like to have ‘Build Automatically’ turned on.
Plan of Attack for release of Swiper version 2.0.0
So, I haven’t actually downloaded FP8 yet, so I can’t say for sure that the updated version works perfectly. Here is a bit of backgrou
Markdown XPages UIControl|
Sun, Mar 5th 2017 11:44a Cameron Gregor
Often when I’m designing an xpage, there might be a section of the page in which I want to explain some instructions to the user. Some options here are to:
write the Instructions using html and embed directly in the xpage markup
write the Instructions directly in the design pane and format using designer’s ui e.g. bold, color, size etc
use some native xpage controls to achieve the desired result.
Write the instructions in a richtext field on a notes document that is loaded to dis
TextDiff XPages control – For visual comparison of text|
Tue, Feb 28th 2017 12:00p Cameron Gregor
A few years back I stumbled across Google’s diff-match-patch project which provides some handy algorithms for text manipulation. At the time of discovery I was doing ‘classic’ notes development. Although I probably could have implemented something that worked in lotuscript with RichText or Mime, it wasn’t a priority at the time and I never bothered.
Since then, I have been doing mainly XPages, and now that I have been also doing a bit of XPages Control development. I was
XPages webmail – Using Mime Inspector to debug Mime|
Tue, Feb 14th 2017 11:12a Cameron Gregor
In a previous post in this series I did a bit of an overview on how MIME works. We also did a little bit about how MIME works in XPages + Domino land. With this knowledge in hand we can now start to analyse the different ways a ‘Pretty words, pictures and attachments’ can be stored in the document.
During development of the ‘XPages Webmail’ interface, I encountered many problems which could only be solved by investigating the MIME content in detail.
To help me do this, I
Pasting Images into XPages CKEditor|
Sun, Feb 12th 2017 10:00p Cameron Gregor
Programs like ‘Snipping Tool’ on Windows, are super useful for users to make a quick snapshot, do some quick markup on the image, paste into chat/email and send.
Unfortunately when using the default configuration of CKEditor in XPages (the inputRichText control), support for pasting images is not available for all browsers, and even for the ones that do support it, the images are only pasted as a PNG data URI. I have explained data URI images in a previous post, so check that out if
Preventing pasting of remotely hosted images in CKEditor|
Mon, Nov 14th 2016 11:21p Cameron Gregor
In the previous post, I showed how to prevent a user from pasting Images from the Clipboard into CKEditor. This post is of a similar nature but is designed to ensure that users don’t paste images with URLs to external / internal applications.
This post is part of my XPages webmail tips series, and addresses a problem where, a user copies and pastes some HTML that includes images, from a webpage and pastes it into CKEditor for a message that is then sent via email. The recipient is then una