The resources in a ResourceBundle CAN be modified at runtime. A 
ResourceBundle's 'content' property is just an Object where you can store 
name/value pairs for resources such as

myBundle.content["foo"] = "bar";

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of tungchau81
Sent: Monday, November 30, 2009 2:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Is there any way to update Resource bundle 
dynamically?



About my question#2, since ResourceManger API does not provide a way to update 
resource bundle, is there anyway I can modify .properties files on the fly and 
then recompile the Resource Module .swf for the log-in user after he/she 
modifies the UI configuration?

Any advice is appreciated,
Tung Chau

--- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, 
"tungchau81" <tungcha...@...> wrote:
>
> Hi,
> In a new project, I am required to create customizable UI using Flex. The 
> application should allow each log-in user or customer to configure their own 
> labels, messages and icons. I have two questions:
>
> 1) I plan to load different ResourceModule for each log-in user. For example, 
> user1 will have user1Resource.swf loaded everytime he logs in into the 
> applicatio. user2 will have user2Resource.swf. Is this a good approach? Is 
> there any better way?
>
> 2) At run time, when a login user configures (through a UI) his/her own label 
> for a FormItem and hits save, I need to update the UI immediately with the 
> new label he/she entered. What would be a good solution for this? I looked at 
> ResourceManger API, but could not find any way to update Resource bundle 
> dynamically. Is there any way to update Resource bundle dynamically or is 
> there a different way to do the task?
>
> Thanks in advance,
> Tung Chau
>

Reply via email to