I’m developing java EE database application(JSF) where I fill drop down menus from database. I looked for some tutorials and I find that they used the session bean to initialize these drop down values from database (using hibernate).As my application contains a lot of these is this a good strategy to fill values from database?
Is there any other approach to implement this? Is using backing bean for filling drop downs a good Idea?
Thanks all
Feras
I’d just load it in the constructor of an application scoped bean and use it to fill the dropdowns.
I would maybe add a background task to reload the data in the bean at certain intervals, e.g. daily, depending on how often the data will be updated.