selections tutorial

Home » selections tutorial

New Release of Extension Library, Including MapPicker and CollectionPicker

This week IBM released the twelfth 9.0.1 release of the Extension Library. It’s great to see the inclusion of mapValuePicker and collectionValuePicker tags. That has proved the completion of a journey almost two years in the making, since I first blogged a tutorial series on doing this, back in May 2013. At the time they …

New Release of Extension Library, Including MapPicker and CollectionPicker Read More »

Java and Selections Part Eight: Value Pickers With Label-Value Pairs

About six months ago I did a tutorial series on passing a List or Set into a Value Picker. That covered the scenario where the label and value are the same. Somewhat belatedly, I’m concluding the series with the code for passing in a Map – the scenario where the label and the value need …

Java and Selections Part Eight: Value Pickers With Label-Value Pairs Read More »

Java and Selections Part Seven: ArrayLists and Value Pickers Addendum

I blogged a few weeks ago about adding dataProviders for the Value Picker control. Following recent investigations, I managed to get an ArrayList as the source of a simpleValuePicker dataProvider. As I found out, it fails if the valueList property is computed on page load (i.e. “${…}”). The error thrown, if you investigate in FireBug, …

Java and Selections Part Seven: ArrayLists and Value Pickers Addendum 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 »

Java for Selections Part Two: Core Controls and Lists

So enough of the introduction, onto passing some Java to selectors. There are two types of Collections you may have – Lists and Maps. Lists just have values. Maps have keys and values. So if you want the label and the value to be the same, use a List. If you want a different label …

Java for Selections Part Two: Core Controls and Lists Read More »

Scroll to Top