Re: [flexcoders] how to localize pageTitle

2009-02-10 Thread Haykel BEN JEMIA
If I'm right, the pageTitle property is set during compilation in the html
wrapper and it has no effect when set on runtime. You will have to use
JavaScript for this. Override the resourcesChanged() method and call a
JavaScript function which will set the window's title. Here you will find an
example how to do it:

http://livedocs.adobe.com/flex/3/html/passingarguments_4.html

Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com




On Tue, Feb 10, 2009 at 3:08 PM, Gautam P p.gau...@gmail.com wrote:

   Hi,

 Following is the code I tried out:

 mx:Application pageTitle={resourceManager.getString('AppMessages',
 'GREETING')} xmlns:mx=http://www.adobe.com/2006/mxml;
 mx:Metadata
 [ResourceBundle(AppMessages)]
 /mx:Metadata


 I am not able to localize the application's pageTitle property string. Also
 the documentation says we can't use actionscript to update this property.
 Any idea what I am doing wrong...

 Thanks,
 Gautam.

  



RE: [flexcoders] how to localize pageTitle

2009-02-10 Thread Ryan Graham

You may also be able to use BrowserManager depending on your setup…

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Haykel BEN JEMIA
Sent: Tuesday, February 10, 2009 9:59 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] how to localize pageTitle

 

If I'm right, the pageTitle property is set during compilation in the html 
wrapper and it has no effect when set on runtime. You will have to use 
JavaScript for this. Override the resourcesChanged() method and call a 
JavaScript function which will set the window's title. Here you will find an 
example how to do it:

http://livedocs.adobe.com/flex/3/html/passingarguments_4.html

Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com





On Tue, Feb 10, 2009 at 3:08 PM, Gautam P p.gau...@gmail.com wrote:

Hi,

Following is the code I tried out:

mx:Application pageTitle={resourceManager.getString('AppMessages', 
'GREETING')} xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Metadata
[ResourceBundle(AppMessages)]
/mx:Metadata


I am not able to localize the application's pageTitle property string. Also the 
documentation says we can't use actionscript to update this property. Any idea 
what I am doing wrong...

Thanks,
Gautam.

 




This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.