Default-locale setting is ignored!

Hi gurus,
i tried following:
<application>
<message-bundle>mymessagess</message-bundle>
<locale-config>
<default-locale>en</default-locale>
</locale-config>
</application>
In my application the locale is still de.
What have i done wrong?
Or how can i set the local in faces-config?!?!?
Regards
Wolle

Hi,
Have you tried it with the latest weekly build? You can find it at javaserverfaces.dev.java.net .
I think you are regarding to issue 8 which has been solved.
Greetings,
Romano

Similar Messages

  • How to ignore browser 's local setting ?

    I use ADF to implement JSP Application ?
    I am in Thailand .
    Thai year = english year + 543 .
    ADF display date according to locale that is set in browser .
    I want to ignore locale setting in browser and always use Locale.ENGLISH
    What should I do ?
    and another question ?
    if I customize ADF to display in THAI year by customize setter and getter method in EntityImpl . Can I know what is locale that is set in client 's browser in those setter and getter method , because ADF dose not pass request object to EntityImpl ?
    thanks in advance

    You can change ADF Model tier in the application Module :
    getSession().setLocale(Locale.ENGLISH);
    The default value of the locale is the JVM Locale
    Don't code view problematic in EntityImpl. Entity are only for binding ViewObject attributes and persistence tier. you can code it in viewRow classes (you can generate it checking ¨the check box in the java menu editing the viewObject.
    Regards
    Rafael.
    rrimbert

  • Mail & Safari ignoring default keychain setting on 10.9 Mavericks

    Regardless of which keychain is set as default Apple Mail and Safari seem to always store saved passwords in the "local items" keychain instead of the one selected as default. Even worse, Mail is not even able to use account passwords stored in another keychain.
    What's the point in having a default keychain setting if it is ignored by two major applications using keychains? Does anyone know why there are some applications respecting the default setting and some that are not?

    SSD drives have no moving parts so are generally much more reliable than ordinary hard disks so the need for RAID1 is less. However Mail is nowadays regarded as a business critical service so you still want to minimise downtime.
    Unfortunately Apple don't make it practical to implement a server cluster using their software which would be the best approach. Other than using a different product like Microsoft Exchange which can be used in a cluster but would cost enormously more, I would use an external hardware RAID solution, perhaps the Promise Pegasus R4.
    See http://www.promise.com/storage/raid_series.aspx?m=192&region=en-global&rsn1=40&r sn3=47
    I did also find recently the following which is a FireWire external RAID enclosure for 2.5" drives but also includes hardware RAID1 support. You could use two 1TB 2.5" drives in it. It can be powered via FireWire so does not even have a power supply to possibly fail.
    See http://eshop.macsales.com/shop/firewire/EliteALmini/RAID/eSATA_FW800_FW400_USB
    As Simon mentioned you could also use a hosted mail solution, there is even the option of Office365 with the add-on of MS Exchange.

  • How to set default locale in JDK1.3.0 to US?

    Hi, everyone!
    I found the default locale in JDK 1.3.0 is not set to US when I converted our JDK from 1.2 to 1.3.0. So I have to change code by passing Locale.US.
    The output from below test code is:
    default=��100.00
    US=$100.00
    import java.util.Locale;
    import java.text.*;
    public class TestCurrency
    public static void main(String[] args)
    int amount = 100;
    //default
    NumberFormat moneyWriter = NumberFormat.getCurrencyInstance();
    System.out.println ("default=" + moneyWriter.format(amount) );
    //US
    moneyWriter = NumberFormat.getCurrencyInstance(Locale.US);
    System.out.println ("US=" + moneyWriter.format(amount) );
    Can anyone tell me how to set default locale in JDK 1.3.0 to US?
    Thanks!

    You have to set something on your computer (outside Java) to tell it that you are in the US. You didn't say, but I'm going to guess that you are using Windows; if that's so, then try Regional Options in Control Panel.

  • Can I set the default locale for jvm

    Hi,
    Can I set the default locale for jvm?
    How to do it?
    Pan

    My windows default locale is chinese .I have thought of your opinion. But in
    windows nt , if I change the locale , all the environment will be
    destroyed(just like reinstall it , it's difficult for me) . So , Is there
    any other approach?
    Dimitri Rakitine <[email protected]> wrote in message
    news:[email protected]...
    Did you try to change the locale in the Windows control panel?
    (Control panel -> Regional Options -> Your locale)
    Pan YangBin <[email protected]> wrote:
    I have tried changing this system property and other properties such
    as -Duser.language=en -Dfile.encoding=Cp1252 , but all these properties
    did
    not changed, you can get this infomation from the log file .Maybe these
    system properties are readonly.
    Thanks very much.
    Pan
    Chris Halstead <[email protected]> wrote in message
    news:[email protected]...
    Try adding -Duser.region=US to the java command line used to start
    WebLogic...
    -chris
    "Pan YangBin" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    The problem exists in my project still exist.That is it.
    When I did not set weblogic.jsp.encoding to GB2312 in my web
    application(web.xml), and when the jsp file contain's chinese , the
    output
    will be error(error chinese) .And when I did not set it , the output
    is
    correct, but when I use request.getParameter("SomeFormElement")(theelement
    inputed chinese), the return value is error(still chinese error).And
    when
    I
    am in windows nt english version and do not set this property, all
    these
    two
    problems dispear. And I try to compare the java files those were
    generated
    by weblogic from the jsp file , there is only two additional clause
    in
    the
    java file. That's it:
    ((weblogic.servlet.jsp.JspWriterImpl)out).setEncoding("GB2312");
    response.setHeader("Content-Type", "text/html; charset=GB2312");
    (the web.xml has <context-param>
    <param-name>weblogic.jsp.encoding</param-name>
    <param-value>GB2312</param-value>
    </context-param> to be set
    So, I think maybe it works well if I change the default locale toenglish.
    And unfortunately, your method is also failed.(I have to use weblogic
    in
    chinese environment)
    Would you please help me to solve this problem?
    Pan
    Dimitri Rakitine <[email protected]> wrote in message
    news:[email protected]...
    Try java ... -Duser.language=en ...
    or mode con cp select=437 in the command prompt before running
    weblogic.
    Pan YangBin <[email protected]> wrote:
    I'm using weblogic server 5.1 sp6 in chinese environment, and I
    want
    weblogic compile my jsp with en_us locale . So I can't use
    Locale.setDefault(new Locale(...)) to set the default locale ,butI
    really
    want someway configure.
    Pan
    Dimitri Rakitine <[email protected]> wrote in message
    news:[email protected]...
    Locale.setDefault(new Locale(...)) ?
    Pan YangBin <[email protected]> wrote:
    Hi,
    Can I set the default locale for jvm?
    How to do it?
    PanDimitri
    Dimitri
    Dimitri

  • Setting the user's default locale

    Hello all,
    I am working with an IRC applet client. This applet loads information based on the client's locale. I found that some machines load the wrong locale, and I guess it is a result of different settings in the OS. I need to make sure that all clients load the same locale. The machines which use this applet are all win32, and I have the benefit of being able to instruct them what to do in order to set their applet to the proper locale.
    The way I see it there are two alternatives: either setting the applet or the OS. I tried adding parameters in the Advanced tab of the Plugin's control panel (-Duser.language=he), but it did not help.
    Where should I look in the OS in order to set something which will change the applet's default locale?
    Is there anything else I can do???
    Thanks in advance,
    David.

    I assume you don't have access to the applet source code -- if so, you could easily change the code to use your own locale.
    If it wouldn't be in violation to any license agreement, you could decompile the applet to retrieve the source. There are several open source decompilers, I would just do a search here to get some names.
    Alternatively, you could write an applet loader which sets the JVM's default locale (using java.util.Locale.setDefault()) before passing control off to the applet. See http://forum.java.sun.com/thread.jsp?forum=4&thread=474305 (reply 5) for some hints on how this can be done.

  • Setting default locale

    I'm having an issue with locales. I'm running SJSAS 8 and every morning (temporarily) a cronjob will reboot the whole system then start up the app server. The problem is that some of our characters in our webapps are showing up as question marks, I think because the locale of the startup user is either incorrect or undefined. If I start up the appserver with a user whose locale is set to something (like en_CA), then there are no issues. So I figured its an issue with the user that executes the cron. I changed the default locale (etc/default/init) to en_CA and rebooted. The next day when the cron ran and the system rebooted, the character issue remained. Is there some other locale I must set?
    thanks

    Ellen Kraffmiller wrote:
    Hi,
    How can I configure weblogic to use a default Locale that is different from the platform's default Locale? (Weblogic 6.1 on Solaris)
    ThanksThe locale of weblogic startup scripts or console?
    Thank you,
    Neo Gigs
    [email protected]
    "Follow the white rabbit..."

  • Set  default locale

    Please Help.
    I have a form which I use drop down menus to set the currency.
    like: numTotal.locale="de_CH";
    But somehow the default value that this returns is. "SFr". Is there a way to change this programmatically in my form to always return "CHF".
    I don't want to change the regional settings on my PC.
    Many thanks in anticipation.

    Thanks. But this is not the functionality I am looking for. I need a means to reset the return value of a default locale. eg German(Swiss) or de_CH returns SFr. I want it to return CHF.

  • Preview Default Print Setting "Fit to Page" Problem

    Preview.app in Snow Leopard has removed the option to print without scaling, and recreating this behaviour with the remaining options is quite complex and requires 4 extra steps.
    Steps to Reproduce:
    1. Open a document in Preview.app, such as a PDF, of a known paper size.
    2. Select 'File' > 'Print…'
    3. Change the paper size to one where the default scale value with the default 'Scale to Fit:' 'Print Entire Image' is not 100%. This step is often unnecessary, as many documents will require reduction to include margins, even if the paper sizes match.
    4. Select 'Scale:'
    5. Select the scale % value.
    6. Delete the scale value.
    7. Input '100' in the scale value box using the keyboard.
    8. Press tab to avoid radar #7256827.
    9. Click 'Print'
    Expected Results:
    Click on a single option to print at 100%, if by chance that wasn't the default option. This would have been one step.
    Actual Results:
    Does what it says. Steps 4 through 8 are necessary to print at 100% in most cases.
    Regression:
    This behaviour was as expected in OS X 10.5.x and previous versions, or we wouldn't be having this discussion.
    Notes:
    Printing at 100% is the only scaling that is common enough to warrant a button to make it an easy one to get to. Preview.app itself even has an 'Actual Size' toolbar button, but has removed this function for printing.
    Graphic designers (and other professionals) or specific applications (such as printing on pre-cut or pre-printed paper, labels, or DVDs) can commonly require printing at 100%, and using PDF to distribute documents makes Preview.app the most logical choice for many printing jobs.
    Having something other than 100% as a default can cause expensive media to be ruined by a mis-scaled printout, unless these 4 (+1) steps are followed every time.
    Most other apps, including Safari, Mail.app and TextEdit default to no scaling, making Preview.app an exception.
    I am an architect and this is really annoying!
    Does anyone know a workaround?

    Sorry no workaround as yet...
    I too am now sick of the amount of expensive paper I have wasted due to the Preview app default print setting of 'Scale to fit'.
    - No option to print at 100%, you have to manually input this information.
    - No way to change this default in preferences, you can change the opening viewing size of a doc to 100% though.
    - Doesn't remember the previous settings if you decide to reopen the doc and print another copy.
    I also found that if I attempted to print an A4 doc with bleed and crop marks, it would set the default paper size to A4 and the annoying scale to fit would be set to 83%. If I then changed the scale by typing in 100% but don't hit enter for fear of the print starting and then simply use the drop down to change the paper to A3 and then change the orientation and then hit enter it ignores that you have changed the scale and prints your doc at 83% on A3 - Brilliant!
    It's a shame to say that I will be going back to acrobat for pdfs!
    If you can't put a 100% scale radio button on the print dialogue box either allow people to change the default in prefs or even better allow the presets to control paper size and scale of printing!

  • Maintaining default locale in multi-lingual application

    Hello,
    I have a multi-lingual application where the language can be changed at runtime.
    To make the following code work properly, the default locale has to be set each
    time the language changes. Why?
    Since I need to check sometimes the platforms original locale (I do this with
    "Locale.getDefault()"), I am looking for a way not to change the default locale,
    but still to change the resourceBundle.
    In the API I read under "ResourceBundle, Cache Management" that the bundles are cached. Is this the reason why redefining the resourceBundle has no effect? And if yes, how can it be avoided?
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class Y extends JFrame {
      boolean toggle;
      Locale currentLocale;
      JButton b;
      ResourceBundle languageBundle;
      String country, userLanguage;
      public Y() {
        setSize(300,300);
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        Container cp= getContentPane();
        b= new JButton();
        b.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent evt) {
         toggle= !toggle;
         if (toggle)
           country= "DE";
         else
           country= "GB";
         setUserLanguage(country);
        cp.add(b, BorderLayout.SOUTH);
        setUserLanguage("GB");
        setVisible(true);
      public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
          public void run() {
         new Y();
      void setUserLanguage(String country) {
        if (country.equals("DE"))
          userLanguage= "de";
        else
          userLanguage= "en";
        currentLocale = new Locale(userLanguage, country);
    //    System.out.println(currentLocale); // The locale changes ...
    //    Locale.setDefault(currentLocale); // Remove comment slashes and it works.
    //    languageBundle.clearCache(); // No effect.
        languageBundle = ResourceBundle.getBundle("MyBundle",currentLocale);
        System.out.println(languageBundle); // ... but the resourceBundle does not change.
        b.setText(languageBundle.getString("ButtonText"));
    The resource bundle files:
    MyBundle.properties
    ButtonText= Just a button
    MyBundle_de_DE.properties
    ButtonText= Nur ein KnopfEdited by: Joerg22 on 18.08.2008 13:26

    What's your default locale? If your default locale is de_DE, that's the expected behavior. The reason for it is the fallback mechanism searches default locale's bundle before falls back to the base bundle, i.e., in case of searching en_GB bundle, the search order is:
    en_GB
    en
    de_DE
    de
    (base)
    So, it will choose MyBundles_de_DE.
    If you do not want this default locale fallback, you can specify ResourceBundle.Control instance, which is returned from ResourceBundle.Control.getNoFallbackControl() method, in your getBundle() call. Or if you do not use JDK6, you could copy the base bundle to MyBundles_en, which is ugly but should work.
    Naoto
    Edited by: naoto on Aug 18, 2008 1:05 PM

  • Default locale support for texts datasources

    Hi,
    I faced with problem - does BW support default locales ?
    I have some texts datasources which contain some list of entries for default locale. The question is - what value of LANGU field I should setup for  these entries in order to BW recognize them as for default locales ?
    Thanks. I will be apprecated for any related info.
    Fiodar.

    Hi Fiodar,
    well I am not sure about your requirement, but it sounds like you want to add a default value to langu in case the source system doesn't deliver it.
    If this is the case, create a update routine in your transfer rules for 0langu. In the routine add the following coding:
    if tran_structure-spras is initial. "no language specified
    usually the R/3-field is called spras
      result = sy-langu. "or a literal like 'EN' ...
    else.
    pass the given language to the result of the routine.
      result = tran_structure-spras.
    endif.
    That's it.
    In case your datasource doesn't even deliver a field for the language, you can just set a constant value to 0langu in your transfer rules.
    regards
    Siggi

  • Where the Adobe Designer PDF Form "Default Locale" read from?

    I am designing PDF form using Adobe Designer. I have set the "Default Locale" in the Edit -> Form Properties. I have set the Display Pattern of numeric field to ZZZ,ZZZ,ZZ9.99. Based on locale, Adobe should format the numeric field accordingly. So where exactly the Adobe Designer read the locale and the number format? From SAP table, Adobe server OS, PC OS or from where? Because I need to check the locale setting ZZZ,ZZZ,ZZ9.99, ZZZ.ZZZ.ZZ9,99 and so on.

    Check in the Interface Or Form Builder -->Interface.
    Reward if Useful.
    Thanks,
    Anita

  • User.region and the default locale

    What is the difference between user.region, user.country and the default locale.
    Thanks

    Same problem here ! I called Apple Care and got two people during 2 hours on call, they were unable to explain why and just repeat that "the use of TVout for recording purpose are not supported by apple".
    Why this settings has to be hidden ?
    FYI : i'm able to capture Ipad 2 thru BMD Intensity Pro but not able to switch PAL and NTSC in TV OUT settings to get a correct input. TV OUT setting doesn't appear.

  • Flex default locale issue

    I've reinstalled my windows 7. Everything is set to English or United States. My flex-config.xml locale is set to en_US. Although everything seems to be non-portuguese, everytime I create a new project the default locale is pt_BR and when I debug my projects errors and messages are shown in portuguese.
    Any clue?!
    Thakns,
    Peter

    http://developers.sun.com/dev/gadc/faq/locale.html
    sounds like you followed this:
    http://developers.sun.com/dev/gadc/faq/locale.html#def-locale
    can you double check with the link refereenced at docs.sun.com?
    http://docs.sun.com/app/docs/doc/816-0677/6m758jcqf?a=view

  • ADF default locale

    Hello,
    I want to change the default locale for my application and I set in faces-config the default language it. When I run my application the page it start with en - the default browser language.
    How can I make to start my application with it?
    Thank you.

    The locale of a JSF page is taken from the "locale" attribute of the <f:view> tag. If you do not specify a value for this attribute, then the JSF page's locale is determined based on the request's prefered locale (e.g. the list of supported locales specified in the browser's configuration) in conjunction with the locale configuration in faces-config.xml as follows:
    1) If the request's prefered locale is configured as a supported locale in faces-config.xml, then it is used, otherwise go to (2);
    2) If the request's prefered locale is "en", then it is used no mather if the locale "en" is configured as supported in faces-config.xml, otherwise go to (3);
    3) If the request's prefered locale is neither supported nor it is "en", then the default locale configured in faces-config.xml is used.
    As you can see, the step 2 of the algorithm is causing your problem. I am recommeding you to use the "locale" attribute of the <f:view> tag in order to workaround the problem. Note, that you should pass a Locale object to the "locale" attribute instead of some locale code.
    Dimitar

Maybe you are looking for

  • How do i access my add-on from a browser or URL vs having to click the icon?

    greetings gents, we have built a firefox add-on to do cool things from from the browser. we do the same in our apps and ONLY mozilla supports our growing corporate customer base (apps do not). the product is ready but we face one final challenge: a r

  • JSF: Problem getting URL paramater in hyperlink_action method

    Hello, I have a problem with getting a parameter value in a hyperlink_action method via URL in a JSP. I have following URL: http://server/TestProject/faces/index.jsp?paramname=test On the index.jsp I have a hyperlink with an action-method hyperlink1_

  • Win XP Pro + Airport Extreme + 56k Modem

    Hi, I just recently bought an Airport Extreme Base Station with the 56k modem with the intents of connecting my 12" G4 PowerBook and 12" G4 iBook (both 2005) to the internet via the 56k modem. For the record, both connect perfectly, always, no hassle

  • Billing Due List based on Ship to Party

    Hi,             I have a scenario where in I have multiple ship to parties in a single sales order . So there are different deliveries for all the different ship to parties (i.e Delivery Split). But I need to process the Billing due List based on the

  • How to access Shopping Cart Obj-ID with BADI /SAPSRM/BD_WF_RESP_RESOLVER

    Hi, i am transforming old application based workflow from SRM 5.0 to process orientated on SRM 7.0. With SRM 5.0 the system uses BADI BBP_WFL_APPROV_BADI to determine approvers for workitems. This BADI had parameters like OBJECT_ID and OBJECT_TYPE an