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.

Similar Messages

  • Using VM level application constant to set the attributes on the interview screen

    Hi All,
    We have a Performed By as one of the interview question which should be defaulted with the user id of the person who launched the OPA session (through web determinations).
    There is a user-id application constant which is available at the VM layer. Is there a way to set the Performed By question on the interview screen with this user-id by modifying the VM templates?
    Please help.
    Thanks,
    KK

    I tried with that code, its giving compile error for this: Can you please let me know what I am missing here:
    PreSeedValues.java:44: isUnknown(com.oracle.determinations.engine.EntityInstance
    ) in com.oracle.determinations.engine.Attribute cannot be applied to ()
                    boolean userIdKnown = (! performedBy.isUnknown()) && (! performe
    dBy.isUncertain() );
    Because an attribute exists for an entity, it can have different values across different instances, so, when you try to get the value (or check its know/unknown state) you need to pass in the entity instance. In you case the global entity instance: performedBy.isUnknown(ruleSessionGlobal) and performedBy.isUncertain(ruleSessionGlobal)
    Also, one more thing, we have around 50 different screens and each screen has this performed by attribute with different name. Now to set this in code, it would not be a good idea to write 50 lines for different performed by attributes. Can we have something like getting the screen name for the current screen in user context and user that as a prefix for the attrubute name. e.g. RA0084_Sheet_Performed_By in this RA0084_Sheet will be the interview screen name.
    It sounds like you want to set the user id when each screen is submitted. The OnInvestigationStartedEvent will only fire once, when the investigation starts. If you want to set an attribute when a screen is submitted, you probably want to use something like a OnValidateScreenEventHandler which is fired when a screen is submitted and has the screen details in the event.
    See Events and Event Handlers in Oracle Policy Automation Developer's Guide

  • Can I use a colour palette control to set the colour of an LED on front panel?

    Hi,
    I want to allow the user of my LabView program to be able to set the colour of an enlarged LED on the front panel using a colour palette control also on the front panel. Is this possible or can the LED only be the colour it is set to in its properties dialogue box?
    Thanks,
    Dave.

    The question is of course: "Does it really need to be a boolean LED that has a True/False and all the boolean logic???
    If you just want an LED lookalike where the color can be easily controlled programmatically I would recommend a color box indicator instead. You can even customized it to look like an LED! The attached example (LabVIEW 7.1) shows both methods, but the color box option is programmatically much less messy (no bundling, no array building, no property nodes!).
    (To make the LED color box indicator, I customized a plain color box and simply imported the graphic elements from the regular LED indicator.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ColorBoxLED.vi ‏22 KB

  • I have an A2300 camera and don't know how to use it. How do you set the time/date.

    I am a novice at this.  I can take pictures, buy can't find them. Does the cd that came with the camera show how to 
    operate the camera. What is the function key for and how do you use it.
    Any help would be appreciated.
    Thanks,
    Tross.

    Hello Tross!
    When you take images, provided that you have a memory card inserted, they are saved direct to the card.  They can be accessed in camera by going into the Playback menu.  There is a CD that has an instruction manual on it that does show you how to use the camera.  If you do not have this, you can download the manual here.
    The Function/ Set button serves two main functions.  One, it displays a small menu where you set the shooting mode and image quality options.  Second, all setting that need to be confirmed are done with the Function/ Set button. 
    Changing the date and time settings
    1. Press the Menu button.
    3. The Tools Menu appears.  Go to Date and Time.
    4. Next, operate the date and time screen:
     Set the year, month, date, and time.
     Change the year, month, and date.
    - Set the daylight saving time (one hour is added to the current time).
    5.  After the settings are completed, press the ) button.
    We hope this helps answer your questions and that you enjoy the camera.  If you need to contact us immediately, please feel free to contact us through the web site.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • When using my new US ipad for the first time my computer switched it to an Australian format (where we used to live) How do I set the default to all US settings on all of my iproducts? I set them individually but when they sync with my comp they b/c AU

    When syncing my iPad for the first time to my iTunes (which was in Australia at one time but no longer) my iPad defaulted to the Australian format for phone numbers and each contact listed was now an Australian address. My iTunes is set to the USA. How/Where do I change the setting? It also changes the default to Australia on each of my iTouches and iPhones.
    Thanks!

    thanks for the help

  • Why does the tab order I set change when I enable usage rights?

    I am using Adobe Pro 9.1.2 - set the tab order manually in a 4 page document - test everything - works great.  Then, I enable usage rights, go back into the document to test, and the tabbing is out of order again.  I have done this multiple times and what should have been a simple task is now taking hours to complete.  Help!!!  This didn't happen until I upgraded to this version.

    Helvetica Neu 10 pt is the default text style for Numbers tables.
    Setting a different style to one, some, or all cells does not make that different style the 'default.' Here's an example of the effects of three different sets of actions. All cells in the table had been set to display text as Jazz LET, 12 pt. The original content of B3, C3, and D3 was the same as is shown in C4. For each of the cells in row 3, the procedure described below was carried out, then the text shown was typed into the cell.
    When you Select a cell, then "Cut" the cell, the cut includes the text AND any style that has been set for that cell, and the cell reverts to the default style. See cell B3 in the example.
    If you Select the cell, Copy, then press delete, the text (and style) are copied, the content (text), but not the style, is deleted. See C3.
    If you click on the cell to select it, click again to place the insertion point in the cell (to edit the text), then Select the text and press delete (or Cut), then the text is removed from the cell, but the style remains. See D3.
    Regards,
    Barry

  • Error when tried to set the PreserveSequence property in a map to "yes"

    Hi there,
    I have a lab ORU^R01 msgs  that has multiple OBR and OBX segments, I tried to preserve the order by setting the PreserveSequence property but in run time i get this error:
    The variable or parameter "http://schemas.microsoft.com/Biztalk/2003/var:v14' is either not defined or it is out of scope.
    I have to geth this sorted as the users do not want them out of order.
    Can I get help on this please,
    sushma

    Hi Shushmakad,
    If you set Preserve Sequence Property=true. BizTalk will always expect source node will be in sequence, but you have option to change sequence of destination schema by updating xslt.
    Can you test your map with sample input message with sequence.  
    Debug xslt (use this url for reference) 
    http://msdn.microsoft.com/en-us/library/ms255602(v=vs.110).aspx
    Regards
    Suman

  • AddField Properties - Is there a documented order to set them?

    Today I experienced something odd. Using the code below my text fields were all being added correctly and formatted "mostly" corrected except with respect to the textSize property. Using this code the textSize property will not set.
    var f = this.addField(nbBookmarks(i), "text", nbPageNum(i) - 1, nbCoords);
         f.multiline = true;
         f.borderStyle = border.s;
         f.strokeColor = color.black;
         f.fillColor = color.white;
         f.lineWidth = 1;
         f.style = style.cr;
         f.textSize = 9;
         f.display = display.visible;
    On a hunch, I moved the textSize property line to the top (as shown below) and the textSize property sets fine.
    var f = this.addField(nbBookmarks(i), "text", nbPageNum(i) - 1, nbCoords);
         f.textSize = 9;
         f.multiline = true;
         f.borderStyle = border.s;
         f.strokeColor = color.black;
         f.fillColor = color.white;
         f.lineWidth = 1;
         f.style = style.cr;
         f.display = display.visible;
    Is the "order" of setting the properties of a field documented somewhere? If so, can you please direct me to that place? And if this is right in front of me somewhere and I just can't see it, I apologize.
    Thank you.

    Wow. Of course it did. I took it out and now the property order doesn't seem to matter. Nothing like some litter to disturb things.
    Thanks George. Gold star for you.

  • IMAQ 1394 version 2.0 - setting the shutter integration time

    I am using IMAQ 1394 version 2.0 with a CCDdirect firewire camera.  I am trying unsuccessfully to set the shutter attribute  in absolute mode to a value of several seconds.  I cant seem to get an integration time greater then .13 seconds to be accepted, even when I try to set it in MAX.  Any suggestions would be appreciated.  I am also using Labview 7.1 Developers suite
    thanks,
    Ronen

    Hello Ronen,
    I'm not familiar with CCDdirect cameras.  Is there a particular model that you are using?
    What happens when you set the value greater than 0.13 seconds?
    Some cameras that I have worked with in the past require that the camera be placed in an "extended" shutter mode in order to use long integration times.  Does your camera offer any additional shutter modes that will allow you to increase this value? 
    What shutter/integration time attributes show up in MAX?  These attributes and there values/ranges are read directly in from the camera.  I have also worked with some cameras in the past that have additional attributes that do not show up in MAX.  Typically these are attributes/features that are not part of the DCAM compliance.  MAX and the IMAQ 1394 driver only access DCAM specific features.  If the correct values do not show up, perhaps the camera manufacturer can show you how to set these attributes.
    Let me know the answers to the above questions if you are still unable to accomplish what you need.  I would be more than happy to help out in any way possible.
    Best Regards,
    Jesse D.
    Applications Engineering
    National Instruments

  • How can I set the default home page for all new users in Firefox 4

    I'm trying to deploy FF 4.0rc1 in a corporate environment but I can't find a way to set the default home page or any other settings for that matter.
    Is there a way to set the default home page for all new users and lock it so that the users can't change home page?
    Best regards
    Jonas

    In Firefox 4 the template folder for new profiles (C:\Program Files\Mozilla Firefox\defaults\profile\
    ) doesn't exist. You can create that \defaults\profile\ folder and place a file user.js in it with the prefs that you want to initialize.
    See:
    *http://www-archive.mozilla.org/catalog/end-user/customizing/briefprefs.html
    You can also use a mozilla.cfg file to set the default value for prefs.<br />
    See: http://kb.mozillazine.org/Locking_preferences
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes
    lockPref(); // lock pref, disallow changes

  • Setting the image size within a JFrame!

    This is the code i have implemented
    import javax.swing.*;
    import java.awt.*;
    class SampleJFrame extends JFrame
         JLabel l1;
         ImageIcon image;
         SampleJFrame()
              image=new ImageIcon("G:/java files1/images/aa.jpg");
              l1=new JLabel("DEDICATION",image,JLabel.RIGHT);
              l1.setSize(100,100);
              //this.setLayout(new FlowLayout(FlowLayout.RIGHT));
              this.add(l1);
    public class JFrame2
         public static void main(String args[])
              SampleJFrame samplejframe=new SampleJFrame();
              samplejframe.setTitle("FRAMES WITH JLABELS WITH IMAGEICON");
              samplejframe.setSize(400,400);
              samplejframe.setVisible(true);
    }When i run this the image occupies the entire JFrame.I want to resize it to a width of around 100,80 pixels.How can i do it?
    I know when i draw a image without linking to a label i can use drawImage of Graphics class to set the size of the image.But in this case i am linking the image to the JLabel and it's occupying the entire screen and the text with the JLabel is thrown somewhere out.

    Read it.Got a lot of info from that.But the trouble with mine is that i am linking the image to the JLabel and thats why i am unable to set its size because the image will be added to the JPanel when i add the JLabel to it?If i was directly printing the image i would have rather used Graphics.drawImage( ) where i can manually specify the width.

  • How to set the prompt of a Spark Combobox programmatically

    Hi,
    here a Combobox wich use my cutom Skin to manaully set the prompt:
    <s:ComboBox id='artistNameCB' labelField="artistName"                         
              skinClass="view.music.skins.ArtistComboBoxSkin"
                                    />
    here is the reklevat part of the Skin:
    <!--- @copy spark.components.ComboBox#textInput -->
        <s:TextInput id="textInput"
               text='select'
                     left="0" right="18" top="0" bottom="0"
                     skinClass="spark.skins.spark.ComboBoxTextInputSkin"/>
    How do I set the displayed text of a combobox  programmatically ?

    ArtistComboBoxSkin(artistNameCB.skin).textInput.text = "prompt"

  • Setting the aspect ratio of an image

    Hi
    Is it possible to specify the aspect ratio of an image? I have a bunch of video shots in my library and they all have non-square pixels so would like to "set" their aspect ratio.
    Thanks upfront!

    If you are using an analog camera, you can set the aspect ratio in MAX. This will correct for non-square pixels.
    If you are using a digital camera, I don't think there is a way to fix it during acquisition. You could resample the image to correct the ratios, but that would be a slow, time consuming process.
    One other possibility is that your computer monitor is in a mode which is not a standard 4x3 configuration. For example 640x480 and 800x600 are 4:3 ratios. 1200x1024 is not, which tends to distort your displayed images.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How to set the Server CLASSPATH?

    Hi all Oracle Java experts,
    I know this is a rather stupid questions:
    Where can I set the CLASSPATH of the Servlet Engine in Oracle 8.1.7.?
    I spent hours now searching the documentation and found loads of hints what to add to the CLASSPATH in which circumstances, but not how to... Of course I know how to use the CLASSPATH in a normal Java environment, but not in the OSE.
    In the "Oracle8i Application Developer's Guide - XML" it says in the "Using XSQL Servlet" Chapter:
    "How you set the CLASSPATH of the web server's Servlet environment and how you associate a Servlet with a file extension are done differently for each web server. The XSQL Servlet's Release Notes contain detailed setup information for specific web servers you might want to use with XSQL Pages."
    Unfortunately, the Release Notes contain this information for Tomcat, Apache JServ etc., but not for Oracle's own Servlet Engine... Maybe you should include that information.
    Thanks for any help;-)
    Cheers
    Olaf
    null

    Not sure if I understatnd the context in which you want to set your classpath.
    IDE, java or system but ...
    look at the profile file /etc/profile
    CLASSPATH= "/usr/local/jdk1.4......"
    export CLASSPATH
    or
    javac -classpath .;/usr/local/jkd1.4.... test.java
    or
    whatever your ide provides.

  • Setting the cost center ranges in BD21

    Hi All
    The BD21 transaction code is used for transfer the data between the two system by change pointer.
    is it possible to setting the cost center ranges In BD21 transaction code.
    Please Confirm
    Thanks & Regards
    K.Gunasekar.

    Hi All
    I am planning to schedule the COSMAS report in background mode by using Varient.
    is it possible to setting the cost center message type COSMAS varient ranges In BD21 .
    Thanks & Regards
    K.Gunasekar.

Maybe you are looking for

  • Any way to set up iWeb pages for file download / sharing?

    I have been using .Mac Homepage to set up several web pages to share audio files with my clients. I have been able to set up a different web page for each client, each with their own password, with files there for them to download. Is there a way to

  • How to visualise continues Data aquisition from a PCI 6602 with 2121 BNC connector board in C++ ?

    Hello everyone, We are trying to get on the screen the aquired pulses from our  PCI 6602 with a 2121 BNC connector board, from several devices. We are able to read the data and save without problem, but we cannot look at it while we are measuring. An

  • Multiple key lookups to the same dimension

    I have a fact table that has columns old_item and new_item. These are both foreign keys to the items dimension. The source has old and new item codes. Therefore I want to do two key lookups to the item dimension. Using the key lookup function the gen

  • Question for the O2CB_HEARTBEAT_THRESHOLD option

    Hi, I am trying to install a two node rac cluster with RHEL 5.5 and OCFS2. On page http://oss.oracle.com/projects/ocfs2/dist/documentation/v1.2/ocfs2_faq.html (FAQ 105) there is a formula used to calculate the O2CB_HEARTBEAT_THRESHOLD: O2CB_HEARTBEAT

  • Merging f4v files into a single file

    Hello All, Can I merge/ combine multiple f4v files into a single f4v file using Adobe premiere pro? If yes, can someone let me know the procedure? I am completely new to Premiere pro. Thanks in advance. Asavari