Context menu appears only on the tree

Hi all

I use Jdev. 12.3.1.0 and I created a component of the tree with a context menu, but when I press right click it does not show the menu.

The following XML code:

                                               <af:tree value="#{bindings.AccAnalysisRootVO.treeModel}" var="node"
                                                     selectionListener="#{bindings.AccAnalysisRootVO.treeModel.makeCurrent}"
                                                     rowSelection="single" id="t1">
                                                <f:facet name="nodeStamp">
                                                    <af:panelGroupLayout id="pgl2">
                                                        <af:image source="#{resource['images:ana2.jpg']}" id="i1"
                                                                  inlineStyle="margin-right:3px; vertical-align:middle; height:14px; width:16px;"/>
                                                        <af:link id="ot1" text="#{node}"
                                                                 actionListener="#{SetAnalysisCode.GetTree}"
                                                                 partialSubmit="true"/>
                                                    </af:panelGroupLayout>
                                                </f:facet>
                                                <f:facet name="contextMenu">
                                                    <af:popup childCreation="deferred" autoCancel="disabled" id="p1">
                                                        <af:menu text="menu 1" id="m2">
                                                            <af:commandMenuItem text="#{psmartviewcontrollerBundle.ADD}" id="cmi1"/>
                                                            <af:commandMenuItem text="#{psmartviewcontrollerBundle.DELETE}" id="cmi2"/>
                                                        </af:menu>
                                                    </af:popup>
                                                </f:facet>
                                            </af:tree>

Just tried and it works fine. Works fine in the demo of component too: tree demo

Can you be sure if your resource package has appropriate entries? Can you try to restart the server and then deploy the application to see if it works well?

@Ashish Awasthi

Hello

surround your tree with panelCollection

Thank you

Why?

Arun-

Tags: Java

Similar Questions

  • Context menu appears several times on its own! Windows 7 Home Premium

    I can hardly get anything accomplished on my desk more because the context menu appears on its own again and again, and I have to click anywhere on the screen until it goes away. Help!

    Hello

    1 follow these steps to remove corruption and missing/damaged file system repair or replacement.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    sfc/scannow

    How to fix the system files of Windows 7 with the System File Checker
    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

    How to analyze the log file entries that the Microsoft Windows Resource Checker
    (SFC.exe) program generates in Windows Vista (Windows 7 also) cbs.log
    http://support.Microsoft.com/kb/928228

    Then, run checkdisk - schedule it to run at next boot, then apply OK your way out, then restart.

    How to run check disk in Windows 7
    http://www.SevenForums.com/tutorials/433-disk-check.html

    -----------------------------------------------

    2nd - Contextual Menu (right click) troubleshooting questions are an exercise of the elimination process.

    Make a right-click is slow or weird behavior caused by context menus managers
    http://WindowsXP.MVPs.org/slowrightclick.htm
    and here:

    Manage the entries in the context menu for files, folders, disks, and objects in the Namespace
    http://WindowsXP.MVPs.org/context_folders.htm

    The ShellExView utility displays the details of shell extensions installed on your
    computer, and you can turn on and off easily each shell extension.
    http://www.NirSoft.NET/utils/shexview.html

    ShellMenuView is a small utility that displays the list of static menu items that
    appears in the context menu when you right click on a file/folder on Windows
    Solution Explorer, and allows you to easily disable unwanted menu items.
    http://www.NirSoft.NET/utils/shell_menu_view.html

    How to change or remove items from the right click Menu.
    http://www.WinVistaClub.com/E11.html

    I hope this helps.
    --------------------------------------------------------------------------------------------
    Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">

  • My wallpaper appears only in the extended format. I want to display a .jpeg file into the center channel mode. I click on center and save the changes, but he remains in stretch mode...

    My wallpaper appears only in the extended format.  I want to display a .jpeg file into the center channel mode.  I click on center and save the changes, but he remains in stretch mode...

    HP technical support solves the problem for me with a patch: I'm sorry that I don't remember all the steps they walked me through but the patch was SP45575. EXE.   It was working fine.  Good luck

  • Why the context menu appears as a transparent framework?

    Conext menu appears as a transparent framework Center. It's only a problem with thunderbird, rest programms (eg. Firefox) do not have this problem.

    try changing your windows theme and see if it helps. much of the

    Background and font colors of the user interface are captured in the settings window uses. Unfortunately some parameters only picks it up just to make little sense to me.

  • Context menu (or click on the right button) does not appear in the menu window

    The context menu does not appear in certain sections of the browser.
    If I run the browser in safe mode, it works without problem.
    I tried to reinstall firefox, after uninstalling I also manually deleted everything hidden and visible files - did not help.
    Also I tried the restore mode by default - did not help.

    Here, I put screenshoot.
    Kind regards.

    Sorry for my eng

    Hello

    Try disabling graphics hardware acceleration. As this feature has been added to Firefox, it has gradually improved, but there are still some problems.

    You will have to perhaps restart Firefox for it to take effect, so save any work first (e.g. you compose mail, documents online that you are editing, etc.).

    Then perform the following steps:

    1. Open the Firefox Options (Preferences on Mac or Linux) as follows:

      • In Firefox 29,0 and above, click on the menu button

        then select Options Preferences on Mac or Linux, or Windows.

      • In 28.0 Firefox and earlier versions, click on the Firefox orange upper-left button, then select the 'Options' button or, if there is no button up Firefox, go to tools > Options.
    2. In the window of Firefox Options (or preferences), click on the Advanced tab, and then select general.
    3. You will find in the list of parameters, the checkbox use hardware acceleration when available . Clear this check box.
    4. Now restart Firefox and see if the problems persist.

    In addition, please check the updates for your graphics driver by following the steps in the following knowledge base articles:

    This solve your problems? Please report to us!

    Thank you.

  • Why Tweets incorporated on news sites appear only in the empty boxes?

    Tweets incorporated on news sites appear only as empty boxes in Firefox, but not in Edge: it of a fairly new problem and can have coincided with the upgrade to Windows 10.

    Please try Firefox Safe Mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • Context menu is off of the user interface element that spawned it

    (1) go to the add-on Manager.
    2) click the gear that creates a context menu with the option to force all the Add-ons to check updates.
    (3) shortcut menu does not appear to be linked to the button wheel pinion and is rather offset bottom-right of the key.

    Final version of Firefox 33.

    Edit: I guess it could be a problem with the add-on "Classic theme restaurateur"

    Through the process of elimination, it seems to be caused by "Zoom Page 11.1". Disabling the addon and reset the browser fixed the position of the context menu.

  • Problem with context Menu appearance

    I didn't know where else to post this, so if this is in the wrong section, sorry.

    Whenever I right click, now my context menu looks like this: http://gyazo.com/1f8d086bf5c73137728f88124bad0911 . It is not normally look like this on the victory. 7.
    What would cause this? Is it possible to fix this?

    The menu appears fine for me. Perhaps you are wondering why it apperas in the style "classic"?

  • TableView context Menu appears when running Java 8 until Update 5 but not later

    The code below works as its name suggests the update of Java 8 5 but not later:

    SerializableAttribute public class TableViewShowingOnlyAnAppendContextMenuItemIfRowIsEmptyElseDeleteIsIncluded extends Application {}

    final table private TableView < name > = new TableView <>();

    private data of ObservableList < name > finals = FXCollections.observableArrayList (new Name("Jacob"),

    New Name("Isabella"), New Name ("Ethan"), Name ("Emma") New Name ("Michael")) new;

    Public Shared Sub main (String [] args) {}

    Launch (args);

    }

    @Override

    {} public void start (steps)

    TableColumn < String > name, column = new TableColumn <>("name");

    column.setCellValueFactory (new PropertyValueFactory <>("name"));

    table.getColumns () .add (column);

    table.setItems (data);

    ContextMenu contextMenu = new ContextMenu();

    contextMenu.getItems () .add (MenuItem ("append")) new;

    table.setContextMenu (contextMenu);

    table.setRowFactory (tableView-> {}

    TableRow < name > line = new <>(TableRow);

    row.contextMenuProperty () .bind ((in English only)

    Bindings.When (Bindings.isNotNull (Row.itemProperty ()))

    . Then (showOnlyAppendContextMenuItemIfRowIsEmptyElseIncludeDelete ())

    .otherwise ((ContextMenu) null));

    next row;

    });

    Scene = new Scene (table);

    stage.setScene (scene);

    internship. Show();

    }

    private ContextMenu showOnlyAppendContextMenuItemIfRowIsEmptyElseIncludeDelete() {}

    RowMenu ContextMenu = new ContextMenu();

    ContextMenu tableMenu = table.getContextMenu ();

    If (tableMenu! = null)

    rowMenu.getItems () .addAll (tableMenu.getItems ());

    rowMenu.getItems () .add (MenuItem ("delete")) new;

    Return rowMenu;

    }

    Public NotInheritable class {name}

    private final SimpleStringProperty name

    private (String name) {}

    myIdName = new SimpleStringProperty (name);

    }

    public String getName() {}

    Return name.get ();

    }

    public void setName (String name) {}

    This.Name.Set (Name);

    }

    }

    }

    Can help me find the error in the code? Or if there is anything, it's a regression which must be submitted? From now on, all computers used have 8u5.

    Thanks in advance.

    Answered correctly by James_D:

    http://StackOverflow.com/questions/28195552/JavaFX-TableView-context-menu-item-shows-up-when-run-on-Java-8-until-Update-5-Bu

    pasted below:

    The solution is to create new menu items which are copies of those in the context menu of the table:

    private ContextMenu showOnlyAppendContextMenuItemIfRowIsEmptyElseIncludeDelete() {}
        RowMenu ContextMenu = new ContextMenu();
        ContextMenu tableMenu = table.getContextMenu ();
        If (tableMenu! = null) {}
            {for (MenuItem item: {tableMenu.getItems ())}
                RowItem MenuItem = new MenuItem (item.getText ());
                rowItem.setGraphic (item.getGraphic ());
                rowItem.setOnAction (item.getOnAction ());
                rowMenu.getItems () .add (rowItem);
            }
        }
        rowMenu.getItems () .add (MenuItem ("delete")) new;
        Return rowMenu;

    }

  • Should the menu appear on all the slides?

    Hello

    I want to use a menu in my project, but not on screens that are capturing software like the title of the menu is sitting on the text necessary to capture - any chance I can choose only the slides that I want the menu appears on?

    See you soon
    Alex

    Hi Alex

    Sorry, I think that it's all or nothing with regard to the menu. You wish by clicking project > skin-> surrounded by tab and allowing the top border. If you do this, the menu should go up in the new border area where it will not hide any part of the project.

    See you soon... Rick

  • Context Menu appears

    The context Menu item does not appear in the Insert menu in Dreamweaver CS4.

    I checked the updates, there is none is available.

    Operating system is Windows XP with the latest service packs and patches.

    Murray * ACE * has written:
    > Maybe not.

    Certainly not. InContext Editing was not included in the public beta.
    The InContext Editing conditions require a full CS4 license
    for anyone who has administrator privileges.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Context menu of tabs on the empty tab bar.

    When click with the right button on a zone empty of the tab bar, I get a pop-up menu to select the toolbars that I want to show off or customize the layout of Firefox. As I recall (and my muscle memory seems to agree) that used to bring up the context menu of the tab instead, allowing me to re - open closed tabs and others. Is it possible to restore this functionality?

    The tab bar is a regular toolbar in the current version of Firefox (on this subject, you can place buttons on toolbar) and right click on the empty space will open the context menu of the toolbar.

    You must right-click on a tab to get the context menu of the tab.

  • A few specific characters appear only after the introduction to the keyboard key twice in Inspiron 15R 5520

    Dear all,

    I am facing a very strange problem in my Inspiron 15R 5520 I bought in August 2012. There are a few characters that only appear after typing the corresponding button on the keyboard twice.

    for example if I want to type a tilde (~) character, I have to press the fear side of the number key 1. But, if I press it once, nothing appears on the screen. If I press this key twice, then I get two characters tilde (~). Same behavior occurs with four other characters. Below is a list of characters that do not show by pressing the button once, rather than twice.

    ~

    `

    ^

    '

    "

    Surprisingly, when I was typing shift + 6 in the field of the composition of this forum, then the sign of the (^) character appeared after press the key once. Whereas, if I try in Notepad or Word Pad or the Mozila FireFox address bar, I have to press the key two times so that character appears twice, and then delete the extra character.

    Can you help me please?

    Thank you

    Gerard

    The problem is with the keyboard language setting. You may have selected English (International) while setting up your laptop / desktop at the beginning.

    Go to control panel of-> all items from Panel of control-> region and language-> Formats.

    Change Format English (United States). It should solve your problem.

  • Black screen appears only in the workspace of the Assembly.

    I worked on a project for a while, and as I opened it today and clicked on the tab "Meeting" workspace, the application become completely black. I can't access my files that I imported into my library, and there is simply no space for the Assembly for me to work with.

    If you can see the menu bar, go to the window > workspace > reset to saved the page layout. This should fix the display.

  • CS5: Image appears only in the magnification of 25% and 100%

    PS CS5 running successfully for a few years, then all of a sudden I can't work other than 25% magnification and the actual Pixels. The image disappears and I can only see the checkerboard. There is a "Windows update" I ran on 10 April, which included an update for the graphics card, which I think could be the culprit, so I uninstalled. It does not solve the problem, so I've updated again. I couldn't see anything else in these updates that should affect Photoshop.

    Here's what I've tried so far:

    I've updated my graphics driver (NVidia GeForce),

    Trashed Adobe Photoshop CS5 Prefs.psp (who crashed PS completely when I have opened it... Fortunately I kept the old file prefs on my desk and dragged in),

    Made sure Photoshop was up-to-date.

    Any ideas what to try next?

    Thank you!

    Photoshop CS5 (32-bit v.12.0.4)

    Windows 7 Home Premium (Build 7601 v.6.1: Service Pack 1)

    AMD Phenom II X 4 840 3.20 GHz processor

    This is a bug in the driver of your video card.

    Disable GPU drawing in Photoshop, or contact NVidia and understand what's wrong with the driver.

Maybe you are looking for