in the bean:
   _manyInitialValues = new ArrayList();
   _manyInitialValues.add("bean");
   _manyInitialValues.add("leaf");
   _manyInitialValues.add("orange");
   _manyInitialValues.add("moo");

in the template (xhtml / jsp(x)):

<tr:selectOrderShuttle id="manyShuttle"
                                    value="#{myBean.manyInitialValues}".....>

               <tr:selectItem label="coffee" value="bean"
shortDesc="Coffee from Kona"/>
               <f:selectItem itemLabel="tea" itemValue="leaf"
itemDescription="Tea from China"/>
               <tr:selectItem disabled="true" label="orange juice"
value="orange"/>
               <f:selectItem itemDisabled="true" itemLabel="wine"
itemValue="grape"/>
               <tr:selectItem label="milk" value="moo"/>
               <f:selectItems value="#{myBean.someOtherSelectItems}"/>
</tr:selectOrderShuttle>

On 7/5/07, Martin Ahrer <[EMAIL PROTECTED]> 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
--
View this message in context: 
http://www.nabble.com/-Trinidad--selectManyShuttle---not-showing-initially-selected-items-tf4029381.html#a11445472
Sent from the MyFaces - Users mailing list archive at Nabble.com.




--
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org

Reply via email to