Setting the locale dynamically in .shell file

Hi ,
I am using <netuix:locale language="en"/> in .shell file for the header in Weblogic Portal 9.2 application.
How i can set the language attribute dynamically as currently it is set to English that's why my header area always displays the text in English language for the first time when I login into my application.
Looking forwar for the response
Thanks in Advance
Regards
Gaurav

Hi Guarav,
The <netuix:locale> control is used within Portal Framework markup (.shell, .portlet, .portal, etc.) to specify the local for that resource's title and description. For example: if you have a file named headerFooter.shell, its English title might be "The Header-Footer Shell", and that's how you would identify the shell in the Portal Admin Tools. If you had users who spoke/read Spanish, you'd create a <netuix:locale> element for headerFooter.shell that had the title as "El Cabeza-Pata Shell" (or something :). What I'm saying is: that control only affects the localization of the title and description of that WLP resource itself, not its content.
To change what language the text of your header uses, check out the i18n JSP tag library: http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/javadocjsp/p13n/i18n/tld-summary.html.
Hope that helps,
George

Similar Messages

  • Setting the local builtin SAM administrator password

    Greetings,
        Currently we set the local SAM administrator password by supplying it directly in the "Apply Windows settings" TS step.
        I do have a base 64 encoded version of that same password in customsettings.ini and I would like to use that variable. Let's call it "encpwd".
      In the "Apply Window Settings" step, can I code the variable name in the text field when I specify "Enable the account and specify the local administrator password" as %encpwd%? I suspect that this field may not accept variables.
     Alternatively, can I code in my customsettings.ini "adminpassword=encpwd" ? And if I set this in customsettings.ini will it override whatever is set in the "Apply windows Settings" step (i.e. would I just set this to 'randomly generate...')?
    Thanks
    David Z

    It's not clear what deployment method you are using here. MDT LTI, or SCCM ZTI?
    For MDT LTI, you could just add the base64 encoded value *directly* into the unattend.xml file, and then remove the adminpassword entry in the zticonfigure.xml to prevent overwrite.
    You might be able to code your own solution to add base64 encoded data directly into the variable namespace by overriding the "Public Property Let Item()" entry in ztiutility.vbs to override the "ObfuscateEncode()" call.
    However, note, that this is not 100% secure (nothing is), your password is still recoverable as plaintext.
    Keith Garner - keithga.wordpress.com

  • Using a PhaseListener in order to set the locale on the UIViewRoot

    Hello,
    I am wondering which is the best phase to set the locale on the UIViewRoot...
    I don't know whether to choose the "update model values" or the "invoke application" phase and whether to set it before or after the phase.
    Can anyone please help?
    Thanks in advance,
    J.

    I'd say at any time AFTER the restore view and BEFORE the render response phase should be fine. I cannot be 100% sure as I've never actually done this. I would experiment and find out if I were you, only way to be really sure.
    I'm assuming you want to do this to only have to put this code in one place. Its not an option to use f:loadBundle in a facelets template that you share among all your pages? Then you don't have to muck about with phase listeners.

  • How should i set the baseURI when a db file path with a space

    if the db file in a path like c:\program file\myapplication,then i set the baseURI dbxml:c:\program file\myapplication ,some exception occur~what should i do ?
    thanks a lot

    The Base URI needs to be a valid URI, which means it cannot include the Windows '\' character at all. In your case, you should be fine using something along the lines of "file:////C:/program file/myapplication"
    (give or take a '/' or two -- I haven't tested this).
    It's a common for BDB XML users to confuse the argument to create/openContainer() (a filesystem path) with the Base URI (a URI). The meanings and requirements are different. The best thing to do is to set and use a container alias (XmlContainer::addAlias()) to use in your queries.
    Regards,
    George

  • PhaseListener: before or after which phase should I set the locale?

    Hello,
    I use restfaces an I have UrLs such as mydomain.com/fr/book/etc
    where /fr/ is the desired locale. I have tried retrieving the locale string from the URL and setting the locale from a PhaseListener before the renderResponse phase but it does not work i.e. when I change the locale in the address bar to /en/book/etc it will not change the locale. Any clue?
    Thanks in advance,
    JUlien.
    Here is the phase listener:
    public class DebugPhaseListener implements PhaseListener {
    private static transient Logger log = Logger.getLogger("com.jeanbaptistemartin.util");
    public DebugPhaseListener() {
    log.debug("DebugPhaseListener constructor");
    public void afterPhase(PhaseEvent phaseEvent) {
    log.debug("after---> " + phaseEvent.getPhaseId());
    public void beforePhase(PhaseEvent phaseEvent) {
    Locale locale = extractLocale(FacesContext.getCurrentInstance().getExternalContext().getRequestServletPath());
    FacesContext.getCurrentInstance().getViewRoot().setLocale(locale);
    public PhaseId getPhaseId() {
    return PhaseId.RENDER_RESPONSE;
    private Locale extractLocale(String servletPath) {
    String[] array = servletPath.split("/");
    return new Locale(array[0]);
    }Here is the managed bean (I actually use spring):
    @Component("sculptureView")
    @Scope("request")
    public class SculptureView {
    private Logger log = Logger.getLogger("com.jeanbaptistemartin.view");
    private JbmService service;
    private Sculpture sculpture;
    public SculptureView() {
    log.info("Sculpture()");
    @Autowired
    public SculptureView(JbmService service) {
    log.info("Sculpture(JbmService service)");
    this.service = service;
    @Instance("#{sculptureView}")
    @HttpAction(value = "sculptureAction", pattern = "{locale}/sculpture/{id}")
    public String getBookById(@Param("id") int id, @Param("locale")String locale) {
    this.sculpture = service.findByID(id);
    log.debug("Locale: "+  locale);
    return "/sculpture.jsp";
    public Sculpture getSculpture() {
    return sculpture;
    public void setSculpture(Sculpture sculpture) {
    this.sculpture = sculpture;
    }The problem I get is that the jsp page still display today's date in french...
    Julien.
    I meant "sculpture" instead of "book"
    Edited by: balteo on Jul 10, 2008 5:51 AM

    Thanks a lot! You spotted a big mistake on my part.
    Otherwise, my lifecycle listener works when I use the RESTORE_VIEW phase (afterPhase method).
    Do you think it is the appropriate phase? Should I use another one?
    Julien.

  • How can I set the last mod of a file

    I get the last mod of a file (advanced file I/O palette -> File/Directory info)
    My problem is, that I download some files from a FTP-Server and the last mod of the downloaded file is not the same as on the ftp-server (the local file has always the time stamp from the downloaded date/time).
    I can list the timestamp from the files on the ftp-server, now I wanna change the last mod from my local file in the same as on the ftp-server.
    How can I make this?
    Thanks
    Regards
    Thomas
    Solved!
    Go to Solution.

    Hello TheDharmaInitiative,
    The "last modified" Attribute of a file can be altered programmatically using Windows API Functions.
    For LabVIEW i found a Post in a external Forum with some Sourcecode attached:
    http://www.labviewforum.de/index.php?s=c221d30094bfb9bd1edf87094f851b7f&showtopic=5895&st=0&p=28501&...
    For VB a Sourcecode Example can be found here:
    http://www.vbmonster.com/Uwe/Forum.aspx/vb/31547/Setting-a-file-s-timestamp
    To change the "last modified" Attribute manually a lot of Freeware and Open Source Tools are available:
    http://www.codeproject.com/KB/files/timestamp.aspx
    Regards
    Moritz M.

  • Setting the sticky bit on a file fails in a zone

    On initial inspection, the sticky bit on directories seem to be consistent across both the Global zone and local zone. However, they are inconsistent for files. Is this a bug, and if it is how to I raise a defect report?
    Excerpt from chmod man page:
    If a regular file is not executable and has {stick bit} set, the file is assumed to be a swap file. In this case, the system's page cache will not be used to hold the file's data. If the {stick bit} bit is set on any other file, the results are unspecified.
    Solaris 10 update 4 (Global Zone).
    # uname -a
    SunOS mumble.amtest.com 5.10 Generic_120011-14 sun4v sparc SUNW,Sun-Fire-T1000
    # chmod 1777 testfile
    # ls -l testfile
    -rwxrwxrwt 1 root other 0 Jul 11 14:24 testfile
    # chmod 1770 testfile
    # ls -l testfile
    -rwxrwx--T 1 root other 0 Jul 11 14:24 testfile
    # chmod 1000 testfile
    # ls -l testfile
    ---------T 1 root other 0 Jul 11 14:24 testfile
    Solaris 10 update 4 (Local Zone)
    # uname -a
    SunOS qatamos-z1 5.10 Generic_120011-14 sun4v sparc SUNW,Sun-Fire-T1000
    # chmod 1777 testfile
    # ls -l testfile
    -rwxrwxrwx 1 root other 10 Jul 10 14:59 testfile
    # chmod 1770 testfile
    # ls -l testfile
    -rwxrwx--- 1 root other 10 Jul 10 14:59 testfile
    # chmod 1000 testfile
    # ls -l testfile
    ---------- 1 root other 10 Jul 10 14:59 testfile

    It isn't the fact that the bit isn't set. I guess the biggest complaint is that there is no error when trying to set the bit.
    chmod returns success, even though it failed to set the bit.
    Normally, if someone does not have enough privileges to modify permissions on a file, an error is returned.

  • I am unable to set the classpath from unix shell script

    ) I am new to java, provide me the solution to my problem, as it is urgent
    I am unable to execute shell script on unix machine, the code is given below:
    Basically it is not setting the classpath
    dbUpload .java is astand alone java program to retrieve the report instance statistics from crystal server
    Created a jar file from dbUpload.java as
    Jar �cvf dbUpload.jar dbUpload.class
    Here is mycode(script.sh)
    CLASSPATH=/u01/CrystalList/cecore.jar:${CLASSPATH}:
    CLASSPATH=${CLASSPATH}:/u01/CrystalList/cereports.jar:
    CLASSPATH=${CLASSPATH}:/u01/CrystalList/dbUpload.jar:
    Export CLASSPATH
    Echo ${CLASSPATH}
    Java dbUpload

    venkat123,
    if the code you posted is the original code of your script - it has some misspellings. Please try this one - it works for me both on solaris and linux.
    #! /bin/bash
    CLASSPATH=/u01/CrystalList/cecore.jar:$CLASSPATH
    CLASSPATH=$CLASSPATH:/u01/CrystalList/cereports.jar
    CLASSPATH=$CLASSPATH:/u01/CrystalList/dbUpload.jar
    export CLASSPATH
    echo $CLASSPATH
    java dbUpload

  • Help, how to install jvm and set the classpath using a batch file

    hello,
    i have created my java application and now have to create an installable / batch file which will install the JVM on the users machine and also the java packages such as javamail and the class files that i have created . it also has to set the classpath.
    i would like to know if anyone can tell me how to go about iti.e. how can i install the JVM using a batch file and then place the javamial packages etc in the apropriate directory .
    or is it advisable to explain it to the user how to go about it in tht user manual.
    and would also like to know that if i install the JVM will the path for the java.exe be set
    or will i have to set the path explicitly from the "batch file" so that the user can run the application without and problem just by running the java command followed by filename from the command prompt.

    hi,
    I have windows and I use it.
    The only problem with the free edition is that you can only create 1 launcher and that during the installation you get 1 popup showing that the installer was created with an unregistered version.
    Stijn

  • How do I set the folder to which temporary files are saved?

    As of now, whenever I click "Open with..." when downloading a file, a copy of that file saves to my desktop and never gets cleared. I'd like to set the temporary folder so I can manually clear it periodically, but the only file management option I seem to have is to set downloads to always save in a certain folder--which does not appear to include "temporary" files. How can I change the destination folder for temporary downloads? And why does Firefox download and save the files before opening them? I don't want to save every PDF I read online, yet this seems to be the default setting in order to open files.

    You probably need to set that temp folder in the Safari Preferences to set them for other programs.
    Safari > Preferences > General > Save Dowloaded Files To
    You can also set the Boolean pref browser.helperApps.deleteTempFileOnExit to true on the about:config page.
    See also http://kb.mozillazine.org/about%3Aconfig

  • How to set the field size in rule file.

    i have to map total 30 fields in a rule file while by default it allows only 20 fields. so how can we set the fields as per our need?

    Hi Dharmendra Ojha,
    Essbase rule file does not constrain you with only 20 fileds.
    When you click on 'create a rule file', by default it ll show you 20 fileds .But , when you open a data file ( in your case , you data file has 30 columns i.e 30 fields) in the data prep editor , you ll see all 30 fileds .
    So ,you have to do nothing to increase the filed count , rule file will automatically show all fields .
    Revert back for further clarity
    Sandeep Reddy Enti
    HCC
    http://analytiks.blogspot.com

  • Setting the name of streamed zip file

    Hi,
    I have a servlet which creates a zip file with documents retrieved from a database. To create the zip file I am using the ZipOutputStream class and adding the documents one at a time to this object. This is all working fine.
    The problem I have is pretty simple, in that I can't seem to find a way in which to set the name of the zip file. This must be possible! At the moment it appears to be setting the name of the zip file to the name of the class that created it. In this case my class is called DocumentPacker and what comes back from the servlet is a zip file called DocumentPacker.zip. This wouldn't be so bad, but if you're creating the zip file for a user that does not have cookies enabled, it appends the session id to the end of the zip file name which i don't want.
    I am creating my ZipOutputStream like this:
    ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(response.getOutputStream()));
    and then adding the documents one at a time using a BufferedInputStream.).
    Any help on how to set the name would be much appreciated
    Thanks
    Claire

    Your servlet must set some headers on the HTTP response (Content-Type as "application/zip", Content-Disposition as "attachment; filename=yourfilename.zip")
    Read the RFC1806 document.
    Content-Type: application/zip
    Content-Disposition: attachment; filename=genome.jpeg

  • How to set the size of an Excel-file,Java created in tabbed forma

    Hi all,
    I'm creating an Excel-file by writing data to an outputStream in tabbed format.
    My problem is : How can I set the width of the columns of that Excel-file, not the default-size?
    If anyone can help, that would be very nice.
    Thanks a lot,
    Regards,
    Tim

    You can write a generic xls file containing a Macro to open and set the column widths of text or csv files. Your java program can then call this generic file to open your text files.

  • How to set the classpath for external .jar files after importing?

    Hi techs,
    How to set the classpath in WSAD5.1.2 after importing the .jar file to the WEB-INF/lib folder.
    urgent

    I got it.
    after importing the jar file to the perspective,we need to right click on project name, go to proprties,
    goto java build path,
    there we need to include the external jar files.

  • Setting the proxy in a configuration file

    Hello All, Is there a configuration file where you can set http.proxyHost and http.proxyPort for a jsp web app (maybe web.xml)? I'm using tomcat 4.1. The web app in question is behind a firewall and needs to go through a proxy server to pull information from the internet. I'm looking for a way that doesn't involve setting the proxy parameters within the code of the web app. I've also read that you can set environment variables with "CATALINA_OPTS = -DproxySet=true -DproxyHost='proxy host' -DproxyPort=8080", will this work for my situation and in what file would I add this line?

    I may be wrong but I think that the "Use System Proxy Settings" makes sense only on Linux and generally speaking "other OSes". As far as I know there is no generic proxy settings in Windows operating system.
    The one I know is in the registry part of Internet Explorer.
    So in my understanding in Windows, Use System Proxy Settings = No Proxy

Maybe you are looking for

  • Error filename measurement file

    Hi. In my project, I have used the Read Measurement File function to read .tdms file. When I run the program on another folder or another PC, then select Open file name an error occurred, error window appears. Although it did not do wrong program ope

  • HTML Tags appear in Notes : how to removing display HTML Correctly.

    Hi the Notes section of HTML CLient for service request, we are seeing HTML Tags appearing in the following format. <html><b>Some message/b></html> We want to make it appear in HTML format. Not with the HTML Tags. Is there some way to get rid of the

  • How to download the Upgrade Adobe Presenter 10 and get Serial?

    I purchased an upgrade of Adobe Presenter 10 but have not received any email from them. Any idea how to go about getting my serial number and download link. I have been struggling for 3 days to get in touch with adobe for this. Does anyone know of an

  • SSH motd system information

    So i saw this cool thing on an ubuntu system which shows the system usage information on login as some sort of motd. Googled something, and it looks something like this bob@b-desktp:~$ ssh [email protected] [email protected]'s password: Linux bckppc.

  • What version of imovie will run on Lion and where can I get it?

    What version of imovie will run on Lion and where can I get it?