Can't add menu item to showMenu panelCollection facet

Is that a bug ? JDev does not allow to add a menu item inside a showMenu panelCollection's facet. If you manually add it, it shows an error:
"Element at af:commandMenuItem not expected (missing required ancestor)".
The application runs fine. That error also shows up on the searchUI.jsff page from the Handbook sample code.
Jdev version is 11.1.1.2.0.
Thanks & Regards.

No, it's not a bug. You need a af:menu ancestor for your af:commandMenuItems:
            <af:panelCollection id="pc1">
              <f:facet name="menus">
                <af:menu text="Actions" id="m2">
                  <af:commandMenuItem text="Delete" id="cmi1"
                                      actionListener="#{deptBean.deleteRow}"
                                      partialSubmit="true" immediate="true"
                                      accessKey="D" accelerator="control alt R"
                                      partialTriggers="deptTable"/>
                  <af:commandMenuItem actionListener="#{bindings.Last.execute}"
                                      text="Last" accelerator="ctrl alt L"
                                      accessKey="L" partialSubmit="true"
                                      id="cmi2" partialTriggers="deptTable"/>
                </af:menu>
              </f:facet>
{code}
Whenever you have a doubt on how to use a component you can always check the  ADF Rich Faces Demo: http://jdevadf.oracle.com/adf-richclient-demo/faces/index.jspx
HTH,
Maiko                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How to add menu item in Virtual Folders Actions Menu

    Hi ,
    I am writting a custom component which will add some action on documents and virtual folder.
    I am able to add the menu item for DocInfo, but not able to add Menu Item in Virtual Folders Actions Menu.
    Please help!!
    thanks

    I am able to add the menu item for DocInfo, but not able to add Menu Item in Virtual Folders Actions Menu.What exactly you are trying to modify? If web GUI, it should be following the same principles as your "DocInfo" changes (only the basis service is COLLECTION_DISPLAY). If you are trying to modify Desktop Integration Suite, I'm afraid there is no help (at least, I have not heard that DIS could be modified by custom components).

  • I can't access menu items, nor use mouse right click

    I'm using Ubuntu 9.10 and all of a sudden I cant use the mouse to access the menu items, nor use the right click menus. I can click on button and links with the left button, but right clicking on a link does not bring up the usual menu. I recall this happening in the past, but an exit and restart of the program cleared it up. Reboot are not fixing the problem, nor reinstallation ( after removal).

    It seems it could be a profile corruption issue, but not quite!
    I was having the same issue (I'm running Lucid Lynx) and after starting Firefox with the -profilemanager option and using the default profile, I was able to access the menu items and get a right-click options menu. I then shutdown Firefox and restarted with my regular profile and it is now working just fine!
    A little weird, but hey, I can access the menu items as per normal.
    FYI: I had to purge and reinstall Adobe Flashplugin just yesterday then today I got this problem soon after one application crashed in Wine - not sure if all these things are related though!
    Ciao,
    ak.

  • Can't get menu items to be displayed

    Hello,
    The answer to my problem is probably quite simple but I can't see it and its driving me crazy, basically I can't get my menu items to be displayed like file, create and search. But what ever I add to the file menu items like open or save isn't displayed and I don't know why I think it may have to do with the action listeners but I'm not sure how or why or it could be because of where it is placed in the code, but again I'm not sure. Any help will be appreciated thanks!
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.GeneralPath;
    import java.awt.geom.*;
    import java.awt.image.*;
    class CharacterEditor2 extends JFrame implements ActionListener
      private Container pane;
      public JPanel sidebar = new JPanel();
    public JPanel library;
      public JPanel interface1 = new JPanel();
      private JPanel interface2 = new JPanel();
      public JPanel cards = new JPanel();
      public CardLayout layout = new CardLayout();
      public JButton headb = new JButton ("Head");
      public JButton bodyb = new JButton ("Body");
      private JButton legsb = new JButton ("Legs");
      private JButton handsb = new JButton ("Hands");
      private JButton freeHandb = new JButton ("Free Hand");
      private JButton eyesb = new JButton ("Eyes");
      private JButton mouthb = new JButton ("Mouth");
      private JButton earsb = new JButton ("Ears");
      private JButton noseb = new JButton ("Nose");
      private JButton hairb = new JButton ("Hair");
      public CharacterEditor2()
        addWindowListener(new WindowAdapter(){
          public void windowClosing(WindowEvent e){
            System.exit(0);}});
        pane = getContentPane();
        setTitle("JHH");
        library = new library();
        interface2.setBackground(Color.red);
        interface1.setBackground(Color.green);
        Panel p1 = new Panel();
        p1.setLayout(new GridLayout(2,0));
        sidebar.setLayout(new GridLayout(3,0));
        addButton(sidebar, headb);
        addButton(sidebar, bodyb);
        addButton(sidebar, legsb);
        addButton(sidebar, handsb);
        addButton(sidebar, freeHandb);
        addButton(sidebar, eyesb);
        addButton(sidebar, mouthb);
        addButton(sidebar, earsb);
        addButton(sidebar, noseb);
        addButton(sidebar, hairb);
        JMenuBar menuBar = new JMenuBar();
        this.setJMenuBar(menuBar);
        JMenu fileMenu = new JMenu("File");
        menuBar.add(fileMenu);
        JMenuItem openMI = new JMenuItem("Open");
        openMI.addActionListener(this);
        fileMenu.add(openMI);
        JMenuItem saveMI = new JMenuItem("Save");
        saveMI.addActionListener(this);
        fileMenu.add(saveMI);
        JMenuItem closeMI = new JMenuItem("Close");
        closeMI.addActionListener(this);
        fileMenu.add(closeMI);
        fileMenu.addSeparator();
        JMenuItem exitMI = new JMenuItem("Exit");
        exitMI.addActionListener(this);
        fileMenu.add(exitMI);
        JMenu createMenu = new JMenu("Create");
        menuBar.add(createMenu);
        JMenuItem entryMI = new JMenuItem("Entry");
        entryMI.addActionListener(this);
        createMenu.add(entryMI);
        JMenu searchMenu = new JMenu("Search");
        menuBar.add(searchMenu);
        JMenuItem searchCharacterMI = new JMenuItem("Search by Character");
        searchCharacterMI.addActionListener(this);
        searchMenu.add(searchCharacterMI);
        JMenuItem searchBackgroundMI = new JMenuItem("Search by Background");
        searchBackgroundMI.addActionListener(this);
        searchMenu.add(searchBackgroundMI);
        JMenuItem searchMovieMI = new JMenuItem("Search by Movie.");
        searchMovieMI.addActionListener(this);
        searchMenu.add(searchMovieMI);
        p1.add(sidebar);
        p1.add(interface1);
        p1.add(interface2);
        p1.add(library);
       //add scroller to library
       JScrollPane scroller =
             new JScrollPane(library,    
                       JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                       JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
         scroller.setPreferredSize(new Dimension(100,100));
         p1.add(scroller, library);
        pane.add(p1, BorderLayout.CENTER);
      private void addButton (Container c, JButton b)
        b.addActionListener(this);
        c.add(b);
      public void actionPerformed(java.awt.event.ActionEvent evt)
    ((CardLayout)library.getLayout()).show(library, evt.getActionCommand());
      public static void main(String[] args)
        CharacterEditor2 window = new CharacterEditor2();
        window.setTitle("Character Editor");
        window.setSize(900, 700);
        window.setVisible(true);
    }

    It's because you are mixing Swing components and AWT components. The menu items are actually displayed, but they are hidden behind the panel with all the buttons. Things will work fine if you change the following line:
    Panel p1 = new Panel();  // This is an AWT panel. Use this instead:
    JPanel p1 = new JPanel();Read more about it here:
    http://java.sun.com/products/jfc/tsc/articles/mixing/

  • Need to add Menu Item to Search Result Template page

    Hi Guys,
    I am using UCM 11g and I am customizing serach result page.
    When we do search on UCM, we get a search result page. This search result page has a two drop downs (on the top right) "Change View" and "Search Action" in the blue strip.
    I have to add one customized dropdown option in "Publish Selected", it worked well with 10g by overriding searchapi_result_menus_setup include but not working in 11G.
    Appreciate your help on this, Thank you
    Thanks,
    Ashok

    Reunion1980 wrote:
    ..I need to add item "About" to frame's system menu.
    Is there any way to solve this problem?Try this link - [http://pscode.org/jh/bin/helpsetter-apidocs.jnlp]. It is sand-boxed, like an applet. It should prompt if you want to create shortcuts, click OK/Yes.
    After you run it, open the 'All Programs'/system menu. There should be an item under the 'JavaHelp System' menu for the 'JavaHelp System JavaDocs'. That link is to launch the application again. [Java Web Start|http://www.java.com/en/download/faq/java_webstart.xml] *(<- link)* is what installs the menus. JWS can also install menus specifically for application help.
    Older applications declared the required menu items and desktop shortcut in the JNLP launch file, but JRE 1.6.0_18+ offers the IntegrationService *(<- link)* to applications, and provides feedback on success/failure. Note that some systems will ignore requests for desktop integration. Ubuntu Linux will allow for the creation of desktop shortcuts, but silently ignore requests for menu items.

  • Add menu item in .exe-File

    Is there any way, that i can add a menu item in the .exe-File?
    I need a menu which is expandable for the customer!
    thanks wiesi

    Wiesi,
    I thought this was an interesting question, because I noticed a number of people with previous questions who had serious difficulty with .rtm files and executables, and they weren't even trying to add or remove menu items dynamically. Are you using .rtm files to define your custom menus both in the development envuronment and in the EXE?
    If so, I think I agree with Dennis and suggest that you abandon that approach and just build your menu programmatically, as shown in the example he points out. That way, you can create an arbitrary menu each time the VI or EXE is run. One wrinkle is that you now have to create some extra logic for constructing, saving, and loading your run-time menus. I put together an example (attached, LV 7.0) that demonstrates one way to go about it. I tested both in the development environment and after creating an EXE, and it works fine.
    I'm interested in something else: how do you plan to make your EXE flexible enough to actually respond correctly to newly-introduced menu items? I guess you'll have to take some kind of a "plug-in" approach, where the anticipated menu choices will lead to the execution of additional code that you are packaging alongside the executable?
    Regards,
    John
    Attachments:
    Dynamic Menu Example.zip ‏57 KB

  • Add menu item for Batch Sequence?

    Hello,
    I've created a folder level script that will execute when Acrobat starts. The script adds a menu item, that when clicked, will call another function.
    I'm wondering if I can create a batch sequence and add a menu item for that as well? I basically just want to avoid going through the whole Advanced -> Doucment Processing -> Batch processing... -> and then find the batch sequence and click Run.
    I've seen plenty of examples for adding menu items that call folder level scripts, but nothing on batch sequences. Has anyone ever done this?
    Many thanks in advance!

    You can't create a menu item to a specific batch sequence. The closest you
    can get is to open the batch sequences window, using the execMenuItem()
    method and "BatchEdit" as the name of the command (I'm not sure it's still
    the same in Acrobat X).

  • Add menu item or icon to PA30

    Hello,
    Is it possible to add a menu item or an icon in the toolbar to add your own functionality to transaction PA30? I am trying enhancement PBAS0002 but I don't think that's it...
    Gr,
    Jaron Frenk

    Hi Jeron,
    Depends on what you want to do.  To change icons, you can use SE51-Screen Painter if you have a Developer Key.  Adding new tabs and and infotypes to those tabs is simple configuration - IMG: Personnel Management --> Customizing Procedures --> Infotype Menus --> Infotype Menu --> Infotype Menu.  Here you set up which infotypes appear on which tabs.  In the second step Determine Choice of Infotype Menu, you define which tabs appear in PA30. 
    So the question is - What are you trying to accomplish in PA30?
    Paul

  • I can't link menu items with the areas in the page:

    I download a theme over imternet and menu and the page areas not linked how can i do that ?
    When i press the communication button i stays constant
    but there is communication section and i can't linked them.

    You cannot link default menu items , default menu includes the link to pages ( site structure).
    You would need to create a manual menu if you want to link new pages to menu items. Please let me know if you are not looking for this answer.
    Thanks,
    Sanjit

  • How can I add more items to an array?

    hi there
    I have a file chooser to select files. and store them in a File[] listfile. but if I need to add some more files to this listfile, how can I add them without deleting previous selected files? I know I can use List class to do this, can I just use listfile directly?
    thank you

    You can't change the size of an array once you have created it. You can use a List, as you say, or you can copy the array entries to a new array of a different size.

  • Can't see menu items in Pro Tools

    While using a few applications on my recently updated Mac Pro my Pro Tools and Illustrator menus are no longer visible until I mouse over them.  So if I want to change a font in Illustrator CS6 I click the font drop menu and it's basically blank until I mouse down the menu exposing each font that is in there. Same for Pro Tools 10. I select an insert and the plug-ins list is blank until I mouse over it.

    I'm having the same problem with Pro Tools SE 8.0.3 running in OS X Yosemite 10.10.2
    I had some problems trying to run it because of the flash plugin. Now I did it but the menu items won't show up and It's very annoying.

  • Can't select menu items in top 25% of the browser window much of the time.

    Running Windows 7 Pro on a new (2-months) HP Ultrabook with FF 15.0.1. Many times, selectable items do not work, but generally in the top 20-30% of the browser window. With the pointer hovering over selections, it does not change to indicate is a selectable item, nor will it let you select. It happens on well-known websites such as Yahoo!, HP, etc. It doesn't do this all the time, but I'd say at least 50% of the time, even if you reload the page and allow all sites with NoScript. There is no filtering warning.

    That problem can be caused by an extension like the Yahoo! Toolbar or a Babylon extension that extents too much downwards and covers the top part of the browser window and thus makes links and buttons in that part of the screen not clickable.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode

  • Can i move menu items(i.e. PhotoShop) from my mac to an ipad

    i want to have menu boxes displayed on an ipad to keep my screen free of clutter, organized and to make the menus a little more ledgable.

    Not entirely sure what you mean, but you can't move/copy Mac program's onto the iPad as they are different operating systems and they aren't compatible. You can arrange your apps on the iPad into app folders by resting and holding one of them until they start to shake and then dragging one app over and on top of another app - folders are covered in the iPad manual : http://support.apple.com/manuals/iPad

  • Foreach output from get-command, add menu item

    Hi
    I'm making a script to configure some basic settings for new servers, and one of the features in the script is to set ip-address on the network interface. 
    At some servers there are several network interfaces, and I would like to create a menu based on the output from a get-query(Get-NetAdapter | select Name). Setting the ip-addresses is okay, but I'm having a problem creating a menu.
    What I want to do: If there is more than one NIC, create a menu with each network interface.
    Any clues?

    I didn't work that in, because I had no clue what you were trying to do when I initially wrote it.
    This version returns an object that you can work with ($selectedNIC) :
    $i = 1
    $menuList = @()
    $menuList = Get-NetAdapter | ForEach {
    $props = [ordered]@{
    'NIC Number'=$i
    Name=$_.Name
    InterfaceDescription=$_.InterfaceDescription
    ifIndex=$_.ifIndex
    Status=$_.Status
    MacAddress=$_.MacAddress
    LinkSpeed=$_.LinkSpeed
    New-Object PsObject -Property $props
    $i++
    $menuList | Format-Table -AutoSize
    $nicChoice = Read-Host 'Enter the NIC Number to process'
    $selectedNIC = Get-NetAdapter -InterfaceIndex ($menuList[$nicChoice-1]).ifIndex
    $selectedNIC
    Don't retire TechNet! -
    (Don't give up yet - 12,420+ strong and growing)

  • How Can You Add an Item to an Existing Delivery? (Function Module?)

    We are currently using function module GN_DELIVERY_CREATE to create deliveries (shipping notifications) from ASN data. 
    We're also using function module BAPI_INB_DELIVERY_CHANGE to change quantities on existing deliveries and to delete line items on existing deliveries.
    Does anyone know if there's a function module to add a new line item to an existing delivery?
    Best Regards, Scott

    Is BAPI_DELIVERYPROCESSING_EXEC what you need?
    Rob

Maybe you are looking for

  • Can I run windows XP 64 bit on my 2012 MacBook Pro 13 inch

    I want to run windows but I'm not positive I can run XP on my 13 inch 2012 MacBook Pro

  • Export Dictionary structure definitions to WSDL or XSD

    Hi all, I need to export some structure definitions from CRM 2007 to a XI instance. I have been told by the XI responsible that the ideal mechanism is that I provide him some WSDL or XSD files so he can import them. The point is: how do I export my A

  • 3gs video export to vista prob

    when i connect my 3GS to my Vista PC, it will auto popup a menu to sync photos and videos. it will only sync new photos and won't transfer anything already sent via the 3GS to the PC (hurrah!), but it keeps syncing videos that have already been sent

  • Video files taking longer time when uploading using java sdk

    Hi, I am using java APIs for uploading image/video files to azure blob storage.And i see that video files take much time to get uploaded.On average a 25 MB file takes more than 2 minutes...Is it expected with Java API?Is there any way with azure java

  • Costs assigned to a cc/profit center

    hi, I need to pick up the costs that are assigned to the cost center / profit center (non project).  Which table do i use.  Currently, i get project costs from Covp.  can I get also these(Non project) costs also from Covp?  How do I know if they are