After googing it, I think I know how to do it. The value of the map-entry can refer to the backing bean property, I can define the map-entry in application scope.
 
Thanks!

 
On 12/31/05, Emily Gu <[EMAIL PROTECTED]> wrote:
Thanks for your quick reply, Dennis!! Happy New Year!!
 
Yeah, it can be out in a map. From what you said, my map-entries ot list-entries in faces-config.xml reference to a managed bean which is calling DB to get the lists? If I put the reference in the faces-config and defined as the application scope, will the managed bean get called automatically to get its initial values or I will have to do it in setter?
 
Thanks!!

 
On 12/31/05, Dennis Byrne <[EMAIL PROTECTED] > wrote:
Can this info be stored in a Map ?  If so, create a managed bean of type java.util.HashMap .  Hit google for <map-entries> .  Should be pretty easy.  There is also <list-entries> .

>-----Original Message-----
>From: Emily Gu [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, December 31, 2005 11:15 PM
>To: users@myfaces.apache.org
>Subject: Any suggestions in configure several DB static lists in application scope
>
>Hi,
>
>  We have several database lists that aren't changed. I would like to put
>them into the application scope. How to do it in the faces-config.xml? Any
>suggestions?
>
>Thanks!!
>




Reply via email to