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>

Similar Messages

  • View Criteria issue on ADF Tree

    Hi,
    JDev 11.1.1.5.0
    I am facing an issue while displaying ADF tree. I've created ParentVO & ChildVO from a single table with view criteria to filter the nodes.And then created two View links ParentToChild & ChildToChild.
    Added VOs & corresponding ViewLinks to ApplicationModule. When I tried to run application module, getting the results as per expectation (applying view criteria at each level).
    Now i've dragged the parent vo from data control on to jspx page. when I run the jspx page, it's displaying the tree structure.
    Issue is only view criteria is applying for top level nodes(parent VO) but not sub levels. If there is some issue with creation of View criteria then it should give same problem while executing AM. But while running AM, getting the expected results.
    It would be great if you provide any clue on this issue
    Thanks,
    Samba

    Thanks for your response.
    But my usecase is different. I need to filter the sublevels of the tree.
    Following is the sample
    Level1
         Level1.1
         Level1.2
         Level1.3
    Level2
         Level2.1
         Level2.2
         Level2.3
         Level2.4
    Level3
         Level3.1
         Level3.2
         Level3.3
    If I gave View Criteria as contains '2' then, Need to filter the nodes contains character 2. Able to filter first level nodes according VC. But VC is not applying for sub levels. Is there any way to set the VC in my case?

  • Scrollbar refresh issue in ADF Table

    Hello, All
    We have an issue regarding the ADF Tables. Please let me know if it is a Oracle bug. All of us know that 'ExecuteQuery' operation refreshes the cache in View Objects.
    But, based on our testing results, there might be a table refresh issue on vertical scrollbars after this opertion is executed.
    Settings:
    In the attached example project, we have a ADF RichTable included in a PanelCollection.
    In addition, We set 'AutoHeightRows' property on this ADF RichTable in order to show scrollbars on the PanelCollection.
    Furthremore, a standard CommandButton is created on the toolbar to execute queries.
    Experimental Steps:
    1. Use your mouse to move the vertical scrollbar to around the center of its range. This behavior causes the scrollbar scrolling vertically.
    2. Click on any row showing in the table right now, make it to be the active row.
    3. Press the 'ExecuteQuery' button, waiting for the table refresh.
    Results:
    1. Active row moves to the first row in the rowset.
    2. Vertical scrollbar stay in the center of its range without moving to the first row.
    3. The first row is hidden from end users. The user can not see the active row in this case.
    FYI:
    The attached project can be accessed from the following link:
    http://www.4shared.com/zip/Xn4Ki0DP/Application3.html
    In this project, we tried to set 'partialTriggers' on RichTable and its surrounding PanelCollection separately. But, the refreshing issue still exists.
    Regards,
    David He

    Welcome David to forums.
    Always mention your exact Jdev version. For more information read this: https://forums.oracle.com/forums/ann.jspa?annID=56
    I too faced the similar kind of issue in one of my application.
    As you have not mentioned the exact jdev version, I will tell you what I did in my application which was developed using Jdev 11.1.2.0
    After the VO is executed, you can write the below line of code to show the first rows in the table.
    applicationsRichTable.setDisplayRow(applicationsRichTable.DISPLAY_ROW_FIRST);
    //applicationRichTable is the binding for the RichTable in managed beanHope it helps.

  • Check/Uncheck issue in ADF Tree

    Hi,
    I am using JDev 11.1.1.5.0. Iam trying to create a ADF Tree from Single VO object with self-reference with check box option. Iam able to create required ADF tree with checkbox option. Some how, unable to provide select-deselect functionality. I mean, if we select any node from the tree, all the sub nodes (till leaf node) should be in select state. Only one node in select state. Rest are not updating.
    Tried to find in JDev forum. Could not able to find suitable topic.
    Tried to implement the process given in the below URL..But no use !!!
    http://andrejusb.blogspot.in/2011/12/adf-tree-how-to-autoselectdeselect.html
    Created two transient attributes at VO level
    checkboxConfirmed - Boolean..It's value will dependent on checkboxConfirmedStatus attribute, which is of type String.
    Finally I am trying to provide technical details what I did so far. It might be lengthy :)
    Following is the JSPX page code
    ===============================
    <f:view>
    <af:document id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:tree value="#{bindings.HierLinks1.treeModel}" var="node"
    id="t1"
    binding="#{pageFlowScope.mBean.treeProp}">
    <f:facet name="nodeStamp">
    <af:group id="g1">
    <af:selectBooleanCheckbox
    label="Label 1"
    id="sbc1"
    value="#{node.checkboxConfirmed}"
    autoSubmit="true"
    valueChangeListener="#{pageFlowScope.mBean.checkBoxChange}"
    />
    <af:outputText value="#{node.ChildItemId}" id="ot1"/>
    </af:group>
    </f:facet>
    </af:tree>
    </af:form>
    </af:document>
    </f:view>
    mBean code goes as follows:
    public void checkBoxChange(ValueChangeEvent valueChangeEvent) {
    System.out.println("Start checkBoxChange ");
    System.out.println("OLD VALUE:"+valueChangeEvent.getOldValue());
    System.out.println("NEW VALUE:"+valueChangeEvent.getNewValue());
    DCIteratorBinding dcIb = ADFUtils.findIterator("HierLinks1Iterator");
    HierLinksVORowImpl parent = (HierLinksVORowImpl)dcIb.getCurrentRow();
    RowIterator ri = parent.getLeafHierLinks();
    // parent.setAttribute("checkboxConfirmedStatus", "Y");
    //RowSetIterator ri = parent.getRowSet();
    Boolean check = (Boolean)valueChangeEvent.getNewValue();
    while(ri.hasNext()){
    LeafHierLinksVORowImpl leaf = (LeafHierLinksVORowImpl)ri.next();
    System.out.println("Leaf ChildItemId"+leaf.getAttribute("ChildItemId"));
    if (check == true) {
    parent.setAttribute("checkboxConfirmedStatus", "Y");
    leaf.setAttribute("checkboxConfirmedStatus", "Y");
    else{
    parent.setAttribute("checkboxConfirmedStatus", "Y");
    leaf.setAttribute("checkboxConfirmedStatus", "N");
    System.out.println("Leaf checkboxFlag 222"+leaf.getAttribute("checkboxConfirmed"));
         Tried to iterate the tree in another approach.
    if( (Boolean)(valueChangeEvent.getOldValue()) != null) {
    Boolean check = (Boolean) valueChangeEvent.getNewValue();
    RichTree navTree = this.getTreeProp();
    CollectionModel model = (CollectionModel)navTree.getValue();
    JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)model.getWrappedData();
    JUCtrlHierNodeBinding currentSelectedNode = (JUCtrlHierNodeBinding)navTree.getRowData();
    List<JUCtrlHierNodeBinding> children = currentSelectedNode.getChildren();
    if (children != null) {
    for (JUCtrlHierNodeBinding _node : children) {
    //Each child search returns node check status
    Row nodeRow = _node.getRow();
    if (nodeRow != null) {
    //_node.setAttribute("checkboxConfirmedStatus",true);
    String childId = (String)_node.getAttribute("ChildItemId");
    System.out.println("CHILDID"+childId);
    String[] atts = (String[]) _node.getAttributeNames();
    System.out.println(Arrays.asList(atts));
    System.out.println("CHECK"+check );
    if(check == true){
    _node.setAttribute("checkboxConfirmedStatus","Y");
    else{
    _node.setAttribute("checkboxConfirmedStatus","N");
    System.out.println("Check Status"+_node.getAttribute("checkboxConfirmed") );
    }else{
    System.out.println("NODE ROW NULL");
    } //End of for loop
    else{
    System.out.println("children NULL");
    else{
    System.out.println("OLD VALUE NULL");
    //refreshSelectedRows();
    System.out.println("End checkBoxChange ");
    Iam suspecting, in JSPX page value="#{node.checkboxConfirmed}" is updating the checkbox status.
    Could please help me on this?
    Thanks in advance,
    Samba.

    Finally able to achieve by enabling 'Retain View Link Accessor Rowset'.
    Thanks,
    Samba

  • Context Menu - SAPGui issue

    All,
    After restarting my system today, i am not getting any context menus? (Right click menus) Any info ?
    a®s.

    Did you correctly assign %CTX :
      * Start transaction SE41
              o   Program: Zxxxx
              o   Status: Zxxx
    Hit F6 (Change)
    Expand 'Function Keys' line (Hit '+')
    In 'Reserved function keys' box, select first column (function code cell) of line 'Shift-F10'
    Hit Ctrl+F9 (Delete Entry)
    Hit Enter (Continue) in the popup 'Change F Key Setting Used Several Times'
    Enter the value below
              o   First column: %CTX
              o   Second column: Context menu
    Hit Ctrl+F3 (Activate)
    Regards,
    Raymond

  • Issue With ADF Tree Expand/Collapse

    Hi All,
    I have a customer who is having issues using the af:tree component on a deployed application. When he tries to expand or collapse a node of the tree, the icon just blinks. This is occurring not only on our application, but also the Oracle ADF Rich Client Demo on http://jdevadf.oracle.com/adf-richclient-demo/faces/components/tree.jspx. He is using Internet Explorer v7.0.5730.13. As far as I can tell, our browser settings are identical, but I can use the tree without a problem.
    Any ideas as to what the problem could be?
    Thanks,
    Brad

    Unfortunately, Internet Explorer is the only browser that is authorized to run on his computer.
    Do you know of any specific IE settings that would cause the af:tree not to work?

  • Issue with ADF Tree Table

    Hi,
    I have the following requirement where i need to display a tree table. Here is how the initial implementation is:
    I have created the read only view for : ManagersVO > PoolsVO > MachinesVO. Where 'MachinesVO' is the destination view. And created view links between ManagersVO & PoolsVO using ManagerId and PoolsVO & MachinesVO using PoolId.
    And using this implementation, successfully created tree table on the UI. Now we got an enhancement for this:
    i.e., MachinesVO should return list of machines as per user logs in. i.e., we have 4 different roles. 'Super Admin', 'Sys Admin', 'App Admin', 'End User'. The default query for MachinesVO is for 'Super Admin'. The query for other user roles is different except the SELECT statement.
    The requirement is to dynamically change the query of MachinesVO based on user logs in and display the tree table accordingly. To implement the same i have tried using setQuery() operation on 'MachinesVO' which results with the following error:
    JBO-26016: InvalidOperException
    Cause: You cannot set customer query (calling setQuery()) on a view object if it is the detail view object in a master detail view link.
    Action: Do not call setQuery() if the view object is a detail.
    Can one suggest me a best solution to implement this.
    Thanks & Regards,
    Kiran

    Hi Navaneetha Krishnan,
    Here is how i implemented based on your comments. As i have tree table based 3 different VO's, created the following method at middle view(i.e., PoolsVO).
    1.Tree Model hierarchy
    ManagersVO > PoolsVO > MachinesVO
    I actually want to filter the data at Machines level. Hence wrote a method at PoolsVOImpls and exposed it in the PoolsVO client interface. Here is the code that i have placed in the PoolVOImpl
    public class PoolsVOImpl extends ViewObjectImpl implements PoolsVO{
         * This is the default constructor (do not remove).
        public PoolsVOImpl () {
      public void filterMachinesDataByUserRole(String userRole,String vzId){
        Row row = getCurrentRow();
        String query = "";
        if(row != null){
          RowSet rowSet = (RowSet)row.getAttribute("MachinesVO");
          if(rowSet != null){
            MachinesVOImpl machinesVOImpl = (MachinesVOImpl)rowSet.getViewObject();
            if(userRole.equalsIgnoreCase("SYS ADMIN")){
                    machinesVOImpl .setWhereClause(query related to sysadmin);
             //Similarly for other user roles.
             executeQuery();
    }And this piece of code needs to be executed before the jsff(which has the tree table) renders. Hence, i created a this methodAction as a default activity in the respective taskflow where the jsff is placed. Once this method get executed, the page should render the machines specific to the user.
    Here is the issue: getCurrentRow() method call is returning always NULL.
    Please correct me if i'm doing something wrong. I do tried the above mentioned approach by creating the method at '*ManagersVOImpl*' level too. Still the same issue.
    Thanks & Regards,
    Kiran

  • Urgent... Refresh issue in ADF 11g Select One Choice..

    Hi,
    There are some some list boxes in our pages (like Group, Users, Roles....)
    When we select users from the Users list box we can see the same name again appending to the list of values.
    Does any one has faces this issue before?
    Please help me on this..
    Thanks

    Hi,
    I don't understand your question. Also, are you using BC4J and Databindings or are you managed bean based?
    Regards,
    ~ Simon

  • Shuttle Component Refresh Issue in ADF

    Hi,
    I have 2 screens back and forth. On 1st screen, I have the search table where the records are being displayed. There, we have a button to add records, which takes the user to the next screen. On the 2nd screen, I have a dropdown and a shuttle box, The values of the shuttlebox are dependent on the dropdown.On page load, the dropdown and shuttle should be blank. When we select something in the dropdown, the shuttle box should have the values changed according to the dropdown. The listener works fine and filters as expected.Now, when we add the records, the page is redirected to the search page. Now, again, when I come to the 2nd scree, the dropdown is black, but the shuttlebox still has values available previously as per the dropdown selected.
    Can someone please provide some ideas to refresh the shuttle box on page load?
    Please let me know if any more information is required.
    Thanks in advance!
    Abhishek

    Bean code for LOV:
    public List<SelectItem> getAvailableBusinessUnits() {
    DCIteratorBinding buIter =
    ADFUtils.findIterator("GmBusinessUnitVO1Iterator");
    ViewCriteria vc =
    buIter.getViewObject().getViewCriteriaManager().getViewCriteria("ActiveGmBusinessUnitVC");
    buIter.getViewObject().getViewCriteriaManager().applyViewCriteria(vc);
    buIter.getViewObject().executeQuery();
    if (availableBusinessUnits == null) {
    availableBusinessUnits =
    ADFUtils.selectItemsForIterator("GmBusinessUnitVO1Iterator",
    "GmBusinessUnitId",
    "BusinessUnitName");
    return availableBusinessUnits;
    Bean code for the shuttle box:
    public void buCountryList(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    buId = valueChangeEvent.getNewValue().toString();
    DCIteratorBinding countryList =
    ADFUtils.findIterator("CountryOfVehSalesBasedLOVOnBUSecurityVO1Iterator");
    countryList.getViewObject().ensureVariableManager().setVariableValue("business_unit",
    buId);
    countryList.getViewObject().executeQuery();
    Thanks
    Abhishek

  • ADF Tree Table Repeats Elements at All Levels in nodeStamp Facet

    Fusion Middleware Version: 11.1.1.5
    WebLogic: 10.3.5.0
    JDeveloper Build: Build JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013
    Project: Custom WebCenter Portal Application integrated with custom ADF task flows.
    Hi
    I have an issue with ADF Tree Table (af:treeTable) whereby if I add a component to a group under the 'nodeStamp' facet it repeats for all levels in the tree even those outside the group.
    Overview:
    - 3-level master-detail structure created using ADF Business Components (3 view objects connected by 2 view links)
    - ADF Tree Table based on master-detail
    - Requirement to show 3 levels of data in the first column as a tree
    - Tree table is rendering correctly showing values for 'node.FullName', 'node.DisplayValue' and 'node.HoursType' respectively in a 3 level tree.
    - When another component is added to the top node in the tree ('node.FullName') for example some output text ('node.TimeBuildingBlockId'), it is displayed along side components 'node.DisplayValue' and 'node.HoursType' as well.
    Code snippet:
          <af:treeTable value="#{bindings.PerPeopleFVO1.treeModel}" var="node"
                        selectionListener="#{bindings.PerPeopleFVO1.treeModel.makeCurrent}"
                        rowSelection="single" id="tt1" styleClass="AFStretchWidth"
                        horizontalGridVisible="true" verticalGridVisible="true"
                        disableColumnReordering="true" summary="Timecard Entry"
                        displayRow="selected" expandAllEnabled="false"
                        contentDelivery="immediate" autoHeightRows="24"
                        columnStretching="column:column1"
                        binding="#{pageFlowScope.TimecardMB.tree_binding}">
            <f:facet name="nodeStamp">
              <af:column id="c1" headerText="Partner Details" width="500">
                <af:group id="g4">
                  <af:outputText value="#{node.FullName}" id="ot3"/>
                  <af:outputText value="#{node.TimeBuildingBlockId}" id="ot1"/>
                </af:group>
                <af:outputText value="#{node.DisplayValue}" id="ot4"
                                inlineStyle="color:Green; font-weight:bolder;"/>
               <af:outputText value="#{node.HoursType}" id="ot5"/>
                <f:facet name="filter"/>
              </af:column>
            </f:facet>
            <f:facet name="pathStamp">
              <af:outputText value="#{node}" id="ot2"/>
            </f:facet>
       <af:column FROM HERE.........>
    Any ideas greatly appreciated.

    Hi,
    Try using a switcher to distinguish all three levels of a tree. You can have three different facets, three different af:group 's.
    When you add in one level, it will not repeat in the other level.
    Please see the below snippet.
    <af:tree value="#{bindings.RefBusinessUnitView1.treeModel}" var="node"
    selectionListener="#{bindings.RefBusinessUnitView1.treeModel.makeCurrent}"
    rowSelection="single" id="t1">
    <f:facet name="nodeStamp">
    <af:group id="g1">
    <af:switcher id="s1"
    facetName="#{node.hierTypeBinding.viewDefName}">
    <f:facet name="model.RefBusinessUnitView">
    <af:group id="g2">       
    <af:outputText value="#{node.Code}" id="ot1"/>
    </af:group>
    </f:facet>
    <f:facet name="model.RefProductFamilyView">
    <af:group id="g3">
    <af:outputText value="#{node.ProductFamilyName}" id="outputText1"/>
    <af:outputText value="#{node.PName}" id="outputText2"/>
    </af:group>
    </f:facet>
    </af:switcher>
    </af:group>
    </f:facet>
    </af:tree>
    Nitish

  • Duplicate nodes in ADF Tree

    Duplicate Entries in ADF Tree
    Hi,
    Iam facing issue with ADF Tree representation. Getting content from DB. I've a table with self reference. Iam able to provide check box for each node. Following is the usecase of issue
    a->b->c->1.xml
    a->b1->c1->2.xml
    a->b2->c2->3.xml
    Issue 1: It's dispaling 3 a's at the first level. But it should display a once within that b,b1,b2 as sub levels.
    Even though it's showing 'a' three times, if we click on second & third 'a', first 'a' is effecting. Please suggest to filter duplicate entries while displaing. Following is code snippet of jspx.
    <af:tree value="#{bindings.ParentMDTopic1.treeModel}" var="node"
    selectionListener="#{bindings.ParentMDTopic1.treeModel.makeCurrent}"
    rowSelection="multiple" id="t1"
    partialTriggers="#{pageFlowScope.mBean.checkboxFlag.addValueChangeListener}">
    <f:facet name="nodeStamp">
    <af:group id="g1">
    <!-- <af:selectBooleanCheckbox
    label="Label 1" id="sbc2"
    valueChangeListener="#{pageFlowScope.mBean.checkBoxChange}"/> -->
    <af:selectBooleanCheckbox label="Label 1" id="sbc2"
    value="#{node.checkboxFlag}"
    autoSubmit="true"
    valueChangeListener="#{pageFlowScope.mBean.checkBoxChange}"/>
    <af:outputText value="#{node}" id="ot1"/>
    </af:group>
    </f:facet>
    </af:tree>
    Issue 2: Select/Deselect functionality. If we click on any node, the child nodes & sub levels till leaf nodes should be in select state. Similarly for deselect functionality.
    In order to acheve functionality, Created two transient attributes of boolean & string type. I tired to debug the ManagedBean, seems to be it's traversing to sublevels & changing the transient attribute. But while display it's not effeting. Please suggest a hint on this. It could be great if you provide some useful pointers to refer.
    Thanks in advance,
    Samba.

    Hi,
    I've provided Parent-Child relationship(Self-reference).
    Following is the table structure with primary/foreign key constraints.
    DELIVERY_VERSION_ID (PK)(FK)
    HIERARCHY_ID (PK)(FK)
    DOC_GUID (PK)
    PARENT (FK)
    CURRENTTITLE
    LANGUAGE
    Please let me know, if you have any comments on table structure.
    Following is the sample data in table
    DELIVERY_VERSION_ID     DOC_GUID Parent HIERARCHY_ID
    3               a     null     a_b_c
    3               b     a     a_b_c
    3               c     b     a_b_c
    3               1.xml     c     a_b_c
    3               a     null     a_b1_c1
    3               b1     a     a_b1_c1
    3               c1     b1     a_b1_c1
    3               2.xml     c1     a_b1_c1
    3               a     null     a_b2_c2
    3               b2     a     a_b2_c2
    3               c2     b2     a_b2_c2
    3               3.xml     c2     a_b2_c2
    Thanks,
    Samba.

  • "Open with" or "choose default program ..." Context menu broken.

    Hi,
    I have what appears to be a Context menu handler issue with my Windows 7 Home Premium - 64Bit.
    I just discovered that if I right-click a file ( .txt , .avi , etc), and attempt to use "Open With", I do get a previously used list of programs to select from in the drop down list that appears. However, if I then select the "choose default program ..." dialog box, to find an alternative program to use, I keep ending up with the error message:
    "This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the default programs control panel ."
    I tried re-booting without success. Looked at system restore and (STUPIDLY), I only had 2 very recent restore points to go back to, (I've since increased the restore storage allowance for the drives). Restore doesn't take me back to a usable state for this issue.
    The default file types doesn't seem to be the problem, as all my files do have default programs associated with them. I can even select one of the alternatives from the right-click pop-up option menu, and the file open appropriately. I can also open and use the Default Program application via Control Panel.
    The error message comes up as soon as I click on "choose default program...", from the bottom of the pop-up menu. It's as though that dialog isn't associated with the "Open with'' application anymore.
    When I can get to the "Open with" application through other means, ..... the "Always use...." is greyed out, so it becomes a permanent selection / rather than temporary. I know I can sort a work-around out to re-select a default program, in a round-about way, ... but I'd just love to sort whatever has gone wrong with the right click context menu.
    Whilst browsing around, I came accross this (but for Windows XP):
    Clicking the "Open With" or "Choose Program..." option always opens the file with Notepad?
    Note the second suggested error message. It's almost exactly what I'm getting in Win 7.
    XP: "This file does not have a program associated with it for performing this action. Create an association in the Folder Options control panel."
    Win 7 (my error message): "This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the default programs controll panel."
    Might I be on the right track, by any chance? Could this Registry key have become corrupted? Here's what I found...........
    HKEY_CLASSES_ROOT\Unknown\shell\openas\command
    Then double clicked default, and here is the value data for (Default):
    %SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,OpenAs_RunDLL %1
    If it's not this key, then I feel sure it's a Context menu handler that's become corrupted, for "Open with'' somewhere. I'm hoping someone might point me in the right direction. I'm reasonably confident in backing up / exporting and saving Registry keys - just not knowledgeable enough to know where to root around and know what should or shouldn't be there.
    Apologies if this ends up in the wrong forum.
    Any help much appreciated thanks.
    :O)

    I had the same issue and the problem was one missing registry key:
    HKEY_CLASSES_ROOT\Unknown\shell\opendlg\command
    opendlg instead of openas
    The default value is 
    %SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,OpenAs_RunDLL %1
    I exported the value from a pc that was working fine with the same system Windows 7 64 ultimate and this is the registry file that I exported from the pc witouth the problem  and imported in the pc with the problem to solve the problem:
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\Unknown\shell\opendlg\command]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
      00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
      6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,25,00,53,\
      00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,\
      79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,65,00,6c,00,6c,\
      00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,4f,00,70,00,65,00,6e,00,41,00,\
      73,00,5f,00,52,00,75,00,6e,00,44,00,4c,00,4c,00,20,00,25,00,31,00,00,00

  • ADF &CSS :overriding the default ADF:tree icons and CSSs

    Hi,
    I have major layout issue regarding ADF:tree, how can I override the default icons?
    I override the oracle CSS with my own, but when I did that, the tree images has changed, its now small hideous triangles, I copied some lines from the oracle CSS and it worked, but the small triangles still show inside the images, how can I remove those triangles, or can I write something in my CSS to override them?
    Thanks in prior,
    Ahmad Esbita

    Ahmad,
    According to bug 5682799, you cannot work around this in the current JDeveloper release. It is fixed in 10.1.3.3 (due out "soon," perhaps as early as 15th June, according to another post on this forum)
    John

  • 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

  • ADF: Tree Refresh after Expanding a node. Please Frank have a look!

    About this post:
    Re: ADF: Tree Refresh after Expanding a node
    Frank answered that he doesn't notice that behavior. I found out that this happens if an appication uses a custom skin.
    In SRDemoSampleADFBC, SRManage.jspx (Management from menu), if you make the explorer window small enough not to cover the whole tree, you can notice this (the page jumps to the top).
    Now if you change in adf-faces-config.xml the "skin-family" tag to "oracle", you will see that the tree component has changed (it has no triangle icons why this happens) and the page doesn't refresh.
    Minas

    It seems that there's more to the tree expansion icon than the skin definition. We're using the minimal skin and ADF puts out a special character to represent the disclosure symbol (which by the way, renders differently on IE6, than IE7, than Safari or Firefox on Mac). However, switching to the Oracle skin, the disclosure symbol comes out as a full-on image (triangle including the +). We have found this frustrating because the triangles seem not sufficiently suggestive to our users - but switching to the Oracle skin has other issues with white-on-white text.
    But in any case, the tree refresh after node expansion is another annoyance as I described in the other thread linked here (including URL to see problem in action).
    Cheers, Mark

Maybe you are looking for