Af:commandMenuItem action and actionListener are not executing

Hello all!
I use JDeveloper Studio Edition Version 11.1.1.2.0. Here's the problem. I have a popup menu like this
<af:popup id="someMenu" animate="default">
<af:menu id="pt_m1">
<af:forEach var="item" items="#{ContextMenuHelperBean.availableUserRoles}">
<af:commandMenuItem text="#{item.roleName}"
action="#{ContextMenuHelperBean.changeUserRole_Action}"
actionListener="#{ContextMenuHelperBean.changeUserRole_ActionListener}"
immediate="true"
partialSubmit="false"
id="pt_cmi1" rendered="true">
<f:attribute name="userRole" value="#{item}"/>
</af:commandMenuItem>
</af:forEach>
</af:menu>
</af:popup>
The problem is that action and actionListener are not executing, when the menu item is selected (but the page is reloaded with no changes). ContextMenuHelperBean has a "session" scope set in adfc-config.xml. What can be wrong with this?

Now I've encountered a new kind of error. I create a menu in a managed bean like this:
In JSPX
<f:view beforePhase="#{RolesMenuSupportBean.createMenus}">
<af:popup id="cxtMenu" animate="default">
                        <af:menu id="pt_m1"
                                 binding="#{RolesMenuSupportBean.rolesMenu}">
                        </af:menu>
                      </af:popup>In com\cs\webb2\view\utils\menu\RolesMenuSupport.java
    public void createMenus(PhaseEvent phaseEvent) {                       
        List<IUserRole> rolesList = getAvailableUserRoles();
        for (IUserRole role: rolesList) {           
            Boolean hasItem = false;           
            for (Iterator iter = rolesMenu.getChildren().iterator(); iter.hasNext(); ) {
                RichCommandMenuItem item = (RichCommandMenuItem) iter.next();
                if (!hasItem)
                    hasItem = item.getText().equalsIgnoreCase(role.getRoleName());
            if (!hasItem) {
                RichCommandMenuItem newItem = new RichCommandMenuItem();                                                       
                newItem.getAttributes().put("userRole", role);
                newItem.setText(role.getRoleName());
                newItem.setId(ITEM_ID);               
                newItem.setActionExpression(getActionExpression("#{RolesMenuSupportBean.changeUserRole_Action}"));                           
                newItem.addActionListener(getExpressionActionListener("#{RolesMenuSupportBean.changeUserRole_ActionListener}"));                               
                rolesMenu.getChildren().add(newItem);  
    } The menu is created successfully, but when I click on any item, I get an exception
<b>javax.servlet.ServletException: Method not found: com.cs.webb2.view.utils.menu.RolesMenuSupport@d4702.changeUserRole_Action(void)</b>
But of course I have such a method in my com.cs.webb2.view.utils.menu.RolesMenuSupport:
In com\cs\webb2\view\utils\menu\RolesMenuSupport.java
    public String changeUserRole_Action()
        System.out.println("Action!");
        // no code yet
        return "adfMenu_Main";
    }And there <b>is</b> a managed bean named RolesMenuSupportBean, which is associated with class com.cs.webb2.view.utils.menu.RolesMenuSupport.
Can anyone tell me, what can be wrong?

Similar Messages

  • Warning: Action and Event are not compatible for LinktoAction type

    Hi,
       I get a warning message "Action and event are not compatible" for the action associated with the type LinkToAction. The Action method "ShowDetails" has the parameters wdEvent (default) and IWDNodeElement.
       Can anybody please suggest what causes this warning?
    Regards
    Sagar

    Sagar,
    Unfortunately, it is impossible to remove this warning completely. However, you may safely ignore it.
    What you can do is copy text of warning (or part of text), then click "Filter" icon on Tasks view in IDE and set filter to hide these warnings. I do this for annoying "UI element has no lable text"
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • UICommand action and actionListener - invoke in different phases

    Hi,
    I am trying to get the action and actionListener methods of a command button invoked in different phases. When the button is pressed I would like the actionListener to be invoked immediately, but the action method only in the "invoke applications phase", unless the form validation failed.
    Setting immediate to "true" doesn't work, as I can't get the action method to be queued for later processing. I also can't make them both actionListeners as the action method controls navigation.
    Any way round this?
    Thanks!

    Action = Executed in the invoke application phase. Runs a method in a bean that returns a String object. The String is used by the navigation system to determine which page to render next. The rules for this are set up in the faces-config.xml file, in the navigation-rule sections.
    ActionListener = Executed in the invoke application phase. Is triggered when the action event occurs for the component the listener is attached too. This listener can perform miscellaneous actions required when the button is clicked, but does not return a String that affects the navigation.
    What order do they get called? Try this out!
    http://www.jsftutorials.net/faces-config/phaseTracker.html
    It'll help you understand the JSF lifecycle. Which is VERY important, especially when those weird errors start occurring (or JSF seems to be ignoring your commands).
    CowKing

  • In fire fox and google chrome CSS and images are not loading

    I am facing problem with jrun, In IE-8 application is working fine, but in FireFox and Google chrome CSS and Images are not loading.
    in fire fox and google chrome requests are Aborted.
    thanks
    Ashok Gadiparthi.

    Check if Style Resource Readers SharePoint group has permissions on the site, permissions to the style library and make sure that this library provides Style Resource Readers with restricted read.
    If you don't see Style resource readers on the site, go to that library and set that permission.  you could also just load your installation media to a folder, and execute on setup.exe, select repair option.  This second option of the installation
    media is the cannon vs. flyswatter approach though, but it will work
    Stacy Anothersharepointblog.blogspot.com

  • When creating a return by copying an order tax and charges are not defaulting?

    Hi,
    I have created a Return by copying sales order. But tax and charges are not defaulted from original sales order. Please note unit selling price is 0 for this item. I am using 11.5.10.2 version.
    Sales Order: 143674
    Item: UT1
    Quantity: 2
    unit selling price: $0
    Tax: $0
    Charges: $0
    Calculated price flag: Freeze Price
    But Return created as follows by using copy.
    Return Order: 6678
    Item: UT1
    Quantity: -2
    unit selling price: $0
    Tax: -$5
    Charges: -$20
    Calculated price flag: Partial Price
    Your help will be highly appreciated.

    Hi
    At sales order form, you select Action > Copy
    Change the order type to your "Return transaction type"
    Go to Line Tab
    Change the line type to Return type, enter return reason.
    Save
    This creates new RMA order.....this way this should copy the original tax amount.
    For the Charges part, check in the modifier definition whether "Include on Returns" is checked in the Discount/Charges TAB.
    Thanks
    -Arif.

  • SRM AS JAVA not starting(JControl.EXE and Server0 are not starting )

    Hi All,
    We have SAP SRM 7.0 AS ABAP and AS JAVA with SAP PI and MDM installed on Windows Server 2008 R2.
    When we are trying to start SRM as JAVA  from SAPMMC is not starting.
    The JControl.EXE and Server0 are not starting.
    For your convenience I am pasting error part of trace files
    Our dev_jcontrol log file text is as follows:
    [Thr 7112] JControlExecuteBootstrap: execute bootstrap process [bootstrap]
    [Thr 7112] [Node: bootstrap] java home is set by profile parameter
    [Thr 7112]      Java Home: C:\j2sdk1.4.2_19-x64
    [Thr 7112] JStartupICheckFrameworkPackage: can't find framework package E:\usr\sap\SRJ\JC22\exe\jvmx.jar
    [Thr 7112] JControlICheckProcessList: process server0 started (PID:4688)
    [Thr 7112] Thu Dec 15 16:43:42 2011
    [Thr 7112] JControlICheckProcessList: process server0 (pid:4688) died (RUN-FLAG)
    [Thr 7112] JControlIResetProcess: reset process server0
    [Thr 7112] JControlIResetProcess: [server0] not running -> increase error count (4)
    [Thr 7112] JControlICheckProcessList: running flight recorder:
    [Thr 7112]      C:\j2sdk1.4.2_19-x64\bin\java -classpath ../j2ee/cluster/bootstrap/sap.comtcbloffline_launcherimpl.jar com.sap.engine.offline.OfflineToolStart com.sap.engine.flightrecorder.core.Collector ../j2ee/cluster/bootstrap -node ID228052750 1323947582 -bz E:\usr\sap\SRJ\SYS\global
    [Thr 5568] Thu Dec 15 17:23:18 2011
    [Thr 5568] JControlSigInt: signal = 2
    [Thr 5568] JControlIStopInstance: shutting down (command: 0)
    [Thr 5568] JControlIProcessSoftKill: soft kill of process dispatcher (pid:7648)
    [Thr 5568] ERROR => invalid connect to named pipe (rc = 232) [jstartnt.c   268]
    [Thr 5568]  ERROR => Can't send soft kill (rc=-1) [jcntrxxi.c   1743]
    [Thr 5568] JControlIProcessSoftKill: soft kill of process SDM (pid:7664)
    [Thr 5568] ERROR => invalid connect to named pipe (rc = 232) [jstartnt.c   268]
    [Thr 5568]  ERROR => Can't send soft kill (rc=-1) [jcntrxxi.c   1743]
    Our dev_bootstrap log is:
    [Thr 7712] CCMS: AlMsUpload called by wp 1004.
    [Thr 7712] CCMS: AlMsUpload successful for E:\usr\sap\SRJ\JC22\log\ALMTTREE.DAT (302 MTEs).
    [Thr 7712] CCMS: CCMS Monitoring Initialization finished, rc=0.
    [Thr 7712] [Node: bootstrap] java home is set by profile parameter
    [Thr 7712]      Java Home: C:\j2sdk1.4.2_19-x64
    [Thr 7712] JStartupICheckFrameworkPackage: can't find framework package E:\usr\sap\SRJ\JC22\exe\jvmx.jar
    In dev_server0 the log is as follows:
    ERROR => The Java VM terminated with a non-zero exit code.
    What should be the issue I am not getting. Please help me to solve this.
    Thanks & Regards,
    Ishan

    Hi All,
    I removed last changes i did. n restarted it.
    Thanks,
    Ishan

  • Css and images are not loading in SharePoint website

    Scenario:-
    System Configuration- Windows server 2008 R2, SharePoint Designer 2010, SP server 2010 all are in Local Machine.
    1. I had reset the Windows server 2008 R2 password and opened SharePoint Designer 2010.
    2. Opened previous working site and found error- services unavailable- HTTP Error 503. The service is unavailable
    3. For this issue, I reset  (as I reset for windows server) the Identity password in App pool for "SharePoint Central Administration v4" application.
    4. The error "Service Unavailable" got vanished.
    But encountered new problem - .css and images are not loading. 
    5. I re run "Product Configuration wizard" with below steps:-
    A) Do not disconnect from this server.
    B) No, this machine will continue to host the website
     Still Problem persisting.
    What tried:-
    1. Resetting IIS Server.
    2. Restarted SharePoint Admin Services from "Service window".
    3. Recycled App pool.
    Just do let me know for further information.
    I have Checked so may forum and sites but no solution :(
    Looking for excellent resolution :)

    Check if Style Resource Readers SharePoint group has permissions on the site, permissions to the style library and make sure that this library provides Style Resource Readers with restricted read.
    If you don't see Style resource readers on the site, go to that library and set that permission.  you could also just load your installation media to a folder, and execute on setup.exe, select repair option.  This second option of the installation
    media is the cannon vs. flyswatter approach though, but it will work
    Stacy Anothersharepointblog.blogspot.com

  • Scripts are not executing

    Hi,
    we have scheduled scripts through crontab,but from few days these scripts are not executing,there is no problem with time entries in crontab because some of them are executing correctly,what can be possible reasons for the cronjobs to not to execute.we are using sun solaris sparc 64 bit.oracle 10.1.0.4

    I can't say without knowing what the script does. Maybe somebody changed the permissions on another directory that script needs, or maybe another file it needs is no longer available, or ???
    Just suggesting a troubleshooting step. If you can run the script in a similar setup then you can eliminate the script as a likely problem. I didn't see anything on the crontab entry that looked to be a problem.
    PS: "will the date change with the execution of cronjob or it remains the same."
    No, the date on the cron daemon will stay the same. It just wakes up once a minute to check for things to do and kicks them off, it never restarts.

  • Keyboard and trackpad are not working, Keyboard and trackpad are not working

    I'm using MBP 15" late 2008 with Maverick OS. A couple of days ago, the internal keyboard and trackpad are not working at all. I did all the troubleshooting. I even reformat it; installing the snow leopard and re-installing the maverick but no good result. I believe there's no problem with my keyboard because i can still do PRAM on my lappy. Everytime i'm booting up my MBP, it always looking for bluetooth trackpad and keyboard. I have not used those bluetooth peripherals from day 1 i've started using MBP. I just read on the internet about the same problem has happened on MBP 13" retina and APPLE fixed it by updating the software. I wish Apple will also do something for the old MBP to fix the intermal keyboard and trackpad problem.

    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".

  • I have spent probably a few hundred dollars on movies, music and apps on itunes. I have only ever downloaded this on my iPhone. I plugged my iphone into a laptop and now all my music and videos are not showing up on available downloads. WHAT DO I DO?!

    All of my music is gone. I have no idea how to get it back and Im worried because it isnt showing up on available downloads.

    Isn't iTunes 10.5 r 9 a beta release for developers?  If that's the case then isn't there a special web site for developers to discuss issues (and they are not supposed to discuss them on the public forum)?  If you're not a developer and have this through unofficial channels then I'm not sure you can expect full functionality.

  • Please help! I defragged my hard drive and now Illustrator CS6 is trying to open all of my complex Illustrator files with a "Text Import Options" box as if they are text files, and they are not opening!

    Please help! Illustrator CS6 started trying to open all of my complex.ai files with a "Text Import Options" box as if they were text files, and they are not opening!  Help!

    Hi Monika,
    I have spent the last two or three days trying to do what you suggested.  I uninstalled Adobe 6 from Windows.  Some files that CS6 placed on my system during installation remained, including fonts and .dll files.
    I had to abandon the Cleaner Tool you suggested because in one screen it allowed me to specify removing CS6 only, but on the following screen it only gave on option to remove ALL Adobe programs.  I could not do that because I didn't have the serial number handy for CS3 in case I want to reinstall it at some point.
    I tried to get technical help with the Cleaner Tool problem but no definitive help was available, so I reinstalled CS6 again without having the benefit of the Cleaner Tool.  I tried to get the serial number for CS3 so I could use the Cleaner Tool but spent 2 wasted hours in chat.  Even though I had a customer number, order number, order date, place of purchase, the email address used AND 16 digits of the serial number, in two hours the agent couldn't give me the serial number.  After two hours I had nothing but instructions to wait another 20 minutes for a case number.
    Illustrator CS6 is still trying to open some backups as Text and otherNone of the problems have been fixed.  I have tried to open/use the .ai files in CS6 installed on another system and am getting the same result, so I don't think the software was damaged by the cleaner.  The hard drive cleaner is well-known and I've run it many times without any problem to previous versions of Illustrator or any other programs.
    When I ordered, the sale rep promised good technical support and gave me an 800 number, but after I paid the $2000, I learned that the 800 number she gave me doesn't support CS6 and hangs up on me.  Adobe doesn't call it a current product even though they just sold it to me about 3 weeks ago.
    Would appreciate any help you experts can offer.  If I can't solve this, the last backup I can use was from June and I will have lost HUNDREDS of hours of work and assets that I cannot replace.
    Exhausted and still desperately in need of help...

  • Aperture ate my picture files and they are not recoverable.  The guy at the Genius Bar told me to Trash the App, empty Trash, then go to Purchases and reinstall.  But Purchases says it is "Installed" so it does not let me download it again.  HELP!!!!

    Aperture ate my picture files and they are not recoverable.  The guy at the Genius Bar told me to Trash the App, empty Trash, then go to Purchases and reinstall.  But Purchases says it is "Installed" so it does not let me download it again.  HELP!!!!

    I typed Aperture into Spotlight and sure enough it did show up.
    It looks like it is supposed to be in Apps.
    But it is not there.
    So I clicked on the spotlight Aperture and it opened up the App!!!!
    But I do not know where it is to move it!
    How can I find it?
    While Aperture is running and you are seeing it in the Dock, ctrl-click (or right click) the Dock icon.
    You will see a contextual menu. Click on "Options", then select "Show in Finder".
    And check the "keep in Dock" mark, so you will not lose it from the Dock.

  • I am new to iMovies.  When I make a video using the mic and camera in my Macbook Pro, the audio and video are not in synch.  Very annoying.  How can I fix this?

    I am new to iMovies.  When I make a video using the mic and camera in my Macbook Pro, the audio and video are not in synch.  Very annoying.  How can I fix this?

    DVD drives read the bottom of the disk, not the top. Smooth out the paper & try again.

  • On my macbook pro I have a message on my homepage telling me that certain items want to use my keychain. I've pressed cancel the message will not go. The mac is now running very slow and iphoto and safari are not working. Can anyone help?

    On my macbook pro I have a message on my homepage telling me that certain items want to use my keychain. I've pressed cancel the message will not go. The mac is now running very slow and iphoto and safari are not working. Can anyone help?

    What version of Mac OS X?
    What home page?
    What browser?

  • TS4425 when trying to access photo stream on Apple TV, I am getting the error message terms and conditions have changed, but when I go into iCloud on my Mac the new terms and conditions are not appearing - How can I manually agree to them ?

    When trying to access photo stream on Apple TV, I am getting the error message terms and conditions have changed, but when I go into iCloud on my Mac the new terms and conditions are not appearing - How can I manually agree to them ?

    Welcome to the Apple Community.
    The following article(s) may help you.
    Photo Stream ToU's

Maybe you are looking for