We recommend you populate drop-downs on startup, especially if they're going to be the same for all your users. We do this in StartupListener - which should be in your project if you've run full-source. If it's not, you should be able to copy this file into your project, change the package name (in web.xml as well) and customize it to your needs.
Matt On 9/18/07, p7k <[EMAIL PROTECTED]> wrote: > > Dear appfusers, > > I got to wondering what would be considered a best practice for populating > JSF SelectItems, say for drop-down menus. I use it with a globalSession > scope. > > Currently, I have a separate bean class that contains Maps of Label/Value > pairs. I prefer maps to Lists of SelectItem - seems less proprietary. This > works, but somehow begs for more elegance. > > But when I run jetty ... it teases me with something like "Populating > drop-downs ...". > > Is there some good place in appfuse to put this sort of thing? > > Just wondering. > -- > View this message in context: > http://www.nabble.com/Best-practices-for-populating-JSF-SelectItems-tf4472548s2369.html#a12752341 > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
