Component Resource Keys

Hello Everyone, i would like to know if there is a list of every key for every component, that one can use to map to a resource file, for example the key for every display label available in the DataTable component. thank you in advance
best regards
Ruben

Don't you just mean the UIViewRoot?

Similar Messages

  • Software component with Key ID does not exist

    Hi Friends,
               Here I am in need of your help. I got involved in an upgrade from XI 3.0 to PI 7.1. The Basis has imported all the SWC & Business systems from XI 3.0. When I am trying to activate the objects imported from IR of XI3.0 then It is triggering an error as
    data retrieving failed from Adapter Metadata  | RFC http://sap.com/xi/XI/System. /// ROA_MOA_NOTCOMPLETED.
                Because of this I am unable to activate the imported objects in ID by showing the message as Software component with key ID XXXXXXXXXXXXXXXXXXXXX  does not exist.
                when I went there to ESR then under a software component I found a message under underlying components  like             " XXXXXXXXXXXXXXXXXXXXX not exist"  but I am not aware of the object related to that Key ID.
    Please help me out in this . Thanking you in Advance.
    Regards,
    Sridhar

    Hi Neeetesh,
             I got the alternative solution for my problem. All credit goes to you. I recreated the communication channels instead of using the same ones after Upgrad. Any way we need to change the communication channels after importing the channels but the system is giving the above error message as   "Adapter Software component with Key ID XXXXXXXX......  does not exist".
             But its allowing me to create a new channel. Then based on the neetesh suggestion, I went through and create the new comm channels instead of wasting so much time on the same issue.
            Thanks a lot Neetesh.     
             I am really sorry for not giving your  points.  I am assigning points  now with great pleasure. Here you go.
    Regards,
    Dasari.

  • Can't find resource key "BeanUtils.NoGetter"

    I am running a simple jsp page that looks at a JavaBean. Here is my error.
    500 Internal Server Error
    /test/UsingInterestBean.jsp:
    Can't find resource key "BeanUtils.NoGetter" in base name allaire/jrun/jsp/resource.properties
    java.util.MissingResourceException: Can't find resource key "BeanUtils.NoGetter" in base name allaire/jrun/jsp/resource.properties
         at allaire.jrun.util.RB.getString(../util/RB.java:226)
         at allaire.jrun.util.RB.getMessage(../util/RB.java:681)
         at allaire.jrun.util.RB.getString(../util/RB.java:435)
         at allaire.jrun.jsp.BeanUtils.getProperty(../jsp/BeanUtils.java:67)
         at allaire.jrun.jsp.JRunJSPStaticHelpers.getBeanProperty(../jsp/JRunJSPStaticHelpers.java:294)
         at jrun__UsingInterestBean2ejsp16._jspService(jrun__UsingInterestBean2ejsp16.java:83)
         at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:40)
         at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013)
         at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925)
         at allaire.jrun.servlet.JRunNamedDispatcher.forward(../servlet/JRunNamedDispatcher.java:34)
         at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:175)
         at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013)
         at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925)
         at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispatcher.java:88)
         at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1131)
         at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:330)
         at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:107)
         at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
         at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
    Thanks for your help in advance.

    This error:
    >
    Can't find resource key "BeanUtils.NoGetter" in base
    name allaire/jrun/jsp/resource.properties
    java.util.MissingResourceException: Can't find
    resource key "BeanUtils.NoGetter" in base name
    allaire/jrun/jsp/resource.properties
    is saying that in the file called resource.properties , it is unable to find the key called BeanUtils.NoGetter ---- the properties file is a resource bundle , it is supposed to have key value pairs , whatever application is trying to access that resource bundle is looking for the key but unable to find it.
    You can debug your code and see what part of your code is trying to access the key called "BeanUtils.NoGetter" in the properties file and see if you could comment out the code.
    If you can't modify that code then check with Allaire / JRun support team or their forums because the property file is theirs.

  • Hlep in deleting Componantes using Key event listeners.

    Hi All,
    I am tring to write a GUI program. I am dragging componets from the left side of the panel to the right side of the panel. Everything works well as of now. But i am tring to delete the componets which i placed on the right side of the paenl using key stroke events. Can anyone tell how this can be done. I have like labels and textfield componeets.
    Please help
    Smitha

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.Border;
    public class KeyDeletion extends JPanel {
        JComponent selectedComponent;
        public KeyDeletion(JFrame f) {
            setLayout(null);
            Dimension d = new Dimension(65,25);
            for(int j = 0; j < 4; j++) {
                JLabel label = new JLabel("label " + (j+1),
                                           JLabel.CENTER);
                label.setBorder(BorderFactory.createEtchedBorder());
                int x = 20 + j*(d.width + 25);
                int y = 20 + j*(d.height + 75);
                label.setBounds(x, y, d.width, d.height);
                add(label);
            addMouseListener(ma);
            registerKey(f);
        /** Press the "x" key to delete selected label. */
        private void registerKey(JFrame f) {
            JRootPane jrp = f.getRootPane();
            int c = JComponent.WHEN_IN_FOCUSED_WINDOW;
            jrp.getInputMap(c).put(KeyStroke.getKeyStroke("X"), "DELETE");
            jrp.getActionMap().put("DELETE", deleteAction);
        public static void main(String[] args) {
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            KeyDeletion panel = new KeyDeletion(f);
            f.add(panel);
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
        private MouseAdapter ma = new MouseAdapter() {
            Border etched = BorderFactory.createEtchedBorder();
            Border select = BorderFactory.createLineBorder(Color.red);
            JComponent lastSelection;
            public void mousePressed(MouseEvent e) {
                Point p = e.getPoint();
                Component[] c = getComponents();
                boolean haveSelection = false;
                for(int j = 0; j < c.length; j++) {
                    Rectangle r = c[j].getBounds();
                    if(r.contains(p)) {
                        setSelection(c[j]);
                        haveSelection = true;
                        break;
                if(!haveSelection && selectedComponent != null) {
                    setSelection(null);
            private void setSelection(Component c) {
                selectedComponent = (JComponent)c;
                if(c != null)
                    selectedComponent.setBorder(select);
                if(lastSelection != null)
                    lastSelection.setBorder(etched);
                lastSelection = selectedComponent;
        private Action deleteAction = new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                if(selectedComponent != null) {
                    remove(selectedComponent);
                    selectedComponent = null;
                    repaint();
    }

  • Moving a component with keys in UI

    hi ...
    I want to have a component (or image) in my mobile screen that should be moved when i press left-arrow / right arrow keys. It should be something like a small bar having the capability to move left n right. Can anybody tell me what should I use for it, i mean a button or bar or something else?? Any expert idea, then plz help!!!
    Raheel.

    You can use some image on Canvas and its Game Events...

  • Are "?" in resource keys supported?

    I have two keys in my resjson file
    "key" and "key?". When I try to get the value for "key?" WinRT always returns the value for "key". Does it not support "?" in keynames?

    Thanks Franklin for confirming this behaviour. I wonder if that is intentional, by design, or just a bug. Maybe someone from the product team can shed some light on that?
    Hi pkursawe,
    This is by design, here are the steps how I locate the key point:
    Go to the Definition of WinJS.Resources.getString -> Go to the Definition of
    WinJS.Resources._getStringWinRT
    _getStringWinRT: function (resourceId) {
    if (!resourceMap) {
    var mainResourceMap = Windows.ApplicationModel.Resources.Core.ResourceManager.current.mainResourceMap;
    try {
    resourceMap = mainResourceMap.getSubtree('Resources');
    catch (e) {
    if (!resourceMap) {
    resourceMap = mainResourceMap;
    var stringValue;
    var langValue;
    var resCandidate;
    try {
    var resContext = WinJS.Resources._getResourceContext();
    if (resContext) {
    resCandidate = resourceMap.getValue(resourceId, resContext);
    } else {
    resCandidate = resourceMap.getValue(resourceId);
    Modeled on the above method, we can create a Windows Store app using C#:
    var mainResourceMap = Windows.ApplicationModel.Resources.Core.ResourceManager.Current.MainResourceMap;
    mainResourceMap.GetValue("Key?");
    Go to the Definition of Windows.ApplicationModel.Resources.Core.ResourceMap.GetValue, you will see the following information, this will tell us the truth:
    //Parameters:
    //   resource:
    //     A resource specified as a name or reference.The resource identifier is treated
    //     as a Uniform Resource Identifier (URI) fragment, subject to Uniform Resource
    //     Identifier (URI) semantics. For example, getValue(Caption%20) is treated
    //     as getValue(Caption ). Do not use ? or # in resource identifiers, as they
    //     terminate the named resource path. For example, Foo?3 is treated as Foo.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Component failure on the DB server

    My SCCM 2012 DB servers has a red cross but no alerts ..
    My compmon.log show
    Checking components ... SMS_COMPONENT_MONITOR 5/24/2012 5:30:12 PM 3764 (0x0EB4)
    Failed to read the required Operations Management component registry key values on local computer; error = 6 (0x6). SMS_COMPONENT_MONITOR 5/24/2012 5:30:12 PM 3764 (0x0EB4)
    Failed to read in current property values and initialize COpsMgmtComponent object; error = 6 (0x6). SMS_COMPONENT_MONITOR 5/24/2012 5:30:12 PM 3764 (0x0EB4)

    DB component can be found under site status. Everything seems to work fine. We have the Database installed on a a different SQL server. What logs, do you want to see?
    The database server compmon.log
    Waiting until the next polling cycle in 300 seconds from now. SMS_COMPONENT_MONITOR 3/8/2013 9:52:22 AM 2604 (0x0A2C) Checking components ... SMS_COMPONENT_MONITOR 3/8/2013 9:57:22 AM 2604 (0x0A2C) Waiting until the next polling cycle in 300 seconds from
    now. SMS_COMPONENT_MONITOR 3/8/2013 9:57:22 AM 2604 (0x0A2C) Checking components ... SMS_COMPONENT_MONITOR 3/8/2013 10:02:22 AM 2604 (0x0A2C) Waiting until the next polling cycle in 300 seconds from now. SMS_COMPONENT_MONITOR 3/8/2013 10:02:22 AM 2604 (0x0A2C)
    Info>: Polling components ... SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:00 AM 5400 (0x1518) The machine account will be used for ["Display=\\database.domain.local\"]MSWNET:["SMS_SITE=AMS"]\\database.domain.local\. SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013
    5:00:00 AM 5400 (0x1518) Successfully made a network connection to \\database.domain.local\ADMIN$. SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:00 AM 5400 (0x1518) CWmiRegistry::GetStr: Failed to get string value Time of Last Heartbeat SMS_COMPONENT_STATUS_SUMMARIZER
    3/8/2013 5:00:00 AM 5400 (0x1518) Info>: Seeing if any component records need to be replicated. SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:01 AM 5400 (0x1518) Info>: Since this is primary site, we do not need any replication. Removing component records
    from database that are marked for deletion. SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:01 AM 5400 (0x1518) Info>: Done processing any records marked as needing replication. SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:01 AM 5400 (0x1518) Cancelling
    network connection to \\database.domain.local\ADMIN$. SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:01 AM 5400 (0x1518) Info>: Removing any orphaned data from the summary list and the datastore. SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:01 AM 5400 (0x1518)
    Info>: Updating the datastore SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:01 AM 5400 (0x1518) ---->: Updating any component rows that have changed. SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:01 AM 5400 (0x1518) ---->: Updated datastore for "SMS_COMPONENT_MONITOR"
    on "database.domain.local" SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:01 AM 5400 (0x1518) ---->: Updated datastore for "SMS_EXECUTIVE" on "database.domain.local" SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:01 AM 5400 (0x1518) ---->: Updated datastore
    for "SMS_MP_FILE_DISPATCH_MANAGER" on "database.domain.local" SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:01 AM 5400 (0x1518) ---->: Updated datastore for "SMS_OUTBOX_MONITOR" on "database.domain.local" SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:01
    AM 5400 (0x1518) ---->: Updated datastore for "SMS_SITE_SQL_BACKUP_siteserver.domain.local" on "database.domain.local" SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:01 AM 5400 (0x1518) ---->: Updated datastore for "SMS_SRS_REPORTING_POINT" on "databaserver"
    SMS_COMPONENT_STATUS_SUMMARIZER 3/8/2013 5:00:01 AM 5400 (0x1518)

  • Crash when using Dimensions version plug-in - key Failed to {0} file {1}

    Oracle JDeveloper 11.1.1.3.0 (JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660)
    Versioning Support (for Dimensions) 11.1.1.3.37.56.60
    I've used "Versioning | Configure" to disable SVN support so that Dimensions is my only enabled extension. No matter what I have selected in the Application Navigator, I cannot get anything enabled on the 'Versioning' menu other than Download and Configure. If I download, I'm prompted to login (testing the connection works fine), and then the "Log Out" menu option is enabled, but no others.
    I've got an application with one project that I've created and added to Dimensions via the Dimensions client. Attempting to download this project into JDeveloper using either the "Download" option from the versioning menu, or the right-click | download from the "Versioning Navigator" fails. If I do it from the Versioning menu, I get the 'Download' dialog and the OK button is enabled, but after entering a destination and clicking OK nothing happens (no error, dialog remains).
    If I use the Versioning Navigator and right-click, I can select my Dimensions project, enter a destination, and click ok and a crash occurs. Details of the error are below:
    Performing action Download...[ from oracle.jdevimpl.vcs.nav.VersioningNavigatorManager$2 ]
    Invoking command: [ from oracle.jdevimpl.vcs.nav.VersioningNavigatorManager$2 ]
    java.util.MissingResourceException: Can't find resource for bundle oracle.jdevimpl.vcs.dimensions.res.Resource, key Failed to {0} file {1}
    j.util.ResourceBundle.getObject(ResourceBundle.java:384)
    j.util.ResourceBundle.getObject(ResourceBundle.java:381)
    j.util.ResourceBundle.getString(ResourceBundle.java:344)
    o.ji.vcs.dimensions.res.Resource.get(Resource.java:23)
    o.ji.vcs.dimensions.res.Resource.format(Resource.java:31)
    o.ji.vcs.dimensions.session.DMVersionOperation.convertToDMException(DMVersionOperation.java:98)
    o.ji.vcs.dimensions.session.DMDownload.downloadFolder(DMDownload.java:84)
    o.ji.vcs.dimensions.nav.cmd.DMDownloadCommand$1.doInvocation(DMDownloadCommand.java:308)
    o.j.vcs.spi.VCSDirectoryInvokable.runInvokableImpl(VCSDirectoryInvokable.java:199)
    o.j.vcs.spi.VCSDirectoryInvokable.runInvokable(VCSDirectoryInvokable.java:117)
    o.ji.vcs.dimensions.nav.cmd.DMDownloadCommand.invokeCommandImpl(DMDownloadCommand.java:258)
    o.ji.vcs.dimensions.op.DMAbstractOperation$1.doCommitOperation(DMAbstractOperation.java:102)
    o.j.vcs.spi.VCSDialogCommitter$1.run(VCSDialogCommitter.java:82)
    Any thoughts?

    I get that error too, only when checking in a new item.
    Got it in Dimensions 2009R02 and 2009R03
    /Kim

  • IT Resource information in pre-pop adapter

    Hi,
    I have a pre-populate adapter that queries the database. How do I map the db connection parameters with the IT resource parameters of the DB. I do see the option
    'IT resources ' while mapping the variables, but I am not able to map them exactly to the url, driver,admin user Id, password etc.
    Thanks,
    Supreetha

    You wont be able to do that from a pre pop adapter .
    However , you have 2 options
    - Map the It Resource and collect the long It resource key in your java code and using API's get the IT resource details
    - Map the variable to literal and pass IT Resource name as String (only in case when you have only 1 IT Resource )and using API's get the details.
    Thanks
    Suren

  • Problem with SCCM 2012 R2 Component status messages

    Hello,
    I have a strange problem with Component status messages. When I try to view all messages from any component, I receive an error message stating that the data could not be recieved from the database. Reporting point is installed.
    And when I try to run a report, nothing happens. The report doesn't run.
    Any idea??

    Oooopsss... Status messages disappeared again !! nothing suspect in srsrp.log and compmon.log.
    There are these entries in compsumm.log that got my attention
    The machine account will be used for ["Display=\\DataBaseServer.domain\"]MSWNET:["SMS_SITE=CPS"]\\DataBaseServer.domain\.~  $$<SMS_COMPONENT_STATUS_SUMMARIZER><12-17-2014 20:00:00.643+300><thread=3152 (0xC50)>
    Successfully made a network connection to \\DataBaseServer.domain\ADMIN$.~  $$<SMS_COMPONENT_STATUS_SUMMARIZER><12-17-2014 20:00:00.643+300><thread=3152 (0xC50)>
    Failed to read Operations Management component registry key values on DataBaseServer.domain; error = 5 (0x5).~  $$<SMS_COMPONENT_STATUS_SUMMARIZER><12-17-2014 20:00:00.909+300><thread=3152 (0xC50)>
    Failed to read in current property values and initialize COpsMgmtComponent object; error = 5 (0x5).~  $$<SMS_COMPONENT_STATUS_SUMMARIZER><12-17-2014 20:00:00.909+300><thread=3152 (0xC50)>
    Error: Failed to initialize the COpsMgmtComponent object for component SMS_SITE_SQL_BACKUP_S206UT24.CSDPS.QC.CA on machine DataBaseServer.domain. : L’opération a réussi.~~  $$<SMS_COMPONENT_STATUS_SUMMARIZER><12-17-2014 20:00:00.909+300><thread=3152
    (0xC50)>

  • ModelReference value used as a key with output_text

    I think that it would be good to enable the use of the modelReference value as a key with output_text, through an additional attribute.
    Example : instead of corresponding to the actual description of a product, the modelReference value would be the key to the locale-sensitive description.
    Wouldn't it be necessary to support this scenario ?
    Thanks in advance.

    This can be done through the renderer. If you have a convention for naming resource keys, the renderer can recognize the value is a key and look it up in a resource ...

  • Help with understanding key event propagation

    Hello,
    I am hoping someone can help me understand a few things which are not clear to me with respect to handling of key events by Swing components. My understanding is summarized as:
    (1) Components have 3 input maps which map keys to actions
    one for when they are the focused component
    one for when they are an ancestor of the focused component
    one for when they are in the same window as the focused component
    (2) Components have a single action map which contains actions to be fired by key events
    (3) Key events go to the currently focused component
    (4) Key events are consumed by the first matching action that is found
    (5) Key events are sent up the containment hierarchy up to the window (in which case components with a matching mapping in the WHEN_IN_FOCUSED_WINDOW map are searched for)
    (6) The first matching action handles the event which does not propagate further
    I have a test class (source below) and I obtained the following console output:
    Printing keyboard map for Cancel button
    Level 0
    Key: pressed C
    Key: released SPACE
    Key: pressed SPACE
    Level 1
    Key: pressed SPACE
    Key: released SPACE
    Printing keyboard map for Save button
    Level 0
    Key: pressed SPACE
    Key: released SPACE
    Level 1
    Key: pressed SPACE
    Key: released SPACE
    Printing keyboard map for Main panel
    Event: cancel // typed SPACE with Cancel button having focus
    Event: save // typed SPACE with Save button having focus
    Event: panel // typed 'C' with panel having focus
    Event: panel // typed 'C' with Cancel button having focus
    Event: panel // typed 'C' with Save button having focus
    I do not understand the following aspects of its behaviour (tested on MacOSX although I believe the behaviour is not platform dependent):
    (1) I assume that the actions are mapped to SPACE since the spacebar clicks the focused component but I don't explicitly set it?
    (2) assuming (1) is as I described why are there two mappings, one for key pressed and one for key released yet the 'C' key action only has a key pressed set?
    (3) assuming (1) and (2) are true then why don't I get the action fired twice when I typed the spacebar, once when I pressed SPACE and again when I released SPACE?
    (4) I read that adding a dummy action with the value "none" (i.e. the action is the string 'none') should hide the underlying mappings for the given key, 'C' the my example so why when I focus the Cancel button and press the 'C' key do I get a console message from the underlying panel action (the last but one line in the output)?
    Any help appreciated. The source is:
    import javax.swing.*;
    public class FocusTest extends JFrame {
         public FocusTest ()     {
              initComponents();
              setTitle ("FocusTest");
              setLocationRelativeTo (null);
              setSize(325, 160);
              setVisible (true);
         public static void main (String[] args) {
              new FocusTest();
    private void initComponents()
         JPanel panTop = new JPanel();
              panTop.setBackground (java.awt.Color.RED);
    JLabel lblBanner = new javax.swing.JLabel ("PROPERTY TABLE");
    lblBanner.setFont(new java.awt.Font ("Lucida Grande", 1, 14));
    lblBanner.setHorizontalAlignment (javax.swing.SwingConstants.CENTER);
              panTop.add (lblBanner);
              JPanel panMain = new JPanel ();
              JLabel lblKey = new JLabel ("Key:");
              lblKey.setFocusable (true);
              JLabel lblValue = new JLabel ("Value:");
    JTextField tfKey = new JTextField(20);
    JTextField tfValue = new JTextField(20);
    JButton btnCancel = new JButton (createAction("cancel"));     // Add a cancel action.
    JButton btnSave = new JButton (createAction("save"));          // Add a sve action.
              panMain.add (lblKey);
              panMain.add (tfKey);
              panMain.add (lblValue);
              panMain.add (tfValue);
              panMain.add (btnCancel);
              panMain.add (btnSave);
              add (panTop, java.awt.BorderLayout.NORTH);
              add (panMain, java.awt.BorderLayout.CENTER);
    setDefaultCloseOperation (javax.swing.WindowConstants.EXIT_ON_CLOSE);
    // Add an action to the panel for the C key.
              panMain.getInputMap (JComponent.WHEN_IN_FOCUSED_WINDOW).put (KeyStroke.getKeyStroke (java.awt.event.KeyEvent.VK_C, 0), "panel");
              panMain.getActionMap ().put ("panel", createAction("panel"));
              // FAILS ???
              // Add an empty action to the Cancel button to block the underlying panel C key action.
    btnCancel.getInputMap().put (KeyStroke.getKeyStroke (java.awt.event.KeyEvent.VK_C, 0), "none");
    // Print out the input map contents for the Cancel and Save buttons.
    System.out.println ("\nPrinting keyboard map for Cancel button");
    printInputMaps (btnCancel);
    System.out.println ("\nPrinting keyboard map for Save button");
    printInputMaps (btnSave);
              // FAILS NullPointer because the map contents are null ???
    System.out.println ("\nPrinting keyboard map for Main panel");
    // printInputMaps (panMain);
    private AbstractAction createAction (final String actionName) {
         return new AbstractAction (actionName) {
              public void actionPerformed (java.awt.event.ActionEvent evt) {
                   System.out.println ("Event: " + actionName);
    private void printInputMaps (JComponent comp) {
         InputMap map = comp.getInputMap();
         printInputMap (map, 0);
    private void printInputMap (InputMap map, int level) {
         System.out.println ("Level " + level);
         InputMap parent = map.getParent();
         Object[] keys = map.allKeys();
         for (Object key : keys) {
              if (key.equals (parent)) {
                   continue;
              System.out.println ("Key: " + key);
         if (parent != null) {
              level++;
              printInputMap (parent, level);
    Thanks,
    Tim Mowlem

    Use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the posted code retains its original formatting.
    1) In the Metal LAF the space bar activates the button. In the Windows LAF the Enter key is used to activate the button. Therefore these bindings are added by the LAF.
    2) The pressed binding paints the button in its pressed state. The released binding paint the button in its normal state. Thats why the LAF adds two bindings.
    In your case you only added a single binding.
    3) The ActionEvent is only fired when the key is released. Same as a mouse click. You can hold the mouse down as long as you want and the ActionEvent isn't generated until you release the mouse. In fact, if you move the mouse off of the button before releasing the button, the ActionEvent isn't even fired at all. The mouse pressed/released my be generated by the same component.
    4) Read (or reread) the [url http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html#howto]How to Remove Key Bindings section. "none" is only used to override the default action of a component, it does not prevent the key stroke from being passed on to its parent.

  • JSF custom component: value not binding to component

    I have a custom UIInput component which is not able to bind to the value of the component from a backing bean. Here is the JSF code snippet:
    <tw:validateInputText id="locationIdStopInput" table="location" column="location" styleClass="wideSingleInput" value="#{currentStop.customer.customer}" rendered="#{loadTypeView.renderWarehouse or (currentStop.stopNumber gt 1 and loadTypeView.renderOutbound) or (currentStop.stopNumber eq 1 and loadTypeView.renderInbound)}"/>
    tw is the custom tag and validateInputText is the custom UiInput component.
    On posting the form the decode method is not able to get the value from the requestParameter map. Following is the decode() I wrote:
    public void decode(FacesContext context,
    UIComponent component) {
    // assertValidInput(context, component);
    if (context == null || component == null) {
    throw new NullPointerException();
    ValidateInputTextComponent map = (ValidateInputTextComponent) component;
    String key = map.getId();
    if (component instanceof UIInput) {
    UIInput input = (UIInput) component;
    String clientId = input
    .getClientId(context);
    Map requestMap = context
    .getExternalContext()
    .getRequestParameterMap();
    String newValue = (String) requestMap
    .get(clientId);
    if (null != newValue) {
    input.setSubmittedValue(newValue);
    Also providing the setProperties() from the custom tag class:
    protected void setProperties(UIComponent component){
    super.setProperties(component);
    if (getValue()!=null){
    if (isValueReference(getValue())){
    ValueBinding vbTarget = FacesContext.getCurrentInstance().getApplication().
    createValueBinding(getValue());
    component.setValueBinding(VB_VALUE, vbTarget);
    System.out.println(component.getValueBinding("value").getValue(FacesContext.getCurrentInstance()));
    } else{
    ((UIInput) component).setValue(value);
    // component.getAttributes().put("value",getValue());
    if (getCompValue()!=null){
    if (isValueReference(getCompValue())){
    ValueBinding vbCompTarget = FacesContext.getCurrentInstance().getApplication().
    createValueBinding(getCompValue());
    component.setValueBinding(VB_COMPONENT_VALUE, vbCompTarget);
    } else{
    // ((UIInput) component).setValue(compValue);
    component.getAttributes().put(VB_COMPONENT_VALUE,getCompValue());
    if (getTable() != null && isValueReference(getTable())){
    ValueBinding vbTable = FacesContext.getCurrentInstance().getApplication().
    createValueBinding(getTable());
    component.setValueBinding(VB_TABLE, vbTable);
    } else{
    component.getAttributes().put(VB_TABLE, getTable());
    if (getColumn() != null && isValueReference(getColumn())){
    ValueBinding vbColumn = FacesContext.getCurrentInstance().getApplication().
    createValueBinding(getColumn());
    component.setValueBinding(VB_COLUMN, vbColumn);
    } else{
    component.getAttributes().put(VB_COLUMN,getColumn());
    if (getStyleClass() != null && isValueReference(getStyleClass())){
    ValueBinding vbClass = FacesContext.getCurrentInstance().getApplication().
    createValueBinding(getStyleClass());
    component.setValueBinding(VB_STYLE_CLASS, vbClass);
    } else{
    component.getAttributes().put(VB_STYLE_CLASS, getStyleClass());
    if(getRendered() != null && isValueReference(getRendered())){
    ValueBinding vbRendered = FacesContext.getCurrentInstance().getApplication().
    createValueBinding(getRendered());
    component.setValueBinding(VB_RENDERED, vbRendered);
    } else{
    Boolean a = new Boolean(getRendered());
    component.getAttributes().put(VB_RENDERED, new Boolean(getRendered()));
    Please let me know If I am missing something here to retrieve the value from the component.
    Thanks

    See this tutorial:
    http://www.jsftutorials.net/components/index.html

  • Resource EMPLOYEE_TRAVEL_EXPENSES_SRV_12 not found

    Hi experts,
    We have an ECC 6.0 EHP3, EP 7.0 SP18 with BPERP5ESS 1.2 SP 4, SAP_ESS 1.0 SP 19.1, BPERP5COM 1.20 SP 4, SAPPCUI_GP 1.0 SP 19, we activate the business function FIN_TRAVEL_1 .
    The issue is when in the Portal we go to "My Trips and Expenses" and try to create/change a travel request o try to create/change a travel expense report.
    If try to create/change a travel request shows: "Resource EMPLOYEE_TRAVEL_REQUEST_SRV_12 not found"  and if try to create/change a travel expense report shows:"Resource EMPLOYEE_TRAVEL_EXPENSES_SRV_12 not found"
    This resources are in the resource list in customization, with this values:
    Resource Key: EMPLOYEE_TRAVEL_EXPENSES_SRV_12
    Description: Travel & Expense: Travel Expense Report Service
    Object Name: FITE_EXPENSES
    URL Parameter: SAP_FITV_EXIT_OP=CallAreaPage
    The rest of the fields are empty.
    Resource Key: EMPLOYEE_TRAVEL_REQUEST_SRV_12
    Description: Travel & Expense: Travel Request Service
    Object Name: FITE_REQUEST
    URL Parameter: SAP_FITV_EXIT_OP=CallAreaPage
    The rest of the fields are empty.
    The most curious is that if we try to create a new travel request or try to create a new travel expense report out of "My Trips and Expenses", via the links into "Create New" area, it works fine! We can create them without problem
    Anyone please, could help us?
    Thanks in advance,
    Manuel

    Hola,
    I once had similar issue, here's how I had to solve it:
    Go to SPRO and follow this path
    Cross-Application Components > Homepage Framework > Resources > Define Resources
    Now look for your EMPLOYEE_TRAVEL_EXPENSES_SRV_12 and double-click on it.
    Check if these text boxes are empty:
    - URL of Resource Object
    - URL of PCD page
    If any of the above is empty, then write something inside (yes, something) and press save.
    You will receive a warning and then save it on a Customizing request.
    For example, I saved "<blank>" on each one of them.
    See image:
    http://imageshack.us/photo/my-images/97/20111025155522.jpg/
    And then try again to run your application.
    Un Saludo
    /Ricardo Quintas

  • 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.

Maybe you are looking for