Render menu item conditionaly in contextMenu

Hi,
I am having a tree with contextmenu facet. Also, I have a "Actions" drop-down with the similar set of menu items in my toolbar. I use the same jsff for both the menus like this:
1) for tree context-sensitive menu:
<f:facet name="contextMenu">
<af:popup id="popContextMenu"
rendered="#{userCanEdit}"
contentDelivery="lazyUncached">
<f:subview id="contextView">
<jsp:include page="/oracle/communications/brm/pdc/ui/fragments/changeset/changeSetContextMenu.jsff"/>
</f:subview>
</af:popup>
</f:facet>
2) For Actions dropdown:
<af:menuBar id="mb1" rendered="#{userCanEdit}">
<f:subview id="csMenuBar"
binding="#{viewScope.workspaceBean.csMenuBar}">
<jsp:include page="/oracle/communications/brm/pdc/ui/fragments/changeset/changeSetContextMenu.jsff"/>
</f:subview>
</af:menuBar>
My use case is, I need to show "Create" menu item if menu is accessed using Actions drop-down. However, if user right clicks the tree node "Create" should not be displayed in context-sensitive menu. Any idea how can I distinguish the source of event, what should be the EL in "render" property of commandmenuitem?
Regards,
Afroz

Hi John,
I tried following:
<f:subview id="csMenuBar" binding="#{viewScope.workspaceBean.csMenuBar}">
    <jsp:include page="/oracle/communications/brm/pdc/ui/fragments/changeset/changeSetContextMenu.jsff" flush="true">
                     <jsp:param name="isAction" value="true"/>
     </jsp:include>
  </f:subview>And in the included page I try to read this parameter using El : *#{param.isAction}*
However, #{param.isAction} always returns blank. Looks like the parameter is not passed to the included page. Is there any other way to read this parameter?
Regards,
Afroz

Similar Messages

  • Option / Menu items render smaller 12 points in Chinese font problem

    Doesn't anyone experience when JVM SWING render Chinese Font smaller than
    12 points (say 9 points) very ugly in label, ...etc. Just not similar to Windows' one.
    How to config it to work properly?
    I find that menu items / option items both are rendered ugly in Star office
    application / OpenOffice.

    Hi,
    unfortunatly you cannot change the properties of Action object as you would do with JavaBeans. Instead you have to use the 'put' method.
    eg.:
    myAction.put(Action.SMALL_ICON, new ImageIcon(...));IMHO this was a bad decision, because it's not like the JavaBeans standard and you loose static type information. :-/
    -Puce
    Message was edited by:
    Puce

  • Can I get different background colors on menu items?

    I've been trying to get different background colors on my menu (Quick launch) items for a while, without success. What I want is the even numbered items (the second, fourth, sixth...) to have a different background color than the uneven ones (first, third,
    fifth...).
    Anyone knows if this can be done?
    Thanks, guys!

    Can you do something in the javascript code where you have given specific IDs to each buttons in your menu? It could end up in something like "$('#menu_id').css('background-color', '#1B3E70');"
    Or, let say you have controls defined like thie:
    <body>
    <ul class="menu">
    <li class="menu-item"><a>item 1</a></li>
    <li class="menu-item"><a>item 2</a></li>
    <li class="menu-item"><a>item 3</a></li>
    </ul>
    </body>
    Can't you write at render stage this kind of actions by index:
    var i = $("li").index( $(this).parent() );
    if ( i === 1 ) {
    $('body').css('background', 'red');
    } else if ( i === 2 ) {
    $('body').css('background', 'green');
    } else {
    $('body').css('background', 'brown');

  • Menu items greyed out

    I just loaded my Ae and I am using the Adobe Ae CC 2014 CIB and when opening Ae in the menu to start off with the menu items to start with are greyed out, How and Why?
    I am using an iMac 27" system and it is brand new less than a year old. I downloaded the guru 5.0 or ;after Driver, now no welcome screen come up and the menu items are greyed out. I am trying to start the program and I can't. Any ideas to help ? oh Yeah my name is Bill140.

    Are you definitely opening the correct version of After Effects, or are you perhaps opening the After Effects Render Engine instead?
    The Render Engine is, as its name suggests, purely for rendering existing projects, and most other functions are greyed out.
    Bill Hirsh wrote:
    I downloaded the guru 5.0 or ;after Driver,
    I don't understand what this means.  Please repost and explain more precisely what the problem is.

  • Next and Previous Document menu items greyed out

    I have Reader 8.1 and the next document and previous document menu items under View > Go To are greyed out, even though I have several document open and they show up in the windows menu. Any thoughts? Thanks.

    Are you definitely opening the correct version of After Effects, or are you perhaps opening the After Effects Render Engine instead?
    The Render Engine is, as its name suggests, purely for rendering existing projects, and most other functions are greyed out.
    Bill Hirsh wrote:
    I downloaded the guru 5.0 or ;after Driver,
    I don't understand what this means.  Please repost and explain more precisely what the problem is.

  • TableView Context Menu Item shows up when run on Java 8 until update 5 but not on later ones

    The code below runs as its name says on Java 8 update 5 but not on later ones:
    public class TableViewShowingOnlyAnAppendContextMenuItemIfRowIsEmptyElseDeleteIsIncluded extends Application {
        private final TableView<Name> table = new TableView<>();
        private final ObservableList<Name> data = FXCollections.observableArrayList(new Name("Jacob"),
                new Name("Isabella"), new Name("Ethan"), new Name("Emma"), new Name("Michael"));
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(Stage stage) {
            TableColumn<Name, String> column = new TableColumn<>("Name");
            column.setCellValueFactory(new PropertyValueFactory<>("name"));
            table.getColumns().add(column);
            table.setItems(data);
            ContextMenu contextMenu = new ContextMenu();
            contextMenu.getItems().add(new MenuItem("append"));
            table.setContextMenu(contextMenu);
            table.setRowFactory(tableView -> {
                TableRow<Name> row = new TableRow<>();
                row.contextMenuProperty().bind(
                        Bindings.when(Bindings.isNotNull(row.itemProperty()))
                                .then(showOnlyAppendContextMenuItemIfRowIsEmptyElseIncludeDelete())
                                .otherwise((ContextMenu) null));
                return row;
            Scene scene = new Scene(table);
            stage.setScene(scene);
            stage.show();
        private ContextMenu showOnlyAppendContextMenuItemIfRowIsEmptyElseIncludeDelete() {
            ContextMenu rowMenu = new ContextMenu();
            ContextMenu tableMenu = table.getContextMenu();
            if (tableMenu != null)
                rowMenu.getItems().addAll(tableMenu.getItems());
            rowMenu.getItems().add(new MenuItem("delete"));
            return rowMenu;
        public static class Name {
            private final SimpleStringProperty name;
            private Name(String name) {
                this.name = 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 none, is this a regression that should be submitted? As of now, all the PCs in use have 8u5.
    Thanks in advance.

    Correctly answered 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 fix is to create new menu items that are copies of the ones in the table's context menu:
    private ContextMenu showOnlyAppendContextMenuItemIfRowIsEmptyElseIncludeDelete() {
    ContextMenu rowMenu = new ContextMenu();
    ContextMenu tableMenu = table.getContextMenu();
    if (tableMenu != null) {
    for (MenuItem item : tableMenu.getItems()) {
    MenuItem rowItem = new MenuItem(item.getText());
    rowItem.setGraphic(item.getGraphic());
    rowItem.setOnAction(item.getOnAction());
    rowMenu.getItems().add(rowItem);
    rowMenu.getItems().add(new MenuItem("delete"));
    return rowMenu;

  • Error while calling a form from another form's menu item

    I created a main form and menu module for this form.
    I am calling another form from main form menu item.
    i moved both the forms and menu and compiled them.
    But, when i run this form i am getting an error saying
    FRM 92100: Your connection to the server was interrupted
    This may be the result of a network error, or a failure on the server.
    You will need to establish your session.
    I set the seperateframe = true
    networkentries = 30
    But still getting the same error.
    Is there any parameter that i am missing.
    I will greatly appreciate if anybody can direct me to the solution.
    Thank you.
    Navya.

    Hi guest,
    the data definition is:
    DATA: XVBKD LIKE VBKDVB OCCURS 0 WITH HEADER LINE.
    the assignment:
    XVBKD-PRSDT = likp-erdat.
    Thanks,
    Hagit

  • How to reset input Text value on click of root menu item navigation link ?

    All,
    Jdeveloper - 11.1.1.6
    I am facing this issue across the pages.
    I have a root_menu.xml based navigation available as links at the top of ADF application. Some of the menu links directly have JSPX pages having the content being loaded , and others are JSPX containing Bounded task flow.
    Issue :
    On the click of the menu links, the page gets reloaded / refreshed , however the input value given on the page remains displayed even after refresh.
    We need the page refresh along with any input test box getting cleared on Menu item click.
    Any pointers as to how we can resolve.
    Thanks

    If your page is in a taskflow (which it should be as you use pageflowscope), you should have a method action in your task flow which you call to clear all the values you use in the UI.
    Timo

  • How to get all menu items list in blackberry curve phone

    Hai all
    i am new to Blackberry application developer. I done one application in blackberry in default simulaor, I changed my simulator to Blackberry 8900 simulator. The features is more in curve phones like instant messaging. So i need to get the full menu item list from the API. Do i neddd to change the API ?..  I wanted to get the list like .. camera,maps,contacts,messages,weblin,sms,instant messaging etc. Can anyone help me in this case. My intention to get all the menu items in a list.
    Thanks in Advance

    thank you for your solution.. my aim is list all the menu items in a drop down list. In the default simulator it is fetching all the menu items in the phone through API. But in curve 8900 it is not showing all the menu items, can u give me a suggestion
    like           ^
    camera
    contacts
    maps
    clock
    calendar  like this i need to display
    Message Edited by joedfranc on 05-30-2009 10:57 AM

  • How to render web items based on the authorisation profile of the user

    Hello,
    Is there any way to render web items based on the authorisation profile of the user. The only way i can think of is:
    - Write ABAP to look up into the security mapping tables.
    - Convert the ABAP report into RFC-Enabled FM. The selection variables will be part of the import/export parameters of FM and table can be used to display the result.
    - Create HTML template using WAD, write Java Script to call the FM and map the import/export parameter. Display the result in Table.
    But i don't know How to use the Java Script to call Function Module (FM) and get back the authorization through parameter.
    Is anyone know about it or is there any other method to do it? I can't find any solution and it is very critical for me.
    Any help is highly appreciated.
    Rajat

    Hi Rajat,
    Do you mean that you want certain users to be able to use only certain web items? I think you can use the libraries for that and assign them to roles:
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/0f813b420ce60ee10000000a114084/content.htm
    Hope this helps...

  • Muse 2014 -sub menu items appearing on roll-over etc.

    Hi, complete newbie, so sorry if this has already been covered elsewhere. Only started using Muse about 1 month ago and now using Muse 2014 - using horizontal menu widget and discovered how it now shows sub-menus when hovering over the main menu item- I find this great!
    I want a 'Contact Me' page with a basic form and this is not a problem, however, I want the sub-menus to appear when hovering over the other main menu items, but not the contact me page - might be completely off here, but created a 'Thank you' page as a child page of the contact me page and only want this displayed (not as a sub-menu choice when hovering over the contact me main menu item) when they have clicked the submit button on the form (I know how to set this re-direction in the forms options). Have tried playing with menu on the master page - switching off the edit together and changing settings on only the contact me menu item - without success- seems to apply to all main menu items.
    I would like to know how to achieve sub-menus on other menu items - but not on contact me item;  or whether I am going about trying to have a 'Thank you' response when someone submits the contact me form in the completely wrong way - can this be better achieved by other means?
    I would really appreciate your advice and help. My published site is 'onyerbikegeordie.uk' with the main menus - except not with a contact me page as yet, but would  give you an idea of what I am trying to achieve except for a contact me page.
    Sorry for the long post, but thanks for reading and in anticipation of your help!
    Joe
    Message was edited by: Joe Fitzpatrick

    Hi, managed to find the answer to this myself. In Plan, right-click on page and select Menu Options > Exclude Page from Menus. Job Done!
    Joe

  • Implementing menu items and saving state in my app

    Hello
    I'm a new user to the forums, but have a little bit of java programming experience.
    currently i'm writing some business applications, one of which is a payroll system. The target audience is end-user bookkeepers so i am planning for a GUI front end.
    My first question relates to how programs save their state. for example, each month the bookkeeper will launch the program and add the next months payments, or he/she will open the program to fix a mistake. In general how do programs like word, excel (or anything) save and load files to work with? I was thinking about using XML. I thought i would load in an XML file containing all work so far, and then the user could save to it, which would add the new work.
    Question the second: A lot of gui java apps i use (like argo, symphony etc) have standard menus at the tops. Items like open, save, close, print etc. How are developers actually doing this? is there some premade classes i can just use in my programs as well that would be me this funtionality? This kindof relates to my first question about saving and opening. Further, it seems there are two GUI libraries to consider - either SWT or Swring. Eclipse plugins are written in SWT (from what i have heard). Can anybody recommend which API i should be using to create a GUI for my program?
    I think that's it for now. If anybody can provide me with advice i woudl be most grateful, as i'm at a bit of a standstill with my development.
    thanks.
    Edited by: minofifa on Oct 25, 2007 1:09 PM
    attempted to take topic off the watch list - sorry guys

    My first question relates to how programs save their state. for example, each month the bookkeeper
    will launch the program and add the next months payments, or he/she will open the program to fix a
    mistake. In general how do programs like word, excel (or anything) save and load files to work with? I
    was thinking about using XML. I thought i would load in an XML file containing all work so far, and then
    the user could save to it, which would add the new work. It sounds more like you are talking about saving the data instead of state--save in a database for mass and long term storage. Simple state info can be easily save in a database also or in a bean or text file.
    Question the second: A lot of gui java apps i use (like argo, symphony etc) have standard menus at
    the tops. Items like open, save, close, print etc. How are developers actually doing this? is there
    some premade classes i can just use in my programs as well that would be me this funtionality? This
    kindof relates to my first question about saving and opening. Further, it seems there are two GUI
    libraries to consider - either SWT or Swring. Eclipse plugins are written in SWT (from what i have
    heard). Can anybody recommend which API i should be using to create a GUI for my program?Maybe this is not what you are asking, but menu systems are implemented with Menu, MenuBar, MenuItem, etc objects in Java. The specifics of what happens when the individual menu items are selected are left up to the programmer.
    If you are looking for prebuilt menubars with code attached to perform common functions, then I do not know of any included in Java.

  • Equal Space between Menu Items and Drop Down Menü left aligned not possible?

    It seems like I can either have equal spacing between the horizontal menu items and the drop down menu will show up centered , or I say the menu items should be of equal size, and then drop down will be left aligned. Is there any way of having equal space AND left aligned drop down???? Thanks in advance!

    Hello Anjum,
    Thank you for reporting the issue. It seems to be a Bug and we have logged the same. Hopefully it will get fixed in coming releases.
    As of now we do not have any workaround for same. However once we have some workaround, we will definitely share it with you.
    Regards,
    Sachin

  • How to Remove the 'Bookmarks Toolbar' menu item in Firefox 8?

    I have Firefox 8 on my Windows 7 machine, and I'm trying to get rid of the 'Bookmarks Toolbar' Menu Item. I'd found a way, way back, to do that in an earlier version of Firefox on my XP PC, but I couldn't find anything on the web on how to do this in this release of Firefox.
    I'm also having trouble getting rid of "Subscribe to this page" menu item.
    Thanks for any help.
    Alex

    Hi
    Try using '&otherparams=usesdi=yes' in your URL...this could solve your problem....good luck :)
    Regards
    Thobula Ramulu Rakesh

  • Page Forward & Reverse buttons do not work & are "grayed-out" after upgrading to, as is the Main-Menu Items such as File-Edit-view etc...

    After upgrading to Firefox 3.6.12 all functionality appeared to be intact. Then after a few days it lost the ability to "page forward" or to "page back" and are "grayed-out". Additionally, the Main menu items such as File, Edit, View, History, Bookmarks, Tools & Help are also grayed-out and non-functioning.
    Also, the "Search Window" does not search, Web Searches need to be performed from within the URL window instead, for some crazy reason. If the URL window is blank when I enter a search into the actual search window the following appears in the URL window, "Search Bookmarks and History", which makes no sense.
    I have noticed similar complaints in this Forum in the past but I have not seen any posted resolution to these issues. Is there a solution?

    Create a new profile as a test to check if your current profile is causing the problems.<br />
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

Maybe you are looking for

  • N100's and Thinkpads w/ 945PM chipset can't address 3G Ram but Dell Can

    From a reply to a NoteBook review Forum: http://forum.notebookreview.com/archive/index.php/t-136639.html At work, we have both Dell XPS and IBM/Lenovo Thinkpad laptops. We choose the T60 models for their compactness/weight and reliability, while we c

  • Best way to draw an asset if I want to change the colour of it?

    If I draw something manually, can I still change the colour by actionscript? I want to draw a cat, and the cat colour depends on the the user choice in the previous 'screen'.  How should I go about this? Thanks.

  • Access & Integration of SAP R/3 PS to EP

    Hi Friends We are planning to use Single Sign on and planning to access SAP R/3 Project system module through EP pages. In this regard would like to know is there any standard business packages available? documentation related to configuration and im

  • Syncing iphone using more than one computer

    Does anyone know how to get iphone to sync to more than one computer? I activated my wife's iphone from my computer (after having logged into her itunes account) but when I try to sync from her computer (logged into her account) nothing happens.

  • How to download CC once and copy it to 9 other computers?

    1: As a teacher I have to install CC on 10 computers. Is it possible to download it once and copy it to the other computers, or do I have to download all software 10 times (witch is no option with our bandwidth) 2: Our IT-guys are still in holiday, s