Populate your drop-downs with listeners and allow for refreshing
                    
            Most webapps have drop-downs (a.k.a. pick lists) that users select from when filling in forms.  Spring has a nice referenceData method on its Controllers that you can use to populate these, but I prefer a different way.  In AppFuse, I populate these using a ServletContextListener.  However, one of the problems with using this is that your drop-downs won't get refreshed unless you have admins screens or a way to reload the attributes set in the listener.
In short, I think it's a good idea to load drop-down options in a listener and also have an action or servlet to refresh these options.  For examples, see StartupListener.java and ReloadAction.java.  Got a better way?  I'm interested...
                        


Posted by Jason Boutwell on April 30, 2004 at 12:01 AM MDT #
.V
Posted by VIc on April 30, 2004 at 04:39 PM MDT #
Posted by Nobody Important on April 30, 2004 at 07:46 PM MDT #
Posted by Eric Hauser on August 04, 2004 at 10:08 PM MDT #