Skip to content

Tips & Tricks

XPages Performance: Dojo Widgets and Resource Aggregation

This time, I skip the "...after a loooong time..." and "...sorry for not blogging frequently..." stuff, and directly jumping into the topic :)

Lately, I have been working on developing my own extension library for different applications on a client. I started with putting a couple of Java libraries, utility objects and managed beans, but it evolved into a very cool project. I want to talk about it, but not now. Today, we will talk about a boring topic, Dojo.

In my plugin, I had one problem to solve. For my client, we have developed a set of databases that holds several different type of records about the internal processes. For more than 10 years, users get used to use specific UI patterns for these structures and some habits cannot be broken easily :)

XPages Tip: Realizing the Cost of a Value Binding...

A little tip on XPages development...

We are binding values everywhere on our pages. Are you optimizing the way you use them?

Basic value binding is straight forward. If you use a data source, scope variable or any other property/map/list object from your bean, etc, you are good. However if you 'compute' something to get a value, that computation has a processor and a memory cost.

Mini Patterns for XPages: Using Beans for Parent - Child Documents

After a looong time, I'm blogging XPages again :)

Last time, I was blogging about mini patterns (this and that). These are partly reusable design patterns for common cases.

Today I'd like to introduce a simple pattern which I have been using in a couple of applications. This is also an example how you get benefits from Managed Beans for specific purposes. Let's start.

Changing URL in File Download Control...

After a very long period of silence, here I am with a tiny little trick about File Download Control in XPages.

I saw that there are lots of questions about this component, related to showing attachments instead of downloading them. Instead of using Repeat controls to iterate within @AttachmentNames, I'm using the native download control with a little SSJS function to solve this problem.

Two critical HTTP problems in Domino 9...

After I upgraded my servers to Domino 9, I have found two problems affecting HTTP task.

1. Redirect TCP to SSL problem...

My HTTP task stopped responding just after the upgrade. When I look into thread logs I saw that it was redirecting every requests to the same URL! After a couple of tests, I found that if you have "Redirect TCP to SSL" checked in your Internet Site document, it fails with infinite redirection problem.

Experimenting DOTS task vs. Java Agent

DOTS (Domino OSGi Tasklet Service) project has been contributed into OpenNTF last year. Basically, it provides a way to create server tasks for Java developers.

This is huge. Basically we could run our Java code in a similar way with a couple of other techniques, but DOTS provide many advantages. I'll dive deep on this in a seperate blog post. For now, take it as a teaser :)