Context menu problem in ADF 11g

Hi All,
A context menu problem puzzle me. Following is the source,
=======================================
<af:tree id="tree" value="#{treeTest.collectionModel}" var="node"
contentDelivery="immediate"
disclosedRowKeys="#{treeTest.treeDisclosedRowKeys}"
rowDisclosureListener="#{treeTest.rowDisclosureListener}"
rowSelection="single">
<f:facet name="nodeStamp">
<af:group id="g1">
<af:image source="/image/#{node.treeLevel}.jpg" id="i1"
inlineStyle="width:16px; height:16px; vertical-align:middle;"/>
<af:outputText id="ddl" value="#{node.name}">
<af:showPopupBehavior popupId="myPopup" triggerType="contextMenu"/>
</af:outputText>
</af:group>
</f:facet>
<f:facet name="contextMenu">
<af:popup id="myPopup" popupFetchListener="#{treeTest.popupListener}"
contentDelivery="lazyUncached">
<af:switcher id="s1" facetName="#{treeTest.level}">
<f:facet name="1">
<af:menu text="menu 1" id="m1">
<af:forEach items="#{treeTest.menuItems['0']}" var="menuItemss">
<af:commandMenuItem text="#{menuItemss.name}"
actionListener="#{bindings.onNodeClicked.execute}"
disabled="#{!bindings.onNodeClicked.enabled}">
</af:commandMenuItem>
</af:forEach>
</af:menu>
</f:facet>
<f:facet name="2">
<af:menu text="menu 2" id="menu1">
<af:forEach items="#{treeTest.menuItems['1']}" var="menuItemss">
<af:commandMenuItem text="#{menuItemss.name}"
actionListener="#{bindings.onNodeClicked.execute}"
disabled="#{!bindings.onNodeClicked.enabled}">
</af:commandMenuItem>
</af:forEach>
</af:menu>
</f:facet>
</af:switcher>
</af:popup>
</f:facet>
</af:tree>
========================================================
I want to get the commandMenuItem tag's information, i use following code in onNodeClicked method try to get it,
FacesContext facesContext =FacesContext.getCurrentInstance();
ELContext elContext = facesContext.getELContext();
ExpressionFactory expressionFactory =facesContext.getApplication().getExpressionFactory();
ValueExpression exp =expressionFactory.createValueExpression(elContext,"#{menuItemss.name}", Object.class);
but the exp is null.
Please help me to solve this problem.
Thank you very much.
Edited by: Yitao Li on Dec 4, 2009 1:06 PM

You might need a #
ValueExpression exp =expressionFactory.createValueExpression(elContext,"#{menuItemss.name}", Object.class);

Similar Messages

  • Right Click,Context Menu problem in Page Personalize

    Hi All,
    I am using EP6.40 and SP 13.  When I right click on portal content, showing context menu. I entered into Page Personalize  page by clicking options icon(Right-top corner of the page)-> personalize, a pop up window opened. In there, When I right click on  a folder in portal content, it opens browsers context menu.
    And also I am getting a java script error like 'Object expected'. How can I solve this..?.Please help me.
    Thanks & Regards
    Art

    Did u get this resolved. I am facing tghe same problem in Portal content admin. Java Script error  "Object Expected".
    Thanks
    Amandeep

  • Context menu problem, bug

    I have two displays  – macbook pro 15 and Cinema Display 27. When using both ow them there is a trouble  –  context menu appears on one when in was calle on another
    here is how it looks http://daniyar.com/temp/screen-GMrVZtBl5m.jpg

    If you detach it the monitor so the screen goes to single-screen mode on your laptop, and then re-attach the monitor, does the problem persist? This is definitely not a universal issue in Mountain Lion.
    Try creating a new user account and then log into that account to see if the problem persists in that account. This will indicate whether or not the problem is with an account-based setting or is more global.

  • Migrating existing Menu Bar to ADF 11g

    I have the top nav bar for my existing application made with javascript..The menu flows on mouseover..We later started adding ADF 11g screens to the application.. and in every screen i include the javascript Top Nav bar. Please suggest how i can develop/ migrate the Menu bar to 11g so that i can make use of templates..
    Thanks in advance

    Hi,
    what do you mean by "migrate"? I thought you already added ADF Faces screens
    Frank

  • Web Application Context Menu - Problem posting comments

    Hi all,
    We are using SAP BW 7.0 (nw2004s) and the web interface to the reports (Web Applications). Some specific reports have to enable users to insert information about specific lines (comments about non-conformity issues). We were planning to insert documents (via context menu) integrated with portal KM.
    Using the Analyzer, we had no problem at all. All the information posted was saved in KM and we could read it using "RSA1 - Documents" and using the Analyzer. The commented value shows a flag that indicates the comment (a small "paper" picture). But when we try to use the Web Application to post this information, it is saved ok but it can only be read using "RSA1 - Documents" and not by the Web Application (it always shows no new documents) and there's no indication in the commented value at all. Has anyone seen something like that? We need to use the web interface. Using the Analyzer is not an option.
    Thanks in advance

    This is not the 2004s runtime in the 2004s system. The url you provided is the BW 3.x runtime in the 2004s system. Make sure on the client side in IE, you don't have and script blocking or popup blocking. For client side settings in IE, make sure your settings are specified as outlined in this blog:
    Troubleshoot the SAP NetWeaver 2004s BI Frontend Installation
    Also, make sure your url has the fully qualified domain name for your server.

  • Chart Context Menu Problem

    Hi, When I Right-Click on my BI Chart I get both the Chart Context Menu and the IE Context Menu.  And of course the Chart Menu is 99% blocked by the IE Context Menu.  I can just barely see the edge of the Chart Context Menu and I can get it to take focus if I mouse over and select it just right.  But, I'm hoping to find out why the IE Context Menu keeps appearing?  It doesn't seem to happen to all of the charts except for the one in the Tab Container.  Any ideas?
    Thanks! Ken Murray

    I Found OSS Note that looks promising!
    Note 1119412 - Internet Explorer standard context menu displayed on chart

  • Context Menu Problem

    We upgraded from 3.1C to 2004s recently. We have some issues with our web reports.
    When we execute a report from the role menu, the report runs fine, but we dont see the WAD context menu but we see the standard IE context menu.
    Also, I get the message "Executing the Web item for ad-hoc query design requires JavaScript"
    When I just run the web report normally, not using the role menu, everything is fine and i see the WAD context menu.
    Any input would help!

    This is not the 2004s runtime in the 2004s system. The url you provided is the BW 3.x runtime in the 2004s system. Make sure on the client side in IE, you don't have and script blocking or popup blocking. For client side settings in IE, make sure your settings are specified as outlined in this blog:
    Troubleshoot the SAP NetWeaver 2004s BI Frontend Installation
    Also, make sure your url has the fully qualified domain name for your server.

  • Dynamic menu problem in weblogic 11g

    I have deployed my application in weblogic11g when I switch between menus I encounter following error :
    j+avax.faces.el.EvaluationException: Error setting property 'currentLevel1MenuItemName' in bean of type com.pooyaco.JariDynamicMenuBeen: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT MenuItem.ID, MenuItem.DISABLED_EXPR, MenuItem.LAUNCHING_GROUP_NAME, MenuItem.NAME, MenuItem.LABEL_TRANSLATION_KEY, MenuItem.RENDERED_EXPR, MenuItem.LABEL, MenuItem.ROLES, MenuItem.IFRAME_URL, MenuItem.MDE_ID, MenuItem.MIM_ID, MenuItem.DISPLAY_SEQUENCE, MenuItem.JSF_ACTION FROM JHS_MENU_ITEMS MenuItem WHERE MenuItem.MIM_ID = ? ORDER BY display_sequence+
    +     at com.sun.faces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:208)+
    +     at oracle.adfinternal.view.faces.model.FacesPropertyResolver.setValue(FacesPropertyResolver.java:155)+
    +     at com.sun.faces.el.impl.ArraySuffix.setValue(ArraySuffix.java:212)+
    +     at com.sun.faces.el.impl.ComplexValue.setValue(ComplexValue.java:191)+
    +     at com.sun.faces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:216)+
    +     at oracle.adfinternal.view.faces.taglib.listener.SetActionListener.processAction(SetActionListener.java:50)+
    +     at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)+
    +     at oracle.adf.view.faces.component.UIXComponentBase.broadcast(UIXComponentBase.java:548)+
    +     at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:200)+
    +     at oracle.adf.view.faces.component.UIXCollection.broadcast(UIXCollection.java:95)+
    +     at oracle.adf.view.faces.component.UIXRegion$1.run(UIXRegion.java:89)+
    +     at oracle.adf.view.faces.component.UIXRegion._processPhase(UIXRegion.java:189)+
    +     at oracle.adf.view.faces.component.UIXRegion.broadcast(UIXRegion.java:93)+
    +     at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:269)+
    +     at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:327)+
    but in Oc4j(Application server 10.1.3.4) I don't have this problem. I should notice you that If I refresh again my page I will not see the error again and my currenMenu1 item will be show.
    My Jdev ver is :10.1.3.4
    Jhs ver is :10.1.3.3.85

    You might need a #
    ValueExpression exp =expressionFactory.createValueExpression(elContext,"#{menuItemss.name}", Object.class);

  • Context menu in ADF JDeveloper11g tp3

    Has anyone attempted to create an AJAX style (right click) context menu in an ADF paradigm... specifically have an Oracle maps (div id="map") tempDef in which we've established a way to communicated between the OM server and the ADF context via a phase listener, now would like to have a context menu appear at the mouse event location (on the map) that has a ADF context and can be used to trigger ADF/javascript functions and send messages back to the ADF context... any hints, clues, advice or flames out there in Oracle land? Thanks Larry

    Thanks Frank, I'll look into that. At this time, I'm using a different approach. The OracleMaps mapviewer is in a rather large (real-estate wise) div and all the mouse events inside or on the map are captured by mapviewer. Therefore to get back to a FacesContext or the ADFContext I need to send requests which are caught by the a phase listener, then I have access to the context, then I can set or use session variables etc between the map server and the adf application. On the map, the OracleMaps developers only expose a rather limited html interpreter therefore I can not use any af:components when displaying widgets on the map (or in the map space).
    The biggest problem I did not see an answer to, was how to align a pop up(context menu) to absolute screen coordinates, all the align static variables seem to want to align the popup relative to some other af:component. This won't work on a map where the pop up should display where the mouse click occurs.
    Hopefully you'll be able to see our humble WEB offering based on ADF tp3(4) and Oracle Maps11gtp2 for Cuyahoga County (Cleveland Ohio) soon. Though in beta I think it will be open to the public and invited guests, with the understanding that it is still a work in progress. But what do I know about politics, I'm just a programmer. No pressure, but I hope you guys release a RC version, if not a version one release of Fusion11g soon.

  • Problem with APEX tree in 4.1.1.00.23-while adding context menu

    Hi,
    Version : Apex 4.1.1.00.23 and Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    i wanted to add context menu to my tree region.i followed Jason's blog
    http://jastraub.blogspot.com/2010/09/adding-context-menu-to-tree-region.html
    But after i add the javascript code he mentioned,nothing seems to have changed.The context menu appears the same way it was before.
    Is there anyone facing similar problem?
    Appreciate your comments,

    Also using Apex 4.1 and I successfully adapted the steps to my application and it worked well ... the context menu and the tool tips come up well and are functional. The only issue I am still having is that the drop-down arrows no longer work ... I had to use a dynamic action to keep the trees all expanded when the page loads. However, I cannot collapse them as I used to (if needed). I am looking forward to a fix to this issue too.
    Gerald

  • Problems with new start button right-click context menu

    I have been unable to come up with a rhyme or reason to this problem.
    For some reason the Windows 8.1 start button will no longer respond to a right-click.  The context menu will not come up.  You can see that the active window is no longer active because the border color changes.  The start button works as
    expected when left-clicking it.
    I first noticed this on a brand new Windows 8 machine that I upgraded to Windows 8.1.  The problem occurred while I was messing with trying to customize the default user profile.  The next time I logged in with a new user account the start button
    was broke.  The system I was using was stripped down.  It had NO additional software on it except the drivers and necessary associated applications, and all available Windows updates were installed.  I chaulked it up to something I messed up.
    Next, I reformatted 20 lab computers with Windows 8.1 Pro and joined them to a Server 2003 domain.  Users have roaming profiles and folder redirection policies.  The folder redirection policies redirect AppData, Documents, and Desktop to a folder
    on the server and the contents of these folders are shared between Windows XP and Windows 8.1.  The roaming profiles are unique and new.  Thus far all users have only logged on to Windows XP so they have the version 1 profile and when they logon
    to the Windows 8.1 box a new .v2 profile folder is created.
    Today, we logged about 12 users into these individual machines for the first time and about 3 or 4 of them could not right-click their start button.  Once the problem occurs, it never goes away regardless of what machine they log into.  The only
    way to solve the problem is to default the profile off the computer and delete the roaming profile folder off the server.  The problem has reoccurred after this but I'm not sure what triggers it.
    In addition, I have tried renaming the user's redirected application data folder and letting Windows 8.1 create a new one in case there was a conflict with a Windows XP setting.  This did not resolve the issue.

    In my environment we had a network "Default User.V2" profile that we used with Win7 clients.  Now, with Win8 and Win8.1 we've configured the clients to use V3 and V4 profiles (http://support.microsoft.com/kb/2887239/en-us). 
    That link is for the Win8 hotfix, which changes the roaming profile of users to .V3, but there's also one for 8.1 and it changes the profile folder to .V4.
    Anyway, we have since deleted the Default User.V2 from our network.  In testing the creation of .V4 roaming profiles with Win8.1, I've figured out a little more about the WinX folder.  If I have a roaming profile and log into a Win8.1 computer
    for the first time, the WinX folder is created as part of my profile during the "Hi, we're setting things up, many bright colors" spiel before you get to the Metro screen.  However, when I log out, because the WinX folder is in the Local AppData, it doesn't
    get uploaded to my roaming profile location.  If I then log back into the same computer, everything is fine because that computer still has a local copy of my profile with WinX in the Local AppData.  However, if I log into any other computer, the
    WinX folder doesn't get created and I can no longer right click on the Start menu (until I copy it to my Local AppData on that computer).
    So, it seems that when I first log in to a Win8.1 computer and go through the "Hi....etc etc....many different colors" startup, the WinX folder is created and will work on that computer, but if I log into another computer, it isn't downloaded as part of
    my roaming profile or re-created.  Also, if you have the GPO set to delete copies of roaming profiles off of the computer when a user logs out, I would guess that the WinX folder would then get deleted and when you log back in you'd have the same issue.

  • Oracle ADF 11g – Authentication using Custom ADF Login Form Problem

    Hi Guys,
    I am trying to Authenticate my adf application using custom Login Form.
    following this..
    http://www.fireboxtraining.com/blog/2012/02/09/oracle-adf-11g-authentication-using-custom-adf-login-form/#respond
    But my Login Page is not Loading.I think its sending request in chain.my jdev version is 11.1.1.5.Any Idea.
    Thanks,
    Raul

    Hi Frank,
    I deleted bounded code and In another Unit Test I created a simple login.jspx page and applied form based authentication but still facing same problem means something wrong in starting.
    My login.jspx page is
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" >
          <af:form id="f1" >
            <af:panelFormLayout id="pfl1">       
              <af:inputText label="USERNAME" id="it1"
                            />       
              <af:inputText label="PASSWORD" id="it2"
                              />
              <af:commandButton text="LOG IN" id="cb1" />
              <f:facet name="footer">       
              </f:facet>                 
            </af:panelFormLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    Don't know wht real problem is

  • Context menu refresh issue in adf tree.

    Hi All,
    I am using jdeveloper 12.1.2.2.0.
    I have a programmatically generated tree in which I have added two buttons in the context menu using context menu facet.
    * I have selection listener in the tree and right click also selects the node.
    There are two issues regarding the context menu:
    1. If I right click the tree node, the context menu is showing only the two buttons I added and it is not showing the default expand/collapse, expand all/collapse all below and show as top options of context menu. Once I refresh the tree region doing some actions in the page, it is showing all the options.
    2. The buttons I added inside the context menu have disabled conditions and the trigger is given for the parent container "popup" which will be triggered by tree node selection. The problem is that whenever I right click the tree node, the popup is refreshed because of the trigger and the expand/collapse functions are not working. If I right the same node again the functions are working fine.
    How to resolve these issues?
    Thanks in advance.
    - Vignesh S.

    Any suggestions would be helpful.
    The below is the xml of the tree:
                                                           <af:tree var="node" value="#{dmc.btm.model}" id="btc"
                                                                     rowSelection="#{(viewScope.fc.editable || viewScope.cc.editable || viewScope.bc.editable) ? 'none' : 'single'}"
                                                                     immediate="false" initiallyExpanded="false"
                                                                     selectionListener="#{dmc.selectionListener}"
                                                                     fetchSize="100" expandAllEnabled="true">
                                                                <f:facet name="nodeStamp">
                                                                    <af:group id="g3">
                                                                        <af:image source="#{node.icon}" id="i1"/>
                                                                        <af:outputText value="#{node.id}" id="ot4"/>
                                                                    </af:group>
                                                                </f:facet>
                                                                <f:facet name="contextMenu">
                                                                    <af:popup childCreation="deferred" autoCancel="enabled"
                                                                              id="p1" partialTriggers="::btc"
                                                                              contentDelivery="lazyUncached">
                                                                        <af:menu text="menu 1" id="m1">
                                                                            <af:toolbar id="t4">
                                                                                <af:commandToolbarButton shortDesc="Create"
                                                                                                         text="#{prop['label.new']}"
                                                                                                         icon="images/new_ena.png"
                                                                                                         disabledIcon="images/new_dis.png"
                                                                                                         id="ctb4"
                                                                                                         actionListener="#{dmc.newListener}"
                                                                                                         partialSubmit="true"
                                                                                                         disabled="#{!dmc.createButtonEnabled || viewScope.fc.editable || viewScope.cc.editable}"/>
                                                                            </af:toolbar>
                                                                            <af:toolbar id="t5">
                                                                                <af:commandToolbarButton shortDesc="Delete"
                                                                                                         text="#{prop['label.delete']}"
                                                                                                         icon="images/delete_ena.png"
                                                                                                         disabledIcon="images/delete_dis.png"
                                                                                                         id="ctb5"
                                                                                                         actionListener="#{dmc.deleteListener}"
                                                                                                         disabled="#{!dmc.deleteButtonEnabled || viewScope.fc.editable || viewScope.cc.editable}"/>
                                                                            </af:toolbar>
                                                                        </af:menu>
                                                                    </af:popup>
                                                                </f:facet>
                                                            </af:tree>

  • Problem printing with Reader 10.1.6 using context menue.

    After installing patch 10.1.6 some documents are not printing correct using the explorer context menue.
    The Document contains a link like WWW.heise.de and is printing like X X X /I f jtf /ef
    Open the Document and printing works fine.

    Hi,
    I am not able to reproduce the issue. Could you please share the document with which you are facing the issue.
    Also tell me more about the environment e.g Operating System. Is this problem occurring only on printing from the context menu ?
    Thanks.

  • Context menu of adf tree not working properly in firefox

    hi all,
    I am creating a context menu using the context facet in <adf:tree>. Everything is working fine in both chrome and ie but the issue is with firefox.It's opening up the browser window and rarely showing up the context menu
    Any help would be appreciated.
    Here is the code
    <af:tree value="#{bindings.FormSectionsView1.treeModel}" var="node"
    selectionListener="#{bindings.FormSectionsView1.treeModel.makeCurrent}"
    rowSelection="single" id="t1">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node}" id="ot1"/>
    </f:facet>
    <f:facet name="contextMenu">
    <af:popup childCreation="deferred" autoCancel="disabled" id="p1">
    <af:menu text="menu 1" id="m2">
    <af:commandMenuItem text="commandMenuItem 1" id="cmi1"/>
    <af:commandMenuItem text="commandMenuItem 2" id="cmi2"/>
    </af:menu>
    </af:popup>
    </f:facet>
    </af:tree>
    Thanks,
    Raj

    Raj,
    Welcome to OTN. Always mention your JDev version (read through this announcement : https://forums.oracle.com/forums/ann.jspa?annID=56 )
    Try running the tree demo in your browser and see if it works fine (Right click on any node to bring up the context menu).
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/tree.jspx
    -Arun

Maybe you are looking for

  • How can i put my songs from one ipod to another?

    Hello, After a failed attempt at getting the lcd screen on my iPod with color display fixed, my parents got me a brandnew ipod, the fifth generation one. Slight problem- will my itunes just load all my songs from my old one onto my new one, or do i n

  • Dual 30's have some pixelization going on

    The PC is a Pentium Extreme and a Quadro FX 4500 running XP Pro and dual 30" displays. My current res is 1600 x 900 @ 32bit and 60 hertz (the higher res is too hard to read out there at the far ends of each monitor). I'm seeing some pixelization on t

  • Strange Screen Glitches Starting Up

    Sometimes when I power on my MacBook Pro, the screen is blank or has strange vertical lines in it. I think the LCD screen is bad. If you lightly press on the bottom corner of the screen, the problem usually goes away. If you lightly press on the bott

  • SRM7 Supplier self registration

    Dear Gurus, I'm analyzing the supplier registration in SRM7 using the supplier self service. I have the following questions: 1. During the supplier registration are 2 approval level process available (the first once the supplier has registered his ba

  • Re: Track Oracle users in Oracle connecting through Tuxedo

    Check the dba system tables and views (specially the dynamic v$ ones). You will find usefull session information (user, from where, program name, blocking conditions...). As a help, you can use the oracle dba scripts or use a graphical tool to show y