I have *SelectionItemProvider backing bean classes for each set of database objects which convert a list of database objects into arrays of SelectItems. Two methods for each, one of which adds a "<no selection>" null-capable line if the attribute is not mandatory. I automatically generate these backing beans and converters from my database model.
On 9/3/05, Werner Punz <[EMAIL PROTECTED]> wrote: > Mhh interesting... > > I am missing something here (I must admit I have not written too many > custom converters yet) > > how do you handle the problem that a selectone menu wants a Collection > of SelectItem > for the menu entries...? > > Werner > > > Werner Punz wrote: > > Mike Kienenberger wrote: > > > >> I find custom converters registered by class to be ideal for this > >> purpose. > >> It converts data between business object format and String (required > >> on the presentation side). > >> > > Not really totally feasable if you use a drop down box or another > > control which needs a key,value pair ;-) > > > > > >

