Af:tree with command link

hi experts,
am using jdeveloper 11g version 11.1.1.5.0 - adfbc components - oracle db 10g.
am trying some examples regards,
af:tree with commandLink,
here what i did:
i achieved the af:tree with the help of some association between two tables and then i exposed in ui,
you can see in this pics1 :
http://www.4shared.com/photo/kGE2M1yl/pics1.html
and then af:tree output can also seen in pics2:
http://www.4shared.com/photo/GQTB9icb/pic2.html
this is the code for af:tree
<af:tree value="#{bindings.ApplBusFunSuiteView1.treeModel}"
                     var="node"
                     selectionListener="#{bindings.ApplBusFunSuiteView1.treeModel.makeCurrent}"
                     rowSelection="single" binding="#{backing_untitled1.t1}"
                     id="t1">
              <f:facet name="nodeStamp">
                 <af:outputText value="#{node}"
                                 binding="#{backing_untitled1.ot1}" id="ot1"/>
              </f:facet>
            </af:tree>ok thing which i did all are ok.
but my need is :
you may see in pics2.
http://www.4shared.com/photo/GQTB9icb/pic2.html
i make red mark on the on a child.
here am going to explain my need
in the picture you can see CRM as parent
MKG as first child
MKG3200 as last child.
command link should be appeared.
when i click that it will navigate to the corresponding page.
for eg: if i click MKG3200 navigate to the MKG3200 page.
how can i do this.? i need some guidance.
sorry for my poor english.
Edited by: Erp on Dec 1, 2011 4:34 AM

hi am waiting for john
retrieves the page IDhere the author get the node id.
in my task n get the page id and navigate to it. as you said.
http://andrejusb.blogspot.com/search/label/Tree
thanks to andrejus and you(john)
package view.backing;
import java.util.Iterator;
import java.util.List;
import javax.el.ELContext;
import javax.el.ExpressionFactory;
import javax.el.MethodExpression;
import javax.faces.application.Application;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import oracle.adf.controller.TaskFlowId;
import oracle.adf.view.rich.component.rich.RichDocument;
import oracle.adf.view.rich.component.rich.RichForm;
import oracle.adf.view.rich.component.rich.data.RichTree;
import oracle.adf.view.rich.component.rich.fragment.RichRegion;
import oracle.adf.view.rich.component.rich.input.RichInputText;
import oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout;
import oracle.adf.view.rich.component.rich.layout.RichPanelSplitter;
import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
import oracle.adf.view.rich.component.rich.nav.RichCommandLink;
import oracle.adf.view.rich.component.rich.output.RichMessages;
import oracle.jbo.Row;
import oracle.jbo.uicli.binding.JUCtrlHierBinding;
import oracle.jbo.uicli.binding.JUCtrlHierNodeBinding;
import org.apache.myfaces.trinidad.component.UIXGroup;
import org.apache.myfaces.trinidad.event.AttributeChangeEvent;
import org.apache.myfaces.trinidad.event.SelectionEvent;
import org.apache.myfaces.trinidad.model.CollectionModel;
import org.apache.myfaces.trinidad.model.RowKeySet;
import org.apache.myfaces.trinidad.model.TreeModel;
public class Main1 {
    private RichForm f1;
    private RichDocument d1;
    private RichTree t1;
    private RichMessages m1;
    private RichCommandLink ot1;
    private String taskFlowId = "/WEB-INF/dummy-task-flow-definition.xml#dummy-task-flow-definition";
    private RichRegion r1;
    private UIXGroup g1;
    private RichCommandLink cl1;
    private RichPanelSplitter ps1;
    private RichPanelGroupLayout pgl1;
    private RichInputText it1;
    private RichCommandButton cb1;
    private String i1;
    public void setF1(RichForm f1) {
        this.f1 = f1;
    public RichForm getF1() {
        return f1;
    public void setD1(RichDocument d1) {
        this.d1 = d1;
    public RichDocument getD1() {
        return d1;
    public void setT1(RichTree t1) {
        this.t1 = t1;
    public RichTree getT1() {
        return t1;
    public void setM1(RichMessages m1) {
        this.m1 = m1;
    public RichMessages getM1() {
        return m1;
    public void setOt1(RichCommandLink ot1) {
        this.ot1 = ot1;
    public RichCommandLink getOt1() {
        return ot1;
    public TaskFlowId getDynamicTaskFlowId() {
        return TaskFlowId.parse(taskFlowId);
    public void setR1(RichRegion r1) {
        this.r1 = r1;
    public RichRegion getR1() {
        return r1;
    public String dynaminflow()
         taskFlowId = "/WEB-INF/supplier-task-flow-definition.xml#supplier-task-flow-definition";
          return null;
    public String mainflow1()
            taskFlowId = "/WEB-INF/dummy-task-flow-definition.xml#dummy-task-flow-definition";
          return null;
    public void setG1(UIXGroup g1) {
        this.g1 = g1;
    public UIXGroup getG1() {
        return g1;
    public void setCl1(RichCommandLink cl1) {
        this.cl1 = cl1;
    public RichCommandLink getCl1() {
        return cl1;
    public void setPs1(RichPanelSplitter ps1) {
        this.ps1 = ps1;
    public RichPanelSplitter getPs1() {
        return ps1;
    public void setPgl1(RichPanelGroupLayout pgl1) {
        this.pgl1 = pgl1;
    public RichPanelGroupLayout getPgl1() {
        return pgl1;
    public void setIt1(RichInputText it1) {
        this.it1 = it1;
    public RichInputText getIt1() {
        return it1;
    public void setCb1(RichCommandButton cb1) {
        this.cb1 = cb1;
    public RichCommandButton getCb1() {
        return cb1;
    public void setI1(String i1) {
        this.i1 = i1;
    public String getI1() {
        return i1;
    public String cb1_action() {
        // Add event code here...
      if(this.getI1().equalsIgnoreCase("SUP1000")  ) {
                     dynaminflow();
      else  if(this.getI1().equalsIgnoreCase("MAIN1000")  ) {
                           mainflow1();
      else{
                FacesContext ctx = FacesContext.getCurrentInstance();
                FacesMessage fm =
                    new FacesMessage(FacesMessage.SEVERITY_ERROR, "Page Not found",
                ctx.addMessage(null, fm);
                return null;
        return null;
    public void onTreeSelect(SelectionEvent selectionEvent) {
     /*   //original selection listener set by ADF
        //#{bindings.allDepartments.treeModel.makeCurrent}
        String adfSelectionListener = "#{bindings.ApplBusFunSuiteView2.treeModel.makeCurrent}";
        //make sure the default selection listener functionality is preserved.
        //you don't need to do this for multi select trees as the ADF binding
        //only supports single current row selection
        /* START PRESERVER DEFAULT ADF SELECT BEHAVIOR */
       /* FacesContext fctx = FacesContext.getCurrentInstance();
        Application application = fctx.getApplication();
        ELContext elCtx = fctx.getELContext();
        ExpressionFactory exprFactory = application.getExpressionFactory();
        MethodExpression me = null;
        me =  exprFactory.createMethodExpression(elCtx, adfSelectionListener, Object.class, new Class[] { SelectionEvent.class });
        me.invoke(elCtx, new Object[] { selectionEvent });
        /* END PRESERVER DEFAULT ADF SELECT BEHAVIOR */
      //  RichTree tree = (RichTree)selectionEvent.getSource();
      //  TreeModel model = (TreeModel)tree.getValue();
        //get selected nodes
     //   RowKeySet rowKeySet = selectionEvent.getAddedSet();
     //   Iterator rksIterator = rowKeySet.iterator(); */
        //for single select configurations, thi sonly is called once
     /*   while (rksIterator.hasNext())
            List key = (List)rksIterator.next();
            JUCtrlHierBinding treeBinding = null;
            CollectionModel collectionModel = (CollectionModel)tree.getValue();
            treeBinding = (JUCtrlHierBinding)collectionModel.getWrappedData();
            JUCtrlHierNodeBinding nodeBinding = treeBinding.findNodeByKeyPath(key);
            Row rw = nodeBinding.getRow();
            System.out.println(""+nodeBinding.getRow()); */
            //print first row attribute. Note that in a tree you have to determine the node
            //type if you want to select node attributes by name and not index           
        /*    String rowType = rw.getStructureDef().getDefName();
            System.out.println(""+rw.getStructureDef().getDefName());
            if(rowType.equalsIgnoreCase("SuplrDocHdView")){
                System.out.println("This row is a department: " + rw.getAttribute("SuphdBu"));
            else if(rowType.equalsIgnoreCase("EmployeesView")){
             System.out.println("This row is an employee: " + rw.getAttribute("EmployeeId"));
            else{
                System.out.println("Huh ????");
            // ... do more usefuls stuff here
        RowKeySet selection = this.getT1().getSelectedRowKeys();
        if (selection != null && selection.getSize() > 0) {
            for (Object facesTreeRowKey : selection) {
                this.getT1().setRowKey(facesTreeRowKey);
                JUCtrlHierNodeBinding root = (JUCtrlHierNodeBinding) this.getT1().getRowData();
                JUCtrlHierNodeBinding node = this.getFirstChild(root);
                while (node != null)
                    System.out.println(node.getRow().getAttribute(0));
                    if(node.getRow().getAttribute(0).toString().equalsIgnoreCase("APM2010") )
                        dynaminflow();
                    else  if(node.getRow().getAttribute(0).toString().equalsIgnoreCase("APM2020")  ) {
                                         mainflow1();
                    //node.getRow().remove();
                    if ( node.getChildren() != null) {    
                        node = this.getFirstChild(node);
                    } else {
                        while (this.getNextSibling(node) == null && node != root)
                            node=node.getParent();
                        if(node != root) {
                            node = this.getNextSibling(node);
                        } else {
                            node = null;
                System.out.println(root.getRow().getAttribute(0));
                if(root.getRow().getAttribute(0).toString().equalsIgnoreCase("APM2010")  )
                    dynaminflow();
                else  if(root.getRow().getAttribute(0).toString().equalsIgnoreCase("APM2020")  ) {
                                     mainflow1();
                //root.getRow().remove();
    private JUCtrlHierNodeBinding getFirstChild(JUCtrlHierNodeBinding node) {
        if (node.getChildren() != null) {
            return (JUCtrlHierNodeBinding)node.getChildren().get(0);
        return null;
    private JUCtrlHierNodeBinding getNextSibling(JUCtrlHierNodeBinding node) {
        JUCtrlHierNodeBinding parent = node.getParent();
        int index = parent.getChildren().indexOf(node);
        index = ++index;
        if(index < parent.getChildren().size()) {
            return (JUCtrlHierNodeBinding)parent.getChildren().get(index);
        return null;       
}i get my output. what i need.
you must check whether am going correct?
please suggest me.
sorry : pulling this thread to up.

Similar Messages

  • ADF tree with command link

    Hello,
    I have a menu build with a tree and a region. When I click a link from the tree the region populate a page with another dinamic tree based on a session variable that refresh each time that i click a link from the first tree. After click the link I have a flow that has an executewithparams method and the page that will show the second tree.
    My problem is that the second tree doesn't refresh its branches at my first click on the link but on the second yes and I receive :
    <NavigationPaneRenderer><_renderContent> Warning: There are no items to render for this level
    <FormRenderer><setupEncodingContext> Multiple forms detected on viewId: /pages/index.jspx. Rich client currently has some limitations in dealing with multiple forms.
    I have set the autorefresh for the iterator but I haven't success.
    Can anyone help me?
    Thank you.

    Hi Frank,
    It's true that my execute with params method accessthe session scope attribute directly but in my page fragmet i haven't af:form
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <!--oracle-jdev-comment:preferred-managed-bean-name:backing_doc-->
    <af:panelGroupLayout id="pgl2">
    <c:set var="viewcontrollerBundle"
    value="#{adfBundle['.main.view.ViewControllerBundleMain']}"/>
    <af:panelGroupLayout id="pgl1" layout="vertical">
    <af:panelBox text="#{sessionScope.OrgMeniuId eq 920 ? viewcontrollerBundle.1 : viewcontrollerBundle.2}"
    id="pb1" styleClass="AFStretchWidth"
    binding="#{backing_doc.pb1}">
    <f:facet name="toolbar"/>
    <af:tree value="#{bindings.DocVO2.treeModel}" var="node"
    selectionListener="#{bindings.DocVO2.treeModel.makeCurrent}"
    rowSelection="single" id="t1" binding="#{backing_doc.t1}"
    fetchSize="-1" styleClass="AFStretchWidth"
    inlineStyle="font-size:small;">
    <f:facet name="nodeStamp">
    <af:group id="g1" binding="#{backing_doc.g1}">
    <af:commandLink id="cl1"
    text="#{node.Desc}#{node.DescOp}"
    action="#{backing_doc.ActionIdLink}"
    actionListener="#{backing_doc.discloseItem}"
    binding="#{backing_doc.cl1}" immediate="true"
    partialTriggers="::pb1">
    <af:setActionListener from="#{node.IdOp != null ? node.IdOp : node.Id}"
    to="#{sessionScope.backing_doc.actionId}"/>
    <f:attribute name="node" value="#{node}"/>
    <af:setActionListener from="#{node.IdOp != null ? node.DescOp : node.Desc}"
    to="#{sessionScope.OrgDocDesc}"/>
    <af:clientListener method="onDownload" type="action"/>
    </af:commandLink>
    <af:resource type="javascript">
    function onDownload(evt){ evt.noResponseExpected(); }
    </af:resource>
    </af:group>
    </f:facet>
    </af:tree>
    </af:panelBox>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    </jsp:root>

  • I want to run the h:outputText in a loop and with command link

    I have a managed bean property of type Collection (ArrayList). These collection elements should be displayed a series of hyperlinks separated by commas.
    can i refer the collection element with an index from h:outputText tag
    Thanks in advance.

    Can I achive this by using JSTL core tags and outputText. Like using c:foreach and then render the command link.
    how can we render outputText with value as a collection.
    Thanks.

  • Pagination issue with Command Link

    Hi
    I have a HtmlDatatable in which I am I am using pagination. Pagination is working fine the issue is one colum has been used with commnadlink.
    Whne I use the pagination(Say when I click next or last) i am not getting the hyper link in that column.
    Any idea?
    Thanks in advance
    Best Regards
    Sathish

    Hi,
    hard to say. Looks as if the browser blocks the command link when the note window launches as modal dialogs would do.  There are two reasons for this IMO
    1. The hover code also executes when you want to click the link, which means that you don#t get to executing your action. Work around is to detect whether the note window is open and if don't try and re-launch the note window
    2. If you use showPopupBehavior to launch the note window, then this actually kills all action listener methods (which then may be a second reason). So my suggestion is to try and launch the hover popup from JavaScript using an af:clientListener
       Sample code: Sameh Nassar: JavaScript With ADF Faces Samples
        the client listener should listen for the mouse over event.
    If none of this help and you have access to customer support, I suggest to create a test case and file a service request. My current guess though is that the reason for the behavior is in in your code (browsers tend to work differently in the way they execute JS events too).
    Frank

  • Issue with command link in chrome/mozilla

    Hi All,
    I have designed a simple jspx page having a command link component.
    This command link component is tied up with two sets of operations associated with it -
    > Displays a note window using hover action.
    > Launched a popup on clicking the link components.
    While performing some test runs on different browsers, I noticed different behavioural pattern -
    > Internet Explorer - Placing the cursor on link displays the note window and the command link remains enabled for the user to click on it and launch the popup.
    > Mozilla/Chrome - Placing the cursor on the link displays the note window, however, on the clicking the link, the popup doesn't launch. The user has to move and place the cursor again on the link to perform the desired event.
    Request your guidance on troubleshooting the problem.
    I am using JDeveloper version 11.1.1.7.
    Best Regards,
    Ankit Gupta

    Hi,
    hard to say. Looks as if the browser blocks the command link when the note window launches as modal dialogs would do.  There are two reasons for this IMO
    1. The hover code also executes when you want to click the link, which means that you don#t get to executing your action. Work around is to detect whether the note window is open and if don't try and re-launch the note window
    2. If you use showPopupBehavior to launch the note window, then this actually kills all action listener methods (which then may be a second reason). So my suggestion is to try and launch the hover popup from JavaScript using an af:clientListener
       Sample code: Sameh Nassar: JavaScript With ADF Faces Samples
        the client listener should listen for the mouse over event.
    If none of this help and you have access to customer support, I suggest to create a test case and file a service request. My current guess though is that the reason for the behavior is in in your code (browsers tend to work differently in the way they execute JS events too).
    Frank

  • How to create an lov with command link

    hi all
    i want to create an lov such that each of the values in the list have a command link. when i click on a particular value, that value should be removed from the lov list and displayed on my page.
    like for example, i want to send a mail to many ppl at the same time. from my address book, i click on the name of the person i want to send the mail and that name is added to my "Send To" list.
    Can anyone help me do this? i'm using jdev10g adf.
    thanks.
    preeti

    Hi,
    you should use the shuttle control in ADF Faces for this
    Frank

  • Activating t:inputText with command link

    I have a situation where I will have an outputText for a field say a name, I have a command link name edit which enables the name field in editable mode i.e an inputText, can some one tell me how can I do this? I guess I can use render, I am not sure, any ideas and suggestions?
    <htm:tr styleClass="h2">
              <htm:td>
                   <h:outputText value="Organization Name Information:" />
              </htm:td>
              <htm:td>
                   <t:commandLink id="EditOrgInformation"
                        forceId="true"
                        value="EDIT"
                         action=""
                         onclick="if(submitFlag){return false;}else{submitFlag=true;return true;}" />
              </htm:td>
         </htm:tr>
         <htm:tr styleClass="oddRow">
              <htm:td>
                   <h:outputText value="Name:" />
              </htm:td>
              <htm:td>
                   <h:outputText value="#{lo.name }" />
              </htm:td>
         </htm:tr>

    If you want to do it synshronously, indeed use the rendered attribute. Use its positive outcome in inputText and its negative outcome in outputText. If you want to do it asynchronously, then use Javascript+DHTML or an Ajaxical JSF component library.

  • Command Link in ADF table is not working/ PPR event not getting fired

    Hi All,
    I am having ADF Table, in that one column is with command link if click on command link, it is not navigating to corresponding page or method of a bean. If i give same command link out of the table it working fine, this issue i am facing is in IE9.
    if i use IE in compatibility mode the links works fine, even in IE8 version also.
    Browser: IE 9
    Jdev version: 11.1.1.5.0
    I tried all possible things, but nothing workout for me.
    showPopupBehavior not working in IE9 for af:table buttons (jdev11.1.1.5.0)
    Partial page rendering not working in ie9
    Command Link in ADF table is not working
    Thnks

    Hi,
    please file a bug if you have a customer support contract and provide a testcase
    Frank

  • Command link in adf table is not working..

    Hi All,
    I am having ADF Table, in that one column is with command link and,if click on commnad link it is not going to coorsponding action or actionListener methods of bean. If i give same command link out side of the table it working fine.But i have to pass some perameters on click of button.
    I am getting same problem in many places , if i delete the page and page-def files again if i create some times it is working but some times not working. Is there any specific reason for this.Following is the code snippet...
    <af:column sortProperty="GlobalDealId" sortable="false"
    headerText="#{bindings.DsaDealsResultsVO1.hints.GlobalDealId.label}"
    id="c8">
    <af:commandLink text="#{row.GlobalDealId}" id="cl1" action="#{pageFlowScope.editProfileCompleteness.sample}" immediate="true" partialSubmit="true">
    <af:setActionListener from='"#{row.GlobalDealId}"'
    to='"#{pageFlowScope.globalDealId}"'/>
    <af:setActionListener from='"#{row.CustName}"'
    to='"#{pageFlowScope.custName}"'/>
    <af:setActionListener from='"#{row.IsSaDeal}"'
    to='"#{pageFlowScope.isSaDeal}"'/>
    </af:commandLink>
    </af:column>
    Even i tried with out immediate="true" partialSubmit="true" also.
    And i set ChangeventPolicy = ppr for Iterator in page defnation file.
    Awaiting for ur reply.

    Hi,
    the real problem of the original poster seems to be <af:commandLink text="#{row.GlobalDealId}" id="cl1" action="createMDM" immediate="true" partialSubmit="true"> having immediate set to true in which case the request goes from restore view to render response. You usually use immediate=true on a command item to cancel an action (bypassing all the other JSF lifecycle steps).
    Peter551059,
    you don't give us much information about your case. So if the problem is IE9 and you verified IE9 is supported for the version of JDeveloper you use, then - in case you have a support contract - my best advise is to file a service request and have support looking at it just in case you hit a defect that should be filed as a bug
    Frank

  • I made command Link of tree with ADF, every node must not have link

    Hi
    How can I do not link on the leaf of the tree, I have link every leaf, but I dont want to get on some leaf of tree.
    How can I do to get hierarchy link that it have not link on under hierarchy(node) on tree.

    could be deleted

  • Command link used as tree node

    I'm using an ADF Tree where one of my nodes is a command link. I've given the link an id="myLink".
    When I run the page, the tree shows up fine with just one node.
    But the View Page source does not contain any entry that says id="mylink".
    Where could be the problem?
    Thanks
    RV

    Hi,
    I assume you use ADF Faces RC, because otherwise you would have posted this to the JDeveloper forum. If you add a command link t a node, then this command link is used for any node that is rendered for the tree (unless you implemented it in a way that only has exactly one command link component showing in the whole tree - which I don't think you have).
    In JSF you cannot have more than one component with a specific ID, which means that assigning an ID to a command link in a tree doesn't make much sense.
    In ADF Faces RC, trees are active components, which means they are created in the DOM and not HTML. So using a DOM inspector like Firebug you should see your tree and link components
    <a id="j_id___jsp_tag_ctru4:7:myLink" class="xdk" href="#" onclick="return false;">commandLink 1</a>
    Frank

  • COMMAND LINKS IN TREE TABLE DOESN'T ALLOW CONTEXT MENU TO SHOW UP

    I have a tree table with some columns, the "nodeStamp" facet has a column
    which has the tree with an image and a command link. when i try bringing up
    the context menu from anywhere on the table including the image the context
    menu comes up fine. But when i try bringing up the context menu from the
    command link it doesn't show/come up. Also it doesn't throw up any exception.
    I have my code used as shown below.
    Can anyone please let me know what could be the problem?
    <af:treeTable var="step" id="lpexec34" rowBandingInterval="0"
    columnStretching="blank" width="100%"
    value="#{pageFlowScope.loadPlanExecutionDetailBean.relationships.loadPlanSteps
    binding="#{pageFlowScope.loadPlanExecutionDetailBean.richTreeTable}"
    initiallyExpanded="true">
    <f:facet name="contextMenu">
    <af:popup id="lpeStepsPopup" contentDelivery="lazyUncached">
    <af:setPropertyListener
    from="#{pageFlowScope.loadPlanExecutionDetailBean.relationships.loadPlanSteps.
    rowData}"
    to="#{rowStepData}"
    type="popupFetch"/>
    <af:menu id="lpeStepsContextMenu">
    <af:commandMenuItem text="#{bundle.mark_as_complete}"
    id="cmei0b"
    actionListener="#{pageFlowScope.loadPlanExecutionDetailBean.actionPerformed}"
    rendered="#{rowStepData.markAsCompleteRendered}">
    <f:attribute name="lpiStepLog"
    value="#{step.loadPlanInstanceStepLog}"/>
    <f:attribute name="loadPlanInstance"
    value="#{step.loadPlanInstance}"/>
    </af:commandMenuItem>
    </af:menu>
    </af:popup>
    </f:facet>
    <f:facet name="nodeStamp">
    <af:column headerText="#{bundle.lp_steps_header_stepsHierarchy}"
    id="loadPlanexecDetail_hierarchy">
    <af:panelGroupLayout id="pledetail_pg10">
    <af:image source="/resources/images/loadplan/#{step.elementType}.png"
    inlineStyle="margin-right:3px; vertical-align:middle; height:16px;
    width:16px;"/>
    <af:commandLink id="lpcl0_lpe" text="#{step.name}"
    action="#{pageFlowScope.loadPlanExecutionDetailBean.relationships.stepClicked}
    ">
    <af:setPropertyListener from="#{step}"
    to="#{pageFlowScope.lpElement}" type="action"/>
    </af:commandLink>
    </af:panelGroupLayout>
    </af:column>
    </f:facet>

    Hi,
    try setting partialSubmit=true on the command link. Just in case it fires the action method before the context menu displays
    Frank

  • Hide/Show a Panel group or Panel Box with a command link

    I need to show and hide a panel group/box that has a lot of components inside ..with a command link ...I need to do this with partial submit ....please advise.
    <af:commandLink >
    hide the panel box with all the comps inside it ..change commandlink text ....
    use the same command link to show the panel box and change the command link
    text back
    </af:commandLink>
    <af:panelGroup layout="vertical">
    <af:panelBox>
         <af:panelGroup>
    ALOT of components .......
         </af:panelGroup>
    </af:panelBox>
    </af:panelGroup>
    I tried with partial trigger ..I tried everything i know ..it did not work .....it only worked I do a I full submit and setting some processScope(session) variables ..
    Thanks.

    Hi,
    - have a managed bean in session scope
    - define a boolean variable that is set to true
    - expose the variable through a public method
    - use EL on the panelBox rendered property to link to this boolean method
    - define an action listener on the command link and set the autosubmit property to true
    - use the action listener to set the boolean value
    - define a value for the ID property of the command link
    - set the ID vaule to the PartialTrigger property of the panelGroup component
    Frank

  • ADF Tree Command Link + Content Menu

    Hi,
    I am trying to build a tree, in which the nodes should have a command link and a context menu enabled. Using JDeveloper 11.1.1.6.0, however the context menu is not showing up, if the command link is enable for a particular node. If the command link option is not set for a node, then the menu option does shows up. Below is what my code looks like. Has anyone faced a similar issue/know of a solution?
    My Code is something like -
    *<f:facet name="contextMenu">*
    <af:popup id="p1" contentDelivery="lazyUncached">
    <af:menu text="Location Menu" id="m31"
    visible="#{pageFlowScope.TreeData.showLocationMenu}" contentDelivery="immediate">
    <af:commandMenuItem text="Add new Department"
    id="cmi2" partialSubmit="true" immediate="true"
    actionListener="#{pageFlowScope.TreeData.createDepartment}">
    <af:setPropertyListener from="#{node.viewType}"
    to="#{pageFlowScope.formView}"
    type="action"/>
    <f:attribute name="node" value="#{node}"/>
    </af:commandMenuItem>
    </af:menu>
    </facet>     
    <f:facet name="nodeStamp">
    *<af:commandLink text="#{node.key} #{node.text}"*
    *action="#{pageFlowScope.DynamicRegionBean.getDep}" id="cl1" partialSubmit="true" immediate="true"/>*
    *</f:facet>*
    Thanks
    Sachin

    Hi Timo,
    Yeah... adding an output text, shows the context menu on the text, however I was looking for something like one 'text' rendered and it doing the option of both.
    Something like what we can do for any hyper link, if click on it, it opens that link or else if I right click on the link, it gives me options like - Open in new Tab/Window etc.
    Any suggestions??
    Thanks
    Sachin

  • Programatically adding command links in ADF Tree?

    Hi,
    I am using Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660. Can anyone please provide me some sample code for programatically adding dynamically generated ADF command links in the nodes of ADF Tree(Tree nodes in it are created using View Object - Drag & drop of data control). Now how can i add links in the nodes generated.
    Thanks,
    Vik

    Hi,
    try setting partialSubmit=true on the command link. Just in case it fires the action method before the context menu displays
    Frank

Maybe you are looking for

  • Calling EJB 3.0 from ALBPM

    Hi, I tried calling EJB 2.1 from ALBPM and it worked. But I was nto able to call EJB 3.0. Is calling EJB 3.0 supported from ALBPM 6.0.2? If yes, how to call a business method in EJB 3.0?

  • BP Transaction: change locator search

    Hello everyone! i need to add a new Search Functionality in the Find By drop-down in the Locator present on BP Transaction. I am able to add new fields and search BP based on those values. But i am not able to capture the Function Code of any Push-Bu

  • Photoshop CS6 file permissions issue with file created with Photoshop CC

    In our studio we have several capture stations and work stations all connected to one file server. An issue occurs when a user of CC creates a file and saves it to the server and a user of CS6 opens the file. The CS6 user cannot save the changes he j

  • FRM-40400: Transaction complete: 1 records applied and saved

    Dear All, Hope all of you are doing well, Pls go through my problem... here is an application developed based on Oracle Forms & Reports 6i. I wrote a code, like for some specific Users, various permissions. Ex: User A (Payroll Person), User B (HR) fo

  • How do I make the windows full screen?

    I would like my windows in Safari and other programs to run full screen - I mean I paid for 24" not 19" lol. I tried the green button it didn't work. I just unboxed it a couple of hours though so obviously I'm very new to this.