Thanks Mr. D. (whatever it means
:-) ), great explanation, now it looks simple to use. It would have been hard to derive it from provided docs. Now the missing parts are the usage of filter and footer facets. The former "places a filter above the list in the leading container", whatever this means (sounds a bit recursive). The latter - well I don't understand why that component should provide me with space for a button "below each of the lists". Doing what ? I can place anything below those lists (as trailing component), and still wire it to the ShuttleProxy js methods for cross-operations. -- Renzo D. Cardon wrote: Renzo, Sorry about that last post--I accidentally sent it before I was done...Anyway, let me send the real message: In order to populate the list of selectable items from your backing bean, you can use: <f:selectItems value="#{backingBean.shuttleItems} /> The backingBean object should have a 'getShuttleItems' accessor, which returns a: SelectItem[]. Each select item may be an object-label pair, so there's where you store your object reference. The value of the shuttle component is an array of the objects (those which appear in the object label pairs) that are currently selected (on the right side of the shuttle). For example, suppose the component on the page looks like this: <tr:selectManyShuttle value="#{backingBean.selectedShuttleItems}"> <f:selectItems value="#{backingBean.shuttleItems}" /> </tr:selectManyShuttle> ...and our backing bean looks like this: (BackingBean.java) ... // // The list of selected items that should appear in // the shuttle component. // Gizmo [] itemList = null; // // Returns the current selected objects. // Gizmo [] getSelectedShuttleItems() { } // // // ... public SelectItem[] getShuttleItems() { SelectItem[] shuttleItems = new SelectItem[ 3 ]; shuttleItems[ 0 ] = new SelectItem( } If you bind the shuttle component to a variable in the backing bean, that component's value will be an array of objects. For example, if getShuttleItems returns an array of SelectItems, each Renzo, It's possible to achieve all of the behavior that you describe without resorting to _javascript_.In order to populate the list of selectable itemsfromyour backing bean, you can use:<f:selectItems value="#{backingBean.shuttleItems} />The backingBean object should have a'getShuttleItems'accessor, which returns a: SelectItem[]. Eachselectitem may be an object-label pair, so there's whereyoustore your object reference. For example: (BackingBean.java) ... // // // Gizmo ... public SelectItem[] getShuttleItems() { SelectItem[] shuttleItems = new SelectItem[ 3 ]; shuttleItems[ 0 ] = new SelectItem( } If you bind the shuttle component to a variable inthebacking bean, that component's value will be anarrayof objects. For example, if getShuttleItems returns an array of SelectItems, eachHi, I'm about to use these components, and I'm abitconfused about their documentation. Included demos provide list contents through tr:selectItem children. At the same time, I noticed that contents can beget/setthrough the "value" attribute. Can anybody enlight such usage ? Is there anyotherpublic demo/example around ? I also noticed that provided documentation referstothe chance of using generic objects as list elements. This would be >veryuseful to append further properties to list elements, to be managedbyfooter widgets using provided js hooks on current selection. Buttheoverall subject is somewhat obscure. Furthermore, I noticed that lists are alwaysprovidedon the left container only, where used has to move elements rightwards. But I think that common usage would start having some elements already on the right list (update mode). Is there any way to achivethisinitial setup - or do I need to preprocess by means of js and ahidden"init" list? Thanks -- Renzo__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
- RE: Table Auto Submit Mark Emeny
- Re: Table Auto Submit Adam Winer
- Re: Table Auto Submit Adam Winer
- RE: Table Auto Submit Mark Emeny
- RE: Table Auto Submit Mark Emeny
- Re: Table Auto Submit Adam Winer
- RE: Table Auto Submit Mark Emeny
- RE: Table Auto Submit Mark Emeny
- Re: Table Auto Submit Adam Winer
- Re: [Trinidad] about usage of SelectManyShuttle/SelectOrde... D. Cardon
- Re: [Trinidad] about usage of SelectManyShuttle/SelectOrde... Renzo Tomaselli
- Re: [Trinidad] about usage of SelectManyShuttle/SelectOrde... D. Cardon
- Re: [Trinidad] about usage of SelectManyShuttle/SelectOrde... Renzo Tomaselli
- Re: Table Auto Submit Adam Winer
- RE: Table Auto Submit Mark Emeny