myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Byrne" <den...@dbyrne.net>
Subject Re: Any suggestions in configure several DB static lists in application scope
Date Sun, 01 Jan 2006 17:59:50 GMT
One more thing, the Map can be the managed bean itself, or, it can be injected into another
managed bean via managed properties. 

>-----Original Message-----
>From: Emily Gu [mailto:e2005g@gmail.com]
>Sent: Sunday, January 1, 2006 01:18 AM
>To: 'MyFaces Discussion'
>Subject: Re: Any suggestions in configure several DB static lists in application scope
>
>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 <e2005g@gmail.com> 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 <dennis@dbyrne.net> 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:e2005g@gmail.com]
>> > >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!!
>> > >
>> >
>> >
>> >
>>
>



Mime
View raw message