This content has been marked as final.
Show 3 replies
-
1. Re: best practice for populating combos
jacob.orshalick Nov 7, 2007 12:47 PM (in response to lsabin)Depends on what you mean by loading once. If you mean loading once for the entire application (which I have used in several instances) the following will work:
@Factory(value="myListBox", scope=ScopeType.APPLICATION) public Map<String, BigDecimal> getMyListBox() { // the following log will only occur once since application scoped log.info("Loading myListBox..."); // perform loading of Map into myMap return myMap; }
Otherwise simply change the ScopeType accordingly. -
2. Re: best practice for populating combos
lsabin Nov 7, 2007 1:04 PM (in response to lsabin)Thanks for your reply.
I tried your solution but when I end my conversation and I begin a new one my dropdown is not empty but when the action (associated with the onchange event) is triggered I get the error : (value is not valid).
The onchange event is included in a <a4j:support>. -
3. Re: best practice for populating combos
jacob.orshalick Nov 7, 2007 1:12 PM (in response to lsabin)If you include your stacktrace and the snippet of the page where you use the variable, it will be easier to identify the issue.