Default lookup of resource bundle is wrong ?

Hi,
i have defined resource bundle files for localizing purpose, which i define:
  localization.properties
  localization_da.properties (danish language)
  localization_sv.properties (swedish language)
By default for all other languages than danish & swedish, it should use the localized texts from localization.properties
However i have a weird scenario: i created a user with English language.
On the development server, the user uses the localization.properties
On the test server, the user (with english and all other languages than da/sv) uses the localization_da.properties INSTEAD!?!?
I found the
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/42/938297a5061d69e10000000a1553f6/frameset.htm">Lookup of Recource Bundle</a>, which is quite useful but didn't help resolve this problem.
As it states the locale is determined by the following priorities:
1. Component locale (there's no setting in this case)
2. Portal mandatory localte (no setting neither)
3. User locale (i have set the bebud info and it shows correctly that user has EN language)
4. Request locate (the request.getLocale also shows the EN language which is correct)
5. Portal default locale (i checked prtDefault.properties file in both servers, it both set to EN/US as default setting)
6. System default locale
   - Anyone know how to check JVM default language?
   I checked the windows language setting, both have EN as default so no different in this case neither.
So how can one server uses the correct resource and another use the wrong resource still, any ideas??
Are there any other settings i haven't checked yet? Any helps will be very appreciated.
I think about my work around is to have only 3 resource files:
  localization_en.properties (english and other languages)
  localization_da.properties (danish language)
  localization_sv.properties (swedish language)
but i don't sure if it's possible to have no default  localization.properties file?

Hi,
+"But what is the point of having Bundle class for let say EO"+
The point is to allow applications to be translated into multiple languages so that - based on the user language setting - the application runs with native labels. This works well with the default properties or Java resource bundle in ADF BC. So what doesn't work is the solution you copied from the AMIS blog and you may want to reach out to them if this works for them and if not why. Oracle support is correct in that they cannot support 3rd party samples and demos
Frank

Similar Messages

  • Wrong default resource bundle is retrieved, anyone?

    Hi,
    i have defined resource bundle files for localizing purpose, which i define:
    localization.properties
    localization_da.properties (danish language)
    localization_sv.properties (swedish language)
    By default for all other languages than danish & swedish, it should use the localized texts from localization.properties
    However i have a weird scenario: i created a user with English language.
    On the development server, the user uses the localization.properties
    On the test server, the user (with english and all other languages than da/sv) uses the localization_da.properties INSTEAD!?!?
    I found the
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/42/938297a5061d69e10000000a1553f6/frameset.htm">Lookup of Recource Bundle</a>, which is quite useful but didn't help resolve this problem.
    As it states the locale is determined by the following priorities:
    1. Component locale (there's no setting in this case)
    2. Portal mandatory localte (no setting neither)
    3. User locale (i have set the bebud info and it shows correctly that user has EN language)
    4. Request locate (the request.getLocale also shows the EN language which is correct)
    5. Portal default locale (i checked prtDefault.properties file in both servers, it both set to EN/US as default setting)
    6. System default locale
    - Anyone know how to check JVM default language?
    I checked the windows language setting, both have EN as default so no different in this case neither.
    So how can one server uses the correct resource and another use the wrong resource still, any ideas??
    Are there any other settings i haven't checked yet? Any helps will be very appreciated.
    I think about my work around is to have only 3 resource files:
    localization_en.properties (english and other languages)
    localization_da.properties (danish language)
    localization_sv.properties (swedish language)
    but i don't sure if it's possible to have no default localization.properties file?

    Hi Matt,
    > but i don't sure if it's possible to have
    > no default localization.properties file?
    No, that leads to an exception if the language determined for a user is not reflected by some bundle file. You can still duplicate the localization_en.properties file to localization.properties.
    Anyhow, if - for whatever reason - the bundle localization_da.properties got selected for a certain user, it probably also will be selected if you provide additional property files...
    Hope it helps
    Detlev

  • Skin resource bundle

    Hi,
    I'm using a paged af:table and getting in the logs "<RenderingContext> <getTranslatedString> Could not fetch resource key Page from the skin myskin.desktop" (roughly translated).
    Solution in non-portal application is to specify resource bundle with specified key in trinidad-skins.xml/skins/skin/bundle-name but what is the proper solution in a portal application if I still want to allow for runtime selection of skin?
    The "update portal resource" dialog does not provide input of resource bundle name.
    The generated generic-site-resources.xml contains a reference resourceBundle="oracle.webcenter.framework.translations.TranslationsMDSResourceBundle" that indicates there might be some proper place to put skin bundle resources. (I tried editing the xml manually testing changing resourceBundle="MyBundle" and also adding <customAttribute name="skinBundleName" seeded="false" value="MyBundle" visible="ALWAYS"/> but to no avail).
    Best bet, if it is indeed possible to translate the "???Page???" in an af:table in a portal application, would be to add something to ResourceLibraryBundle but I don't know what trans-unit id.
    There's a handful of this exact question (e.g. https://forums.oracle.com/message/10620083) but no answers, either the solution is very obvious or there is no solution other than hard-coding the skin (which would not be that much of a problem).
    Any ideas?

    Thank you again!
    I'm using JDeveloper 10g.
    First, I've created a custom resource bundle (com.ieci.mugeju.view.resource.MugejuResourceBundle) and overrided the default resource string values.
    Second, I've created the file adf-faces-skins.xml like this:
    <?xml version="1.0" encoding="windows-1252" ?>
    <skins xmlns="http://xmlns.oracle.com/adf/view/faces/skin">
    <skin>
    <id>MugejuSkin</id>
    <family>MugejuSkin</family>
    <render-kit-id>oracle.adf.desktop</render-kit-id>
    <bundle-name>
    com.ieci.mugeju.view.resource.MugejuResourceBundle
    </bundle-name>
    </skin>
    </skins>
    Third, I set the skin-family property of the file adf-faces-config.xml to 'MugejuSkin'.
    If I follow all these steps, I achieve to change the text in ADF Faces components, as I wanted, but I lost the oracle styles (skin-family = oracle) that I had before following these steps.
    I must be doing someting wrong. I would like both, to mantain the oracle styles and to change the text in ADF Faces components.
    Thank you very much.

  • Resource Bundle location

    Hi,
    I have recreated several resource bundle properties files for different locales. The structure of my files are as follows:
    All my jsp files are in a folder called i18n which is located in the ROOT folder of Tomcat 5.5.7. Within the i18n folder a WEB-INF folder is located
    All my properties files are in a folder called classes within the WEB-INF.
    When I run my jsp page allowing the user to choose a locale, the following error appears:
    org.apache.jasper.JasperException: Can't find bundle for base name Message, locale en_US
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.util.MissingResourceException: Can't find bundle for base name Message, locale en_US
         java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:837)
         java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:727)
         java.util.ResourceBundle.getBundle(ResourceBundle.java:577)
         org.apache.jsp.i18n.i18nDemo_jsp._jspService(org.apache.jsp.i18n.i18nDemo_jsp:88)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Did I place the properties files in the wrong folder?? Please help. Thanks

    I'm assuming you're talking about Struts.
    Make sure your files are named correctly for the different locales. For example, the default, english and french versions would be:
    WEB-INF/classes/ApplicationResources.properties
    WEB-INF/classes/ApplicationResources_en.properties
    WEB-INF/classes/ApplicationResources_fr.properties
    and so forth..

  • Skin's resource bundle

    Hello,
    I'm using the Oracle skin in an ADF application. I would need a new "skin's resource bundle" for an unsupported locale. How could I do it? Which is the name of the Oracle Resource bundle class (or properties file)?
    Thanks in advance!

    Thank you again!
    I'm using JDeveloper 10g.
    First, I've created a custom resource bundle (com.ieci.mugeju.view.resource.MugejuResourceBundle) and overrided the default resource string values.
    Second, I've created the file adf-faces-skins.xml like this:
    <?xml version="1.0" encoding="windows-1252" ?>
    <skins xmlns="http://xmlns.oracle.com/adf/view/faces/skin">
    <skin>
    <id>MugejuSkin</id>
    <family>MugejuSkin</family>
    <render-kit-id>oracle.adf.desktop</render-kit-id>
    <bundle-name>
    com.ieci.mugeju.view.resource.MugejuResourceBundle
    </bundle-name>
    </skin>
    </skins>
    Third, I set the skin-family property of the file adf-faces-config.xml to 'MugejuSkin'.
    If I follow all these steps, I achieve to change the text in ADF Faces components, as I wanted, but I lost the oracle styles (skin-family = oracle) that I had before following these steps.
    I must be doing someting wrong. I would like both, to mantain the oracle styles and to change the text in ADF Faces components.
    Thank you very much.

  • Problem with resource bundle messages written inside script of jsf included

    Hi,
    I have a main jsf page with the name Details.jsp.In this page I included Contacts jsf page.I am using resouce bundle for my application.I written all the output text tags with this resouce bundle keys.And I written the Details main page javascript alerts with this resource bundle correctly.But the problem is,I am having script alrts in my included jsf apge i.e. in Contacts page.When I write the script alerts with the resource bundle keys,it is not displaying properly.
    ---------------------------------------------------------------------Details.jsp--------------------------------------
    <f:loadBundle basename="Details_en" var="msg"/>
    <f:view>
    <head>
    <script>
    function saveFn()
    var d=document.getElementById('dform:dinputtext').value;
    if(d=='')
    alert('<h:outputText value="#{msg.requiredValidationMsgkey}"/>');
    return false;
    if(emailValidation()==false)
    return false;
    </script>
    </head>
    <body>
    <h:form id="dform">
    <h:outputText value="#{msg.nameHeader}"/>
    <h:inputText value="#{Bean.name}" id="dinputtext"/>
    <jsp:include page="/Contacts.jsp"/>
    <h:commandButton value="Save" onclick="if(saveFn()==false) return false;" action="#{Bean.saveAction}"/>
    </h:form>
    </body>
    </f:view>
    -------------------------------------------------Contacts.jsp----------------------------------------
    <script>
    function emailValidation()
    var em= document.getElementById('dform:cSubView:cemailtext').value;
    if(em=='')
    alert('<h:outputText value="#{msg.emailValidationMsgKey}"/>');
    return false;
    </script>
    <f:subview id="cSubView">
    <h:inputText value="#{CBean.email}" id="cemailtext" />
    </f:subview>
    The alert message in SaveFn is getting appeared coorectly.But in the function emailValidation is not geting dispalyed correctly.It is appearing as normat output text in the page,but not as an alert.

    Thanks for the reply.
    But I want to do some validations using javascript not only the required validation.
    In my application 5 text fields and one command button are there .Depending upon combination of 2 or 3 text field values, I have to get the values when I pressed command button.
    If I use the h:messages for validators,the conversion error is occurring when the text field takes wrong data.So it is going to give incorrect results when I press the command button.Thats why I am using javascript.
    When user enters wrong data,I want to do validation using javascript and I want to display the alert message using resource bundle.

  • Java: Loading Resource Bundle File with UTF-8

    I have found out all my previous problems now, thank you all for your assitance with this...
    During the time we have worked so solve our problem with UTF-8 charset we have found new problem with this?
    I don't know if this is the right forum to put this up, if not please let us know where to go with this?
    I have prepared both Eclipse (JSP Files) and GlassFish to run all my files in charset UTF-8. Then i got my
    resource bundle files(property files) to use UTF-8 encoding. Everything looks fine in my text editor. Then
    when i upload these pages every character retrieved from my resource bundles look garbled. This is because
    Java loads property files using ISO 8859-1 character encoding.
    This is a problem from Sun i have read on the internet!
    Note: that in JDK 1.6, you can use PropertyResourceBundle constructor to take a Reader which uses UTF-8 encoding.
    please have a look at these links for more info:
    [http://www.kai-mai.com/node/128]
    [http://java.sun.com/javase/6/docs/api/java/util/PropertyResourceBundle.html]
    Note: PropertyResourceBundle can be constructed either from an InputStream or a Reader, which represents a property file.
    Constructing a PropertyResourceBundle instance from an InputStream requires that the input stream be encoded in ISO-8859-1.
    In that case, characters that cannot be represented in ISO-8859-1 encoding must be represented by Unicode Escapes,
    whereas the other constructor which takes a Reader does not have that limitation.
    What i have read and understand is that the real solution to the problem is: Get the fmt lib to use a Reader instead of an
    InputStream. Alternativly if it works get a ResourceBundle instead of creating one that is wrong all the time? I have to create
    my own ResourceBundle instead of using my own fmt lib wich i cannot trust in a way any more. Is this right or am i comletly wrong?
    My WebTexts files, en, sv and ry are my resource property bundles. To be able to read them i will use resource property bundle reader.
    Fmt lib gives me this but it seems that it inciates this in an InputStream (wich is looked to iso-8859-1) instead of a reader who can
    read UTF-8 without no problem. So can i get my fmt lib to change this or not, anybody have an idea about this???

    Torleif wrote:
    Ok, i know there are a few ways of doing this already. The problem is that i have no idea how to use these different problem solving issues. First we have the;
    1. native2ascii command line utility.
    2. use the XML properties format.
    3. other ways of converting from iso-8859-1 to utf-8.
    The last one i have tried already but i never get this to work. So after knowing of 2 standardized solutions you choose to implement your own non-standard soltion? That's usually not a good idea until you've verified that the standardized solution don't help.
    This is also not the best solution to the problem i have to say. This way i will have both properties files and source files to work with and that is to much i think. Either i will use the native2ascii command or use XML properties format like you say here. I need some more insight in how these two work only because i have no idea my self.Uhm .. read [the documentation|http://java.sun.com/javase/6/docs/api/java/util/Properties.html]? loadFromXML/storeToXML work pretty much exactly the same as load/store, except they handle XML. Try it, look at what it produces, learn.
    Could you please help and explain how to use either this native2ascii command line work or how this XML format properties would work for me. Please i need guidance here with this!!![native2ascii is documented as well|http://java.sun.com/javase/6/docs/technotes/tools/windows/native2ascii.html].
    If you have a specific question after reading those, feel free to ask here.
    You really have to work on your Google-fu, it seems to be too weak.

  • Resource bundle is not build

    Hi,
    I am creating a application in which i want to read some value from .properties file. But when i build my project (using right click project and select Rebuild) this properties file is not copied in the deployed war files in integrated weblogic server . So when running this application it shows error. java.util.MissingResourceException: Can't find bundle for base name
    Can anyone help me out how to include .properties file in build process.???

    Is your resource bundle registered in your project ?
    Go to Project Properties -> Resource Bundle -> Basic Configuration and check if the default Project Bundle name is populated alongwith Resource Bundle type as "Properties Bundle"
    Also another reason might be the following tag might be missing from your jspx/jsff page -
    <c:set var="viewcontrollerBundle"
             value="#{adfBundle['view.ViewControllerBundle']}"/>Edited by: Sudipto Desmukh on May 10, 2012 3:42 PM
    Edited by: Sudipto Desmukh on May 10, 2012 3:45 PM

  • Resource bundle is not refreshed from DB table as expected

    Does anybody implement this approach successfully http://technology.amis.nl/2012/08/14/refresh-resource-bundle-from-within-the-adf-application-to-absorb-changes-in-database-backed-bundles to refresh bundle text on BC level (for EOs, VOs, validation texts, ...) in runtime from DB table (where we have stored bundle texts).
    Texts for VC level are refreshed nice, texts (control hints) for BC level are refreshed only first time after application is (re)installed, but after that not any more.
    We create SR for that and Oracle development say this is not a bug, but behaviour.
    But what is the point of having Bundle class for let say EO (http://docs.oracle.com/cd/E24382_01/web.1112/e16182/bcentities.htm#ADFFD183 - Example 4-5 Localized Entity Object Component Message Bundle for Italian), if we can't perform runtime proccessing to refresh sMessageStrings.
    Any idea?
    Regards,
    Sašo

    Hi,
    +"But what is the point of having Bundle class for let say EO"+
    The point is to allow applications to be translated into multiple languages so that - based on the user language setting - the application runs with native labels. This works well with the default properties or Java resource bundle in ADF BC. So what doesn't work is the solution you copied from the AMIS blog and you may want to reach out to them if this works for them and if not why. Oracle support is correct in that they cannot support 3rd party samples and demos
    Frank

  • Resource Bundles and Locales

    Hi!!
    I am researching Resource Bundles and how they work and have a question. Do you have to use Locales to determine which bundle to use? You see I am developing a product that will only be used in the US but will be used by several different companies. I would like to use a resource bundle for each company instead of for each country!! Is this possible? and if it is, how?
    Thanks for your time

    If you want to have default values, I would suggest using ResourceBundles and just sending in a Locale with the variant of the company. That way if your application ever needs to be localized it won't take much to change it. Your properties files would be named baseName_languageCode_CountryCode_Variant.properties.
    It has been a great advantage for the program that I am developing.

  • Utf-8 from resource bundle?

    I've been looking at many resources and see this is a common problem but still haven't found solution to desplaying unicode data.
    Page starts with <%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %> and has <meta http-equiv="content-type" content="text/html; charset=utf-8"> in the html head tag.
    Output from all database derived unicode characters look fine. However, output from resource bundle is garbled. i.e. "Espa�ol" comes back as "Espa&#195;&#177;ol".
    Using Tomcat 5 where I set URIEncoding="UTF-8" in the Connector tag.
    Also have a catch all filter setting.
    request.setCharacterEncoding("utf-8");
    response.setCharacterEncoding("utf-8");
    and I've duplicated the settings in the jsf file.
    I'd really appreciate any ideas what I'm doing wrong or what more I need to add?

    ResourceBundle Properties uses java.util.properties. If you look closely in
    http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html
    you can see it is not using UTF-8, but only ISO 8859-1.
    There is no easy solution for this problem.
    If you are using JSE 5.0 you can view sun newletter
    http://java.sun.com/developer/JDCTechTips/2005/tt1018.html
    Hope it helps.

  • Error: Could not find compiled resource bundle 'components' for locale 'en_US'

    We are porting a fairly large body of Flex3 code developed under FlexBuilder 3 to Flex4 under FlashBuilder 4.  Most of the conversion appears to be working fine, with one exception.  When I launch the Flex4 version, all my data interchanges with the server works.  Just as it is about to show the UI, the following error occurs:
         Error: Could not find compiled resource bundle 'components' for locale 'en_US'
    I am actually using a locale of fr_FR, but I assume it couldn't find that, reverted to en_US, failed again and then barfed.  If I look in
         ~Adobe Flash Builder 4\sdks\4.0.0\frameworks\locale\fr_FR
    I see a lot of swc files, and of course no 'components.swc'.  I believe the problem is that our Flex3 code is using mx components, and the compatibility mode is not properly handling it for some reason.  I think this is mostly from our in-house UI library.  The properties for that library (and for my main app I am testing now) have:
         - Use default SDK (currently "Flex 4.0")
         - Use Flex 3 compability mode
         - Use minimum version (Flash Player) required by the Flex SDK
         - Enable strict type checking
         - Enable warnings
    I also tried putting the compatibility flag in the mxmlc compile line, with no change in behavior.  This project is built by the following script:
    ruby scripts/concat_properties.rb -o resources.properties ^
         src/main/flex/locale/fr_common/res_myname_fr_common.properties ^
         src/main/flex/locale/fr_common/scout/res_myname_scout_fr_common.properties ^
         src/main/flex/locale/fr_fr/res_myname_fr_fr.properties ^
         ../../scout/common/src/locale/fr_common/mypals/resources.properties
    mxmlc -locale=fr_FR -source-path=. ^
         -compatibility-version=3.0.0. ^
         -static-rsls=true ^
         -include-resource-bundles=resources ^
         -output src/main/resources/bundles/mypals/fr_fr_resources.swf
    copy src\main\resources\bundles\mypals\fr_fr_resources.swf ^
         bin-debug\bundles\mypals
    What have I missed???

    You have two posts. I will try to answer each completely.  Second one first. You say I should change my build to include the framework resources.  I am afraid I am not sure which and what to do there.  We combine all our properties file into one large one, then use the following build line:
    mxmlc -locale=fr_FR,en_US -source-path=. ^
         -compatibility-version=3.0.0. ^
         -static-rsls=true ^
         -include-resource-bundles=resources ^
         -output src/main/resources/bundles/mypals/fr_fr_resources.swf
    I am assuming you are telling me to change the "-include-resource-bundles" line, but what to add?  The "sdks\4.0.0\frameworks\locale\en_US" holds 13 swf files.  I tried adding that entire folder (along with the fr_FR folder) to the project library path (in the project properties dialog), but that made no change.  I also tried reverting the library path tab back to "MX Only" instead of "MX + Spark", but again no change.
    ====================
    For your first message, I did a search for 'spark' in the entire project.  It only existed on 3 lines, each at the start of css files:
        @namespace s "library://ns.adobe.com/flex/spark";
    I had put those in based on reading needed changes to naming in CSS.  Since I was not actually using any spark ('s') components yet, I removed these lines.  The entire project now does not have the word 'spark' anywhere in it. No change in behavior (as I expected).
    I did a search for "s:" throughout the project.  That does exist in probably 100 places, but all are legitimate. Things like (xmlns:mx="http://www.adobe.com/2006/mxml") or variable names ("var matches:Object").  No reference to any s: object.  (While on the topic, why does FlashBuilder still not have a "whole word" box to limit searches??).
    Note that when I first reported this problem, the compiler was set to ONLY support fr_FR.  In fighting this, I changed it to "en_US,fr_FR" hoping that would tell the compiler to load whatever en_US items it was looking for.  We really do not want any English support in this version. (We do have another SWF created with only support for en_US, and another for en_UK, etc.  Each language is a separate node on our server, so there is no need to mix & match at runtime)
    The console shows a lot of swf loads that I do not understand...
    The console output shows (my comments after ==> indicator)
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf - 2,229,992 bytes after decompression
                 ==> our locale is set here, after the above load and before the next line
    Look for name file at: ./data/fr_fr/names.csv
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf - 21,200 bytes after decompression
    Loaded 2278 names.       ==> indicates successful load of data retrieved from server
    Loaded 154 bad words     ==> our second data set has been retrieved and loaded
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 58,777 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 322,606 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\bundles\mypals\fr_fr_resources.swf - 595,025 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 202,168 bytes after decompression
        ==> not sure what this next warning means.  I'm guessing I will later have to research it and return to 'secure' comm with server, but I'm ignoring for now
    Warning: Ignoring 'secure' attribute in policy file from http://fpdownload.adobe.com/pub/swz/crossdomain.xml.  The 'secure' attribute is only permitted in HTTPS and socket policy files.  See http://www.adobe.com/go/strict_policy_files for details.
    Resource bundle loaded for locale fr_fr  ==> at this point, we appear to have our French assets loaded successfully
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 202,168 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 1,303,976 bytes after decompression
    [Unload SWF] C:\ConnectedProducts\common-web\myname\bin-debug\myname.swf  ==> some runs see this, but others do not. I expect it is a timing issue of whether it is reached or not before the crash
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 794,898 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 194,635 bytes after decompression
    [SWF] C:\ConnectedProducts\common-web\myname\bin-debug\styles\mypals_style.swf - 261,589 bytes after decompression
    ==> everything looks fine up to here.  This is then when the third call to installCompiledResourceBundles occurs
    Error: Could not find compiled resource bundle 'components' for locale 'en_US'.
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\dev\4.0.0\frameworks \projects\framework\src\mx\resources\ResourceManagerImpl.as:340]
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\4.0.0\framework s\projects\framework\src\mx\resources\ResourceManagerImpl.as:269]
        at mx.core::FlexModuleFactory/installCompiledResourceBundles()
        at mx.core::FlexModuleFactory/docFrameHandler()
        at mx.core::FlexModuleFactory/docFrameListener()

  • Resource bundles and sort order?

    I am wanting to use a resource bundle to store entries that can then be displayed sorted in a combo-box component in an HTML page, though it does not seem to be working out. Basically I am using JSTL and Struts2, and the select component can take various collection types including a Map. As an alternative I tried using a properties file, but this has two issues:
    - I loose the locale resolution mechanism provided by ResourceBundle
    - The order in which the entries appeared in the file is lost (it does not inherit from LinkedHashMap)
    What approach would you recommend to loading a localised list and then ensure it displays in the order of the display values. I looked around the net, but I am yet to find anything of use.

    If you want to have default values, I would suggest using ResourceBundles and just sending in a Locale with the variant of the company. That way if your application ever needs to be localized it won't take much to change it. Your properties files would be named baseName_languageCode_CountryCode_Variant.properties.
    It has been a great advantage for the program that I am developing.

  • Where does the resources bundle files need to be

    Hi All,
    Does any of you knows where all the custom resources bundle files that will be used on BCC need to be?
    I have something like this:
    BCC module /src/com/mycompany/resources/WebAppResources.properties
    But when I try to use it
    This happens
    javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "title" with value "${activity.description}": An error occurred while getting property "description" from an instance of class atg.bizui.activity.GenericActivity (java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key manageLoyaltyProgram.description)
    I am trying to use it on a activity that will be used in the ActivityManager:
    This is what I have
    <resource-bundle>com.mycompany.resources.WebAppResources</resource-bundle>
    Do you know if I am missing somehting or putting the files on a wrong location?
    Regards,
    Obed

    Hi Shaik,
    The title of for the source is added http://i.imgur.com/a6WVxsW.png but when I click on it it throws this exception:
    javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "value" with value "${activity.displayName}": An error occurred while getting property "displayName" from an instance of class atg.bizui.activity.GenericActivity (java.util.MissingResourceException: Can't find resource for bundle j
    ava.util.PropertyResourceBundle, key emanageLoyaltyProgram.displayName)
    meaning that the properties file is on the classpath, but my genericActivities.xml file is not able to read the properties file.
    Any suggestion?
    Regards,
    Obed

  • Using resource bundler with a specific encoding type

    Hi All,
    Using resource bundler class in Java one can pass the key and get the appropriate string value for that in appropriate language. These strings can be stored in a class (BuldlerList) or in some file.
    My doubt is can I specify the encoding type of the string while passing the key ?
    This might be needed in a case like follows. Say I have a Java Swing application for which I want to get the labels in appropriate language. The application is Windows based. The methods in resource buldler class while getting the string value for a key uses platform's default encoding type. So if I store my file containing all the resource bundler in UTF-8 I can't read them properly from an Windows 2000 system having Japanese as the locale. The constraint is that you can never make Windows default platform encoding as UTF-8 (or something equivalent for Unicode). In that case one cannot developed a truly internationalised application in this frame work.
    Any comments/suggestion/input will be highly appreciated.
    Thanks,
    Sourav

    I dunno 'bout the bundles BUT u can possiblly use XML
    instead.
    u can have a attribute type that specifies the encoding
    type for the content. This will be a totally application
    specific approach BUT it will work.. that much I am sure
    of. IF u read this attribute in your application first and
    then read the value, in that pre-specified encoding, ur
    problem could be solved.
    Just like resource bundles, XML files will be stored in
    local machines only. The only thing is u need a
    JAXP API for processing them.
    aXe!

Maybe you are looking for

  • Top-N Filter and Rank

    Hi, I want to display the Top-3 records based on the dashboard prompts and also display the overall rank of the record independent of the prompt. My data is in the format: Region Market Revenue East New York1 $100 East New York2 $80 East San Jose1 $5

  • My computer is just not working

    I went on my computer and it was being slow and teh fast forward,backward, and play buttons were not working. I have tried to shut it down,sleep,and restart but it is not responding. It will also not let me open any applications except for chrome. Pl

  • MG3100 Cannon Printer, after changing the black prints misallied, and I have manually aligned??

    After changing the black ink cartridge on my Cannon MG3100, when I print word and from the internet the prints are all misaligned and I have manually done the print head alignment, print alignment values, cleaned the nozzles, cleaned elements and cle

  • ETTs needed for SD CIN configuration

    Hai Gurus, we are configuring only SD side of CIN for a particular client.. My doubt is that, do we have to determine any other Excise transaction types other than DLFC, CEIV and ARE3 only when outgoing excise invoice comes into picture??? regards Jo

  • Photoshop Elements 11: .zip files

    Hello all!! I am attempting to save several images from my Elements 11 organizer to a .zip file... Epic fail on my part!:) can anyone tell me how to do this??  i have an iMAC...