O'Reilly logo

JSF 1.2 Components by Ian Hlavats

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Shuttling selections between lists

There are situations where users need to sort and manage items between two separate lists. For example, an e-commerce application for a computer hardware vendor might offer customers the ability to customize a system by selecting one or more components from a list of available hardware upgrades. The Trinidad framework includes two components that can be used to "shuttle" list items between two selection list boxes.

Rendering a multiple selection shuttle

The CoreSelectManyShuttle component is rendered by the<tr:selectManyShuttle> tag and allows users to move items back and forth between two lists, one item at a time or multiple items at a time.

<tr:form> <tr:selectManyShuttle id="shuttle" label="Selected Values" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required