Hi Martin,
Your groupController.groupItems must return array of any objects (for
example Object[]) but groupController.groupSelectItems must return array
of javax.faces.model.SelectItem (SelectItem[]).
Create SelectItem item as new SelectItem(object, label) where "object"
must be reference (not clone) to one item from selectManyShuttle value
array (ex. Object[2]).
For me this works,
Peter
Martin Ahrer wrote:
I'm trying to show a selectManyShuttle with initially selected items (this is
the right item box of the shuttle).
In my backing bean the property groupSelectItems holds all objects available
for the shuttle (as list of SelectItem wrapping an item), property
groupItems holds all of the initally selected items (as simple list of
items)
<tr:selectManyShuttle id="shuttle2" leadingHeader="Unlinked"
trailingHeader="Linked" value="#{groupController.groupItems}" >
<f:selectItems value="#{groupController.groupSelectItems}" />
</tr:selectManyShuttle>
when initially displaying the shuttle the right side remains empty - I'd
expect to see the items from #{groupController.groupItems}! The left side
shows all of the elements from #{groupController.groupSelectItems}.
Would appreciate any help with that! Thanks Martin