SSJS

Home » SSJS

SSJS Revisited: The Good, the Bad and the Ugly

It is a number of years now since I decided to commit to Java, for a number of reasons. The biggest were: lack of good compile-time validation, which meant it was possible to mistype a variable name or method name lack of templating, which meant constantly typing try/catch blocks difficulty troubleshooting – this was before …

SSJS Revisited: The Good, the Bad and the UglyRead More »

OpenNTF Domino API: New Release and Serializing Databases / Documents

Nathan has uploaded a new release of OpenNTF Domino API. There are a few significant differences in the upload this time. Firstly there is a separate install for Designer Client and Domino Server. That’s to minimise the footprint for the server. Those who have used M4.5 may have noticed the Javadoc support was lost, because …

OpenNTF Domino API: New Release and Serializing Databases / DocumentsRead More »

The Perils of getColumnValues().get(0)

Bill F posed a good question on StackOverflow about the issue of object.recycle and when to use it. It’s un understandable question and one I hit years ago after crashing a server looping through 20,000 documents in a search. I raised a PMR, got a response directing me to technotes on recycling in Java. Searching …

The Perils of getColumnValues().get(0)Read More »

Understanding SSJS

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 …

Understanding SSJSRead More »

XPages OpenLog Logger Project on OpenNTF

Late last night I released the XPages OpenLog Logger project on OpenNTF. There have been options for logging to OpenLog from XPages for some time – Matt White’s OpenLogXPages SSJS library from TaskJam and the OpenLogItem class I included in XPages Help Application. So why did I bother with this? Firstly, if you think this …

XPages OpenLog Logger Project on OpenNTFRead More »

A Couple of SSJS Usability Suggestions

I’ve recently been looking back at an application I added some XPages functionality into a while ago and realised there were a couple of Server-Side JavaScript tips I have not shared before. The first is actually unnecessary where I’ve used it. I think Tim Tripcony mentioned it and I started using it all over the …

A Couple of SSJS Usability SuggestionsRead More »

Combining $ and #: An Alternative Approach

Over the last couple of days there have been a few discussions about combining Compute on Page Load and Compute Dynamically. The full trails are below: Sven Hasselbach’s initial post My explanation of what’s happening in the source code and Java Sven Hasselbach’s response A possible alternative from Mark Roden Both make good points and …

Combining $ and #: An Alternative ApproachRead More »

XPages Bindings: When # Runs at Page Load

As developers get more comfortable with XPages, one of the steps is to start to using the Compute on Page Load option instead of the Compute Dynamically option for Server-Side JavaScript. But there are times when that can’t be done. I encountered this last week and it took a chat with Jeremy Hodge for me …

XPages Bindings: When # Runs at Page LoadRead More »