Java

Home » Java

When Does a Control That Has An Id, Not Have An Id?

As part of some work on XPages OpenLog Logger, I’m looking to not only log SSJS errors but also give the facility to push them to an Error control for the relevant component or an Errors control if they are not associated directly to a control. There have been a couple of challenges around this. […]

When Does a Control That Has An Id, Not Have An Id? Read More »

Java and Selections Part Six: Value Picker Solution Continued

In the previous part I created a ListPicker class that extends IValuePickerData and Serializable. The hasCapability() and getSourceLabels() methods that the IValuePickerData interface requires have been implemented and just return false. In addition to the default constructor public ListPicker(), I’ve created two more: public ListPicker(List<String>) and public ListPicker(Set<String>). Because I’ve just used the generic classes

Java and Selections Part Six: Value Picker Solution Continued Read More »

Java and Selections Part Five: Value Pickers Solution

So we’ve added our Value Picker to the XPage, bound the component to an Edit Box or Dojo List Text Box or some other control that’s bound to a field on a Notes Document or viewScope variable. Now we’re ready to go. A dataProvider for a Value Picker needs to implement the Java class com.ibm.xsp.extlib.component.picker.data.IValuePickerData (implement

Java and Selections Part Five: Value Pickers Solution Read More »

Java and Selections Part Four: Value Pickers Introduction

The Extension Library brings a new control to the party, the Value Picker. This gives the user an image or link that spawns a dialog from which they can select one or more options and even search for options. (The Value Picker itself doesn’t differentiate whether or not multiple items can be selected. That’s handled

Java and Selections Part Four: Value Pickers Introduction Read More »

Java and Selections Part Three: Core Controls and Sorted Lists

Ok. So we’ve seen we can pass a Vector or an ArrayList into a selectItems control for a Combo Box or Radio Button. And we’ve seen we can pass it via SSJS or EL (but EL is slightly more efficient). That’s all well and good if your options are already unique and already sorted. But

Java and Selections Part Three: Core Controls and Sorted Lists Read More »

org.openntf.domino – A New Hope for Java Developers

Yesterday marked the release of the first milestone of org.openntf.domino, a community-driven project with a number of goal: To make it quicker and easier to handle Domino objects. To avoid gotchas for new Java developers like recycle(). To give useful parameter names to all methods. To extend the packages with additional functionality. To implement best

org.openntf.domino – A New Hope for Java Developers Read More »

Beginners' Guide to the Java Debugger and Tips From Using It. And a Teaser

Declan Lynch has been writing a very comprehensive introduction to Java for XPages developers. I would strongly encourage it for any XPages developer. Like many Domino Developers, my Java experience was limited at best prior to XPages, but a knowledge of Java opens up a door to greater power. You can take advantage of managed

Beginners' Guide to the Java Debugger and Tips From Using It. And a Teaser Read More »

Scroll to Top