I'm trying to populate a drop down list with a generic codes object where code is a entity object which has a description and type. The one requirement is that the drop down list is populated with codes filtered by a type. for example say there are two types of codes books and authors.
I want a drop down list that uses the codeslist but filters by type so on the book drop down only book description appears and on the author drop down only author descriptions appears. This is easy enough having two methods, but I rather have one method that recieves the type and filters accordingly, as a hundred types would mean 100 methods.
Put a valueChangeListener on dropdown 1 that filters the data for dropdown 2?