Hello all, I've been looking at the Select and Option components, and I have a question. In their current form for what are they good for? >From my point of view their are not very useful. In the API docs it states: "Implements a component that manages an HTML <select> form element. The most common situation, using a <select> to set a specific property of some object, is best handled using a PropertySelection component." Why the extra pain of messing with PropertySelection/IPropertySelectionModel in the most common scenario? Maybe the Select component should behave more like the ForEach component in the sense that it should have a source parameter. I'm thinking of a select component with the following parameters. dataSource -> Iterator;Collection;java.lang.Object[] :: The source of objects to be iterated (in) boundValue -> java.lang.Object :: The option value (?) displayValue -> java.lang.Object :: The display value (?) multiple -> Boolean :: if true the component renders as listbox else renders as dropdonwlistbox (in) optionItems -> Collection :: Collection of selected items, in case of multiple choice. (out) selectedIndex -> int :: Index of selected item (out) selectedElement -> String :: Value of selected item (out) If the Select component is wrapped by a Body and/or Form Component then it should also be possible to use this parameters. (some javascript magic would have to be performed) autoSubmit -> Boolean :: Submits to the server automatically when the user changes the list selection. (in) onIndexChange -> Listener :: Notify a listener (in) Yes Howard, I know what your thinking: "I'm not your fu#!~*g code monkey, if you want that, YOU do it", And your right of course. Maybe when I grow up, for now I can only whine. Best regards, Luis Neves ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek PC Mods, Computing goodies, cases & more http://thinkgeek.com/sf _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
