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

Similar Messages

  • How to find out the locale setting in a browser?

    In my Java web project, the multi-lingual issue on the JSP pages is handled by JSTL. It works fine so far for any input messages. However, some messages come from the container. It is needed to find out the browser's country and language settings inside of the container. My question is how to find out the settings?
    Thanks in advance.
    v.

    Hi, this I found on James' website--see http://www.rf.net/~james/perli18n.html#Q28
    Q28. Can web servers automatically detect the language of the browser and display the correct localized page?
    A28. Yes. HTTP/1.1 defines the details of how content negotiation works, including language content.
    WWW browsers send an Accept-Language request header specifying which languages are preferred for responses. This technique works fairly well, although some versions of Netscape Navigator send an improperly formatted request parameter. Also, switching language preferences in either Navigator or IE 4 doesn't always "take" without first deleting a language hint.
    Few sites do content-negotiation on language, and interestingly enough I do not know of any major portals doing this. One site that does is Sun's documentation library at SunDocs. Debian.org does a very nice job of using Apache content negotiation wih languages and also has some nice help info too on Setting the Default Language.
    Apache's Content Negotiation features will select the right page to return, whether HTML or image file. Annoyingly, the match logic is very literal, so a browser request for en-us will not match a server entry of en except as a last resort. Any other exact match will win over en, even if en-us was first preference.
    There are 2 ways of doing content negotiation with Apache: type or variant maps and multiviews.
    Variant Maps
    In httpd.conf, disable Options Multiviews if configured and add
    AddType type-var var
    DirectoryIndex index.var
    Then create an index.var file like this:
    URI: start; vary="type,language"
    URI: index.html.en
    Content-type: text/html
    Content-language: en-GB
    URI: index.html.en
    Content-type: text/html
    Content-language: en-US
    URI: index.html.en
    Content-type: text/html
    Content-language: en
    URI: index.html.fr
    Content-type: text/html
    Content-language: fr-CA
    URI: index.html.fr
    Content-type: text/html
    Content-language: fr
    URI: index.html.es
    Content-type: text/html
    Content-language: es
    Multiviews
    The multiviews technique works like this. This does add extra server load, as each content directory must be scanned for the variant document names.
    index.html is localized into variant documents such as:
    index.html.en (or index.en.html)
    index.html.fr
    index.html.es
    index.html (or index.html.html as a reader has recommended) symlinked to one of the above as the last resort.
    Here's an example of http.conf directives for this:
    # in httpd.conf
    AddLanguage en .en
    AddLanguage fr .fr
    AddLanguage es .es
    # LanguagePriority allows you to give precedence to some languages
    # in case of a tie during content negotiation.
    # Just list the languages in decreasing order of preference.
    LanguagePriority en es fr de pt
    Options Multiviews
    # end of httpd.conf fragment
    Starting in Apache 1.2, you may also create documents with multiple language extensions.
    O'Reilly's Apache - The Definitive Guide, Chapter 6
    ApacheWeek article on Language Negotiation
    Another ApacheWeek article on Language Negotiation

  • How to download and Install bos.loc.utf.EN_US Package for the Oracle BI locale setting english-usa language in Windows 7 64bit

    OBIEE 11G Installation error during configuration steps with message "Distributing Repository" failed.
    I searched lot of forums but all they say, install bos.loc.utf.EN_US Package for the Oracle BI locale setting english-usa language. From where we can download this package.
    Thanks in advance.

    But I am assuming that when I make the installer, the 32-bit Run Time Engine is appened with the installer, as show below
    Since from the picture you can see its including the support installers from '\Program Files (x86)\'
    The application runs queries to fetch data from database in SQL server 2008, and for that I am using a Microsoft SQL Native Client 2008 R2 64 bit ( this is the only version that installs on either PC, even the one on which I developed my LV Application).
    I am not using any driver, only toolkits for reports - and for that I un-checked the "Remove unused polymorphic VI instances" when making the executable, otherwise LV throws up an exception that share variable are not being included.
    Yes I did reboot every time after I ran the installation.
    Still getting the same error.

  • How to get browser language

    Depending on the language of the browser, (firefox/ie) I want
    to localize the flex app. How can I look up the locale setting of
    the browser? thanks

    Yes it can be used but it will give locale, in case I change the browser lang I am not sure if the locale also gets changed. If not then I guess we can not use this method.

  • How do I make the Shuffle Setting on my iTunes More Random?

    Hi,
    I've just recently got my iPod classic (finally) and I love it! But, I have a question about iTunes. My question is: How do I get the shuffle setting in my iTunes to be more random? I have "The iPod Book" by Scott Kelby and looked this up, but I have the fourth edition, and so the picture for the iTunes > Preferences > Playback > picture is not the same as mine. I can't find the bar to slide the shuffle setting to more random or as Apple puts it " least likely". Not that it's the most important topic in the world, but I already have a total of almost 1500 songs and I'm still having to skip because I have music from the same album or the same song(s) popping up about 4 tracks later. This is really frustrating since part of the reason I bought it was to listen to ALL my music shuffled, but instead I spend more time switching through my music to finally get to something different. Does anybody know how to do this with the new iTunes version? Also to clarify, I have already searched through the automatic help that's offered in iTunes and nothing is coming up that helps me, and I've tried searching Support here on the website and ll I get is how to either turn shuffle on or tech support for having an iPod shuffle, not how to make it more random

    I took a play list of 3500 songs and sorted first by album name and then by track.
    Is there some reason you think you needed to sort by Album first?
    As soon as you sort on any other column, iTunes doesn't care you sorted this first. It is now ignored.
    I don'dt know if we have a semantics problem
    We don't.
    Sorting by Album first then sorting by Track # sorts by Track #  and Album name as the secondary sort.
    You don't need to first sort by Album.
    THIS DOES NOTHING!
    When you sort by Track #...
    Abbey Road -Track 1
    Americana - Track 1
    Anthology - Track 1
    Abbey Road -Track 2
    Americana - Track 2
    Anthology - Track 2
    Therefore both the primary and secondary sorts mean something.
    Correct.
    You are not selecting the secondary sort. Sorting by Track #, the secondary sort is always Album.
    Try this.
    Sort by Artist then sort by Track #.
    It is now sorted as above.
    Sorting by 1 column then another does absolutely nothong (except take a few more mouseclicks).
    I rest my case.

  • How to ignore programmatically some items during a query ?

    Hi all,
    The process of my application is like this : first of all the end-user enters some criteria , then he/she presses a button to search for the possible results matching the criteria entered (execute_query). The possible results are displayed through a multirecord based datablock.
    The criteria screen has two parts , say part_a and part_b. When the end-user does not enter any criteria in part_b then the datasource of the results block should be a table , say data_source_1 ; and if some criteria are entered in part_b then the datasource of the results block should be a view , say data_source_2.
    The datasource data_source_1 has less number of columns than the datasource data_source_2 , but all of data_source_1's columns are included into data_source_2.
    So my problem is when the datasource of the results block is set to data_source_1 then there are unknown columns when executing the query (alert error). All of the columns of data_source_2 are included in the results block , and all of the columns of data_source_1 are automatically there because mathematically speaking data_source_1 is included into data_source_2.
    I have tried to use in the pre-query trigger of the results block this statement : set_item_property('results_possibles.column_a',queryable,property_false); but the same error still occurs.
    So how to ignore these items ?
    Thank you very much indeed.

    After looking at what you did to try to solve the problem, I'm not sure what the actual problem is.
    You can make both datasources have the same number of columns by selecting nulls:
    data_source_1: select a, b, c, null as d, null as e from <table>
    data_source_2: select a, b, c, d, e from <view>
    If you have a field which is used to query a column which is included in data_source_2 but not in data_source_1, and that field is populated when you run the query, then just set the block's default_where to ignore that field.
    eg
    data_source_1: where...and c like nvl(:control.c,'%')
    data_source_2: where...and c like nvl(:control.c,'%') and d like nvl(:control.d,'%')...

  • How do you create a local zone that's not "stripped down"?

    Hi all,
    I've been exploring Solaris 11 Express a bit more after work, and I can't figure out how to create a new local zone that doesn't have a minimized package set. The ISV guide mentions that new local zones default to "minimal system software":
    http://www.oracle.com/technetwork/articles/systems-hardware-architecture/o10-015-s11-isv-adoption-198348.pdf (page 6)
    ...but that I can specify additional packages with the "-e" flag during the zone install. I don't want to list dozens of supplemental packages by hand... there must be a way to make a new local zone that has an almost identical package loadout as a standard global zone. (i.e. ftp, smtp, telnet services exist in the global zone, but are not installed in a local zone).
    Do I need to use ips commands to first make an image (of a global zone) then update my local zones to that image?
    Thanks!
    Mike

    Thanks Russell, this sounds exactly like what I was looking for! I'm "zoneadm install"'ing a new zone right now to kick the tires. One note for everyone else:
    pkg install -r slim_installI got an error that "-r" isn't a valid flag for pkg, but it seems to be working without it (i.e. "pkg install slim_install")
    Regards,
    [email protected]

  • How to give browse and monitor only options of an ICM script to a certain group?

    I am looking for an option in the Feature Control Set, how to give "Browse and Monitor" only options for a certain group in our contact centre. If someone give me some clue, it would be appreciatable.

    Hello Praveen,
    This work at some point. But it's not resolving what I intend to do. When I give "Read Only" previledge, to the certain group, it won't be able to do other tasks what they do day to day. I am looking specifically to give read only previledge in the scripting level. Not at the configuration level.
    Thanks.

  • HT4759 I don't use other i-devices. How do I get past the "Set up iCloud on a device ..." redirect to set up iCloud?

    I don't use other i-devices. How do I get past the "Set up iCloud on a device ..." redirect to set up iCloud? I want to use icloud for a calendar, storage of my photos and ebooks plus the Calibre reader app with chrome browser. OS is windows 7, but I will change to windows 8 soon.

    You need to set up an iCloud account before you can back it up. And you back it up directly from the device - iCloud.com has nothing to do with it. Follow the instructions in the link below to set up your iCloud account and to set up Automatic Backups:
    https://www.apple.com/icloud/setup/ios.html
    Cheers,
    GB

  • How to... get local fox variable into WAD

    Hi guys,
    we have a (technical) weird requirement to fullfill. There is a parameter (a string) we need to update several times when running our web templates. We have this parameter in our fox coding and it needs to be updated i.e. when loading the templates the first time, when buttons are triggered etc (if we use a customer exit we can not update the parameter when i.e. a button is triggered).
    What do we need this parameter for? We have to display it in a text field in our templates (it must not be a text field but it has to be present all the time in these about 70 templates). However if we use a text field the best would be to link the parameter using a variable. Anyway I do not know how to set a global variable within fox coding...
    What do you suggest? How can a global variable be set using fox the easiest way? Or is there any other way to display a local fox variable in WAD (using javascript or something else)?
    Any helpful ideas or answers will be <removed by moderator>.
    Thks & Brgds,
    Marcel
    Edited by: Siegfried Szameitat on Dec 3, 2008 3:04 PM

    Your requirement didn't get very clear to me but maybe you can explore whether you can achieve it by calling an FM from inside the fox code.

  • [svn:fx-trunk] 11655: Added logic to allow getStyle to return locally set style values early on  (before the instance has been added to DOM).

    Revision: 11655
    Author:   [email protected]
    Date:     2009-11-11 08:27:42 -0800 (Wed, 11 Nov 2009)
    Log Message:
    Added logic to allow getStyle to return locally set style values early on (before the instance has been added to DOM).
    QE notes:  None
    Doc notes:  None
    Bugs: SDK-22198
    Reviewer: Glenn
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22198
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as

    Please can u answer it fast

  • How to internet browsing from the wifi.....not from my service provider.

    i want to know how to internet browsing from the wifi connection not from the "DATA SERVICE" when i off my data service from mobile network option then i can't able to surf.........my wifi connection is on and connected.
    Thanks guys.... 

    Do not turn off the Data Services. Just turn off your mobile network connection in the Manage Connections screen.
    Go to Options > Advanced > Browser and set your browser to Hotspot, and save. Now, use the browser with the Wifi connection for surfing the internet.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How the sContainerLocation parameter has been set and used?

    Hi,
    I'm confused with the following 2 methods in IContainerProvider Interface (Java EDK5.0):(1) public IContainer attachToContainer(String sContainerLocation, ChildRequestHint oHint, String Locale);(2).public ChildContainer[] getChildContainers();
    I'm not sure how the sContainerLocation parameter has been set correctly for the top lever container and the sub level (child containers). What i intended to do is crawl all documents (all have a unique ID) into Plumtree portal. I plan to set the parent folder ObjectID as a datasource parameter. Can anyone please tell me how to use the "parent folder ObjectID" in those 2 methods.
    Thanks in advance,

    Mihir,
    For the top-level container, set parent folder Object ID equal to CrawlerConstants.TAG_PATH. I've only configured this via a custom SCI page in the Crawler admin object, so I'm not sure if it will work as a setting in the Data Source as you wish to do. You can try it in the data source and if it doesn't work, then try it in the Crawler. When set correctly, the portal will automatically call attachToContainer with sContainerLocation equal to whatever value you have for TAG_PATH.
    For child containers, just set the sLocation in the ChildContainer equal to the folder ObjectID and the portal will use that as the value for sContainerLocation on its subsequent attachToContainer calls.
    -Dave
    I've set this in the crawler UI, and I'm not sure if it will work in the data source.

  • How to back up the layout sets?

    plzzzzzzzz answer my question,
    how to back up the layout sets?

    hi use
    RSTXSCRP to upload into application server
    SAPscript Export to Dataset / SAPscript Import from Dataset
    Description
    Report RSTXSCRP allows SAPscript objects (standard texts, styles, forms) or device types to be transported between R/3 and a local or central file.
    Note: Texts, styles, and forms are client-specific! For export they are always read from the current client and for import they are always read to the current client. Device types are not client-specific so the current client is not significant in the export/import of printer definitions.
    Important note: For language-dependent objects (that is, texts, styles, and forms) only those languages (or translations, foreign languages) are imported in the target system which are contained in the system's "language vector". This is the profile parameter "zcsa/installed_languages" of the application server. The report parameter "language vector" allows you to replace the standard language vector with your own vector when it is called.
    The transport log of RSTXSCRP outputs the language vector used for the export or import. If objects cannot be exported or imported because their language is not contained in the language vector of the source or target system, a corresponding message appears in the transport log.
    Requirements
    Styles and forms are made up of maintenance versions and active versions as well as foreign language versions (translations). When a style/form is exported only the active version of the style/form is exported. Maintenance versions are not transported. All existing translations of a style/form are also transported if their language is contained in the language vector.
    If a style/form is flagged as "Translation not applicable", only its original language will be exported. Importing a style or form such as this, which is not to be translated, automatically deletes any existing translations in the target system.
    In the case of text objects RSTXSCRP can transfer only standard texts (with text object key = TEXT) with text ID = ST and language key = logon language to or from the current client.
    Transporting a non-existent device type deletes the definition of this device type in the target system.
    Parameters to be specified:
    The radio buttons Device type/Form/Style/Standard text select the transport object to be imported or exported.
    Object name:  Name of the standard text, style, form, or device type.
    Mode: Export means download to file, IMPORT means upload from file.
    File system: Allows you to choose whether the file is read/written locally (GUI file system) or on the application server (default setting).
    File name: Path and file name of the file to be generated or read in the file system of the application server.  The name selected here must fulfill any requirements specified by the R/3 platform (UNIX, Windows NT, AS/400). "/tmp/*******&&&&" appears as a default value. It is only a template and not the actual file name! If the default value is not overwritten, "*******" is replaced by the first eight letters of the object name, and "&&&&" by the file extensions ".TXT", ".STY", ".FOR" or ".PRI".
    This parameter is not significant for local files and an input template appears for the local file name.
    Binary file format: If this parameter is selected, a binary file format with a fixed record length is written or required for reading. This file format is not compatible with a "non-binary format", that is files for which the parameter was set during writing can only be read with a set parameter. The binary files generated by RSTXSCRP are identified by the string "RSTX@" (ASCII code) at the beginning of the file.
    In binary format, the file contains an identifier indicating in which system character set the data was written. RSTXSCRP then performs a character set conversion from the file character set to the system character set of the current system when the file is imported. It is therefore possible to exchange files generated by RSTXSCRP between systems with different system character sets.
    Important restriction: You are advised to only use the character set conversion when exchanging files between two systems with an identical number of characters. If objects in the source system contain characters which are not contained in the system character set of the target system, they are represented by a substitute character when converted and their contents are therefore changed. The objects are imported under a modified key if non-translatable characters are part of the object key (for example, a text name with East European special characters).
    Display file contents: If this parameter is selected, the contents of the generated or read file are listed together with the transport log. Otherwise only the transport log is output.
    Language vector: If this parameter has a value (that is, one or more language keys), this report parameter is used as a language vector for exporting or importing the language-specific objects. The profile parameter "zcsa/installed_languages" is used as the default language vector.
    Only export original language: If this parameter is selected, only the original language for layout sets and styles is transported when exporting, and no translations.
    Output
    The report generates an action log of the import/export.
    Example
    In order to download the device type HPLJIIID from R/3 into the file "/tmp/HPLJIIID.PRI", enter the following parameters:
    Device type selected
    Object name: HPLJIIID
    File name: <no entry, use default value>
    Mode: EXPORT
    (Other report parameters have default value)
    In order to upload the form TESTFORM from the file "/usr/test/TESTFORM.FOR", enter the following parameters:
    Form selected
    Object name: TESTFORM
    File name: /usr/test/TESTFORM.FOR
    Mode: IMPORT
    reward if u find use ful
    regards
    Nagesh.Paruchuri

  • How to ignore SSL errors

    When setting up email via secure smtp and imap there is an error because of self signed cert and i am unable to complete the setup process. I know that
    the ssl cert is invalid and ready to deal with it better than leave plain text connection. How to ignore ssl errors and continue with email setup?

    Hello akamit,
    If I understand your question correctly, I think there is no ready solution for this situation. You could have a look at https://bugzilla.mozilla.org/show_bug.cgi?id=874346 - the discussion there may help you to understand the problem in more detail.
    Kind regards.

Maybe you are looking for