Over the last week I've been rather busy including some XPages functionality in an existing Domino web application, and as an example I wanted to explain why I chose XPages, some steps I took and the ...
Method Parameters and The Importance of Final in Java
Thu, Mar 6th 2014 6:11a Paul Withers Most developers (certainly myself!) are lazy. We look to re-use code and write the briefest code we can.
Sometimes it backfires!
When writing a method, either in Java or LotusScript, we can often pass parameters around with little concern. I came across that some years ago with LotusScript when objects were being changed by a function when I didn’t intend that. That was when I learned that you could define a sub or function in two ways. So consider the following code:
Dim myStr as String
[read] Keywords: lotusscript
Speaking at Engage.ug
Tue, Mar 4th 2014 7:14a Paul Withers Two weeks from now I’ll be speaking at Engage.ug, along with a host of illustrious names from IBM and the community. I’ll be speaking with Martin Jinoch about the OpenNTF Domino API. After speaking on the API solo at various user groups and during speedgeeking at IBM Connect, it will be interesting to co-host the session with someone who consumes the API and has been very active in working on the Demo database and providing feedback on the API.
As ever, the material has been updated [read] Keywords: domino
XPages OpenLog Logger v4.0
Mon, Feb 10th 2014 4:11p Paul Withers I’ve just released a new version of XPages OpenLog Logger.
It’s predominantly a release to catch SSJS errors of classes NotesException and java.io.IOException, as well as wrapping processUncaughtException code in try/catch blocks, to capture any classes I haven’t come across yet. I and other developers have encountered these unexpected error class types when no try/catch has been added to your SSJS code.
One feature has been added. From OpenNTF Domino API I had a request to sup [read] Keywords: domino
Wed, Feb 5th 2014 3:11p Paul Withers There have been a few posts today on StackOverflow about SSJS being run when it’s not expected. I think a lot of that comes from a misunderstanding of what’s happening on the server.
Parsing of Values
Firstly, property values are just plain text.That’s reinforced if you look at the Java class for an XPage or Custom Control in Package Explorer, under Localxsp. For example, here’s a method that creates a Computed Field:
private UIComponent createText(FacesContext context,
[read] Keywords: domino
BP204: Slides and Demo Application
Fri, Jan 31st 2014 9:11p Paul Withers Here are the slides and demo app Mike McGarel and I used for our session on Tuesday, “It’s Not Infernal: Dante’s Nine Circles of XPages Heaven”.
Below is the link to a zip file containing the demo applications. The Infernotes.nsf version will work if you don’t have the OpenNTF Domino API. The one suffixed “OpenNTFDomino” requires the OpenNTF Domino API to be installed.
Infernotes Demo Application [read] Keywords: domino