JDev 11g ADF Tree question on programmatically expand and select node

I have two questions:
1. I'm trying to automatically expand the first level tree nodes upon display of the tree. I tried to initialize a RowKeySetImpl object, and added ArrayList of first level nodes, and used setDisclosedRowKeys method. The tree nodes are not rendered properly. If I take the following code out, then the tree content is rendered properly. Here is my code. I have three nodes that I want to expand.
ArrayList node1 = new ArrayList();
node1.add(new Integer(0));
ArrayList node2 = new ArrayList();
node2.add(new Integer(1));
ArrayList node3 = new ArrayList();
node3.add(new Integer(2));
RowKeySetImpl expand = new RowKeySetImpl();
expand.add(node1);
expand.add(node2);
expand.add(node3);
this.mainTree.setDisclosedRowKeys(expand);
2. I have a Panel Splitter, on the first facet, it contains a tree, on the second facet it will be either 'task list', or 'edit task'. When user selects a task in the 'task list', I would like to display 'edit task', while highlight the selected 'task' node on the tree.
In respond to the ActionListener of the command link (each command link corresponds to task):
1. How do I determine the properly node in the tree?
2. I constructed a RowKeySetImpl object and called setSelectedRowKeys. But I get messagebox saying "To display the webpage again, Internet Explorer needs to resend the information you've previously submitted." If I clicked Retry button, the message box just gets displayed again. If I cancel, the node I hardcoded does get selected properly.
Please help me!
Thanks,

I believe this has already been fixed in our main code branch. I will enter a boxer bug and make sure that the fix gets backported to boxer so that it is available in the next boxer patch. If I remember correctly, the issue had to do with trees with a large display area (with default fetchSize of 25). The issue is that the tree has to make multiple round trips to the server in order fill the visible area (view port) on the page.
Do either of the following workarounds work:
1) Set a fetchSize attribute on the af:tree tag larger than 25 (<af:tree fetchSize="75">). You may want to increase the rangeSize in your pageDef file as well so that the model rangeSize matches the view fetchSize.
2) Shrink the size of the tree on the page so that it does not have to make multiple round trips to the server to fill it's view port.

Similar Messages

  • TreeView - Expand only selected node and collapse others

    Hi
    How I can expand only selected node and collapse other nodes that was expanded earlier?!

    Ghostenigma,
    switch Option Strict On. I've tried to analyze the code but it's not usable due to type ignorance.
    BTW, Goto is not required here. ELSEif means it's only executed if the previous expressions are not true.
    Armin
    Ignore other code and give an reply for what I've asked else you are not obligated to post a reply at all!
     I am not sure if you took the "type ignorance" part wrong but, Armin was only trying to give you helpful information which i would give too.  Option Strict is a GOOD thing to use and the GoTo statements are not needed inside your ElseIf
    statements.  As far as that goes, i would not recommend using GoTo in any modern .Net programming.
     Anyways, the problem is with the way you are Adding and Removing all the child nodes every time the nodes are DoubleClicked and when they are Collapsing.  I just simulated your code to add the sub nodes when a main node is double clicked. 
    You can just use the NodeMouseDoubleClick event instead of the TreeView`s DoubleClick event to make it a little easier on yourself too.
     This corrected the problem for me.
    Public Class Form1
    Private r As New Random ' this random class is only for my simulation of adding sub nodes (not needed)
    Private expanded As TreeNode
    Private Sub TreeView1_BeforeCollapse(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewCancelEventArgs) Handles TreeView1.BeforeCollapse
    e.Node.Nodes.Clear()
    End Sub
    Private Sub TreeView1_BeforeExpand(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewCancelEventArgs) Handles TreeView1.BeforeExpand
    Dim pn As TreeNode = e.Node
    While pn.Parent IsNot Nothing
    pn = pn.Parent
    End While
    If expanded IsNot Nothing And expanded IsNot pn Then expanded.Collapse()
    expanded = pn
    End Sub
    Private Sub TreeView1_NodeMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseDoubleClick
    'Added this part to collapse the prior expanded node and set the (expanded) node to the new one
    If expanded IsNot Nothing And expanded IsNot e.Node Then
    expanded.Collapse()
    Dim pn As TreeNode = e.Node
    While pn.Parent IsNot Nothing
    pn = pn.Parent
    End While
    expanded = pn
    End If
    'This just simulates your code to add the new sub nodes to the main node that was double clicked
    'you need to put your code here instead of this.
    Dim str() As String = {"one.mp3", "Two.mp4", "Three.mvk"}
    Dim s As String = str(r.Next(0, 3))
    e.Node.Nodes.Add(s, s)
    e.Node.Expand()
    End Sub
    End Class
     PS - I notice you are adding more and more Images to your ImageList every time you double click on a node.  If you just add the Images to it once when the app is loading then you can just use the Image Key to set the correct Image to the newly
    added node.
    If you say it can`t be done then i`ll try it

  • Expand and Collpase nodes in ADF Pivot table

    Hi,
    I am looking for a code to Expand and Collapse all drilldown programmatically in adf pivot table.
    I have only one level of drill down that display sub total.

    I have the same doubt. I need expand and collapse all nodes in ADF Pivot table. anybody Here?

  • Forms Builder-hierarchical tree(expanding and collapsing nodes)

    hi friends,
    can anyone help me with populating my hierarchical tree form by using codes for collapsing and expanding?
    for instance when_button_pressed:
    tree_control.expand_all(tree_control.v_item_name); //this is for expanding all the nodes in the tree structure
    well, i have an sql statement in my record group which in turn defines the structure of the hierarchical tree.
    Is it possible to just use the codes 'tree_control.expand_all(tree_control.v_item_name);' like that in the when-button-pressed trigger?
    Thanks for any help :)

    Hi
    can anyone help me with populating my hierarchical tree form by using codes for collapsing and expanding?
    Pls have a look here ....
    Hope this helps...
    Regards,
    Amatu Allah.

  • JTree and selected node question

    Hello
    Is it possible to convert the selected node to an int?
    I guess I'm looking for something llike this.
    int nodeNumber = node.getSelectedIndex();
    There is nothing like that in the API, and it would help greatly if I could find a way do this.
    Thanks
    Have a good holiday
    Jim

    From the API for JTree
    public int getMinSelectionRow()
    Gets the first selected row.
    Returns:
    an integer designating the first selected row, where 0 is the first row in the display
    But I think this is based on how many rows are displayed at the present time and might change if the tree is opened above it.

  • JDeveloper 11g - ADF BC Question (link b/w ViewObjects and EntityObjects)

    I am very inclined to having more knoweledge about ADF BC and how View Objects link and interact with Entity Objects.
    My question is this:
    What happens when I insert a row into the view object, then I requery the VO without saving or anything?
    When I re-query and insert another row, I believe the EntityObject is retaining the first row that I entered. I tried clearing the EntityCache but it complained that it cannot clear modified rows.
    Is there any other way to remove the first row I inserted ?
    Mark

    Hi,
    on the Row itself, type rowHandle.refresh(Row. ...) to see the refresh options that would also remove newly added rows. Note that different refresh options can be or'ed together
    Frank

  • JDev 11g ADF - WARNING: Transient state added to StateManager.

    Can anyone help me to find why I am getting next warning message when running the ADF application which shows the graph from the view object VRequestRepairForOneWeekRO.
    View is created as Read-only access through SQL query. Query has many UNIONS and GROUP BY.... Graph is inside task flow on the page region. Everything runs OK.
    14-Jan-2009 5:19:26 PM oracle.adf.share.http.HttpSessionStateManagerImpl putState
    WARNING: Transient state added to StateManager. State may not be serialized. State id: data.com_pk_view_requestRepairHoursGraphPageDef.VRequestRepairForOneWeekRO1__cubicDefinition
    Thanks.

    More info:
    I found that this warning comes when data from the View are represented by the graph (line, bar, pie…).
    I tried to show the same data in the table and there were no warning.
    It does not matter if the view is based on entity or created by the query.
    It is not related to regions or the task flow. The same warning comes when single jspx with one graph is used.
    Any Help? Is this Oracle BUG or am I doing something wrong?

  • JDev 11g ADF Demo HTTP 500 error

    Please close this thread as answered.
    Reason: I figured out the solution myself. I deleted one of the facets on the page and it started working fine.
    ####<Nov 1, 2011 7:44:38 PM EDT> <Info> <ServletContext-/APSystem-ViewController-context-root> <DCA1-42622B1> <DefaultServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <83277662c2467086:7ff058e2:1336183da1d:-8000-000000000000001d> <1320191078200> <BEA-000000> <JspServlet error: Servlet unable to dispatch to the following requested page: The following exception occurred:oracle.jsp.parse.JspParseException: /APInvoiceDetails.jsp: Line # 110, xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    Error: "xmlns:af" is not a valid attribute name.>
    Edited by: abhi_apps333 on Nov 1, 2011 8:23 PM

    answered. Page layout issue.

  • Jdev 11g - ADF Faces - Restrict dragging panelSpiltter to certain point

    Hi all,
    I have 2 issues,
    1) How can i have vertical separator between components like ( Vertical line b/w praveen and Logged In As)
    Label praveen *|* Logged In As praveeng *|* Log out.
    2) Can i restrict dragging panel Splitter to a certain point, i.e i should not able to drag beyond that point.
    Is their any property like max Height in case of Vertical Splitter.
    Regards
    Praveen

    Hi
    Sometimes you have to explain to the powers that be that
    a) The requirement cannot be done with the tool
    b) It can be done but will be expensive time wise
    c) That the requirement is a "nice to have" and not a "must have"
    IMHO Sometimes we need to explain that a particular requirement doesn't make sense.
    In this case if the user drags the splitter too far they can simply drag it back again.
    Good Luck
    Paul

  • JDev 11g - ADF - PanelDashBoard

    Hi All,
    We have panelDashBoard in our application. we are facing issues in aligning content inside panelBox under DashBoard.
    Please check the below code
    <af:switcher facetName="#{attrs.maximized ? 'maximized' : 'restored'}"
    id="dcs1">
    <f:facet name="restored">
    <af:panelGroupLayout layout="scroll" id="dcpgl1" styleClass="AFStretchWidth">
    <af:panelGroupLayout layout="vertical" inlineStyle="padding: 4px"
    id="dcpgl2" styleClass="AFStretchWidth">
    <f:facet name="separator">
    <af:separator id="dcs2"/>
    </f:facet>
    <f:subview id="restoreProduct">
    <jsp:include page="/product/productContent.jsff" />
    </f:subview>
    </af:panelGroupLayout>
    </af:panelGroupLayout>
    </f:facet>
    Here i am including productContent.jsff which contains top ( To be aligned Center) and bottom (Form Layout) Section.
    The problem is that i can't align by top section to center. If i give halign=center in above code (PanelGroup), everything will be aligned to center.
    Do suggest where i am goin wrong.
    Regards
    Praveen

    Hi,
    try without f:subview and jsp:include. I think the reason is that f:subview is treated as a single component to align
    Frank

  • Programmatically identify and select DAQ device

    Hi all,
    I'm using Labview 8.0 to control a system which contains a USB DAQ device (9215A BNC for info). I can control everthing fine and use the DAQ card, but the software I'm writing will ultimately be supplied (as an executable or the like) with the system for use on end user computers. Its possible that some of the end users may already have NI DAQ cards installed in their systems. How can I make sure my software addresses only the DAQ card inside my system? Is there a simple way of programmatically listing all of the devices attached to the computer and then identifying the one that I want?
    If I name the device in NI MAX, for example, if I then plug it into a different computer, does it maintain that name? Or is that a local thing only?
    Any help would be greatly appreciated.
    Regards
    Paul

    Hi,
    thanks for the second reply. What I basically wanted was some way of finding the "device name" of the DAQ device in my system when its connected to a computer with multiple other DAQ devices attached. Ultimately, I did something similar to what you sent in that second example (see attached) which scans through the serial numbers of the DAQ devices attached to the computer and compares them with the serial number (entered manually) of my device. It then returns the device name that matches, so I can pass that to whatever future daq commands need it!
    Thanks again for the help
    Regards
    Paul
    Attachments:
    DAQ_ID_example.vi ‏20 KB

  • Sql query question! about insert and select

    i kinda wanna know if i can do something like this
    INSERT INTO "table1" ("column1", "column2", ...) SELECT "column3"+1, "column4", ... FROM "table2"
    since i wanna make the column increase by one, can i just do something like ++ or +1?
    please help

    hi
    ya u can do this
    this is i tried n its working fine
    insert into emp1(empno,sal) Select empno,sal+1 from emp
    wats ur column data type?
    regds
    Ashish

  • Programmatically getting ADF Tree node value(Version 11.1.2.0.0)

    Hi Forum,
    My Jdeveloper version 11.1.2.0.0
    and i am using Fusion Web Application (ADF) Template.
    In my .jspx page i have added ADF Tree.
    Now i want to get node value from backing bean.
    My java code is
    public void selectevent(SelectionEvent evt) {
    RichTree tree = (RichTree)evt.getSource();
    TreeModel model = (TreeModel)tree.getValue();
    RowKeySet rowKeySet = evt.getAddedSet();
    Object key = rowKeySet.iterator().next();
    model.setRowKey(key);
    JUCtrlValueBinding nodeBinding = (JUCtrlValueBinding)model.getRowData();
    if(model.getDepth()==1){
    int empid = (Integer)nodeBinding.getAttribute("EmployeeId");
    when i click on second node the following error occured.
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
    javax.el.ELException: java.lang.NullPointerException
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1579)
         at org.apache.myfaces.trinidad.component.UIXTree.broadcast(UIXTree.java:237)
         at oracle.adf.view.rich.component.rich.data.RichTree.broadcast(RichTree.java:305)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:157)
         at org.apache.myfaces.trinidad.component.UIXTree.broadcast(UIXTree.java:244)
         at oracle.adf.view.rich.component.rich.data.RichTree.broadcast(RichTree.java:305)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NullPointerException
         at tree.view.clsTreeTest.selectevent(clsTreeTest.java:23)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         ... 48 more
    <RegistrationConfigurator> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
    javax.el.ELException: java.lang.NullPointerException
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1579)
         at org.apache.myfaces.trinidad.component.UIXTree.broadcast(UIXTree.java:237)
         at oracle.adf.view.rich.component.rich.data.RichTree.broadcast(RichTree.java:305)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:157)
         at org.apache.myfaces.trinidad.component.UIXTree.broadcast(UIXTree.java:244)
         at oracle.adf.view.rich.component.rich.data.RichTree.broadcast(RichTree.java:305)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NullPointerException
         at tree.view.clsTreeTest.selectevent(clsTreeTest.java:23)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         ... 48 more
    Please any solution to get node value programmatically.
    Thanks

    Thanks
    After applying new code when i click on first node it is working fine but click on second node it produced error like below
    <FacesCtrlHierBinding$FacesModel> <makeCurrent> ADFv: No row found for rowKey: [oracle.jbo.Key[], oracle.jbo.Key[]].
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
    javax.el.ELException: java.lang.NullPointerException
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1579)
         at org.apache.myfaces.trinidad.component.UIXTree.broadcast(UIXTree.java:237)
         at oracle.adf.view.rich.component.rich.data.RichTree.broadcast(RichTree.java:305)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:157)
         at org.apache.myfaces.trinidad.component.UIXTree.broadcast(UIXTree.java:244)
         at oracle.adf.view.rich.component.rich.data.RichTree.broadcast(RichTree.java:305)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NullPointerException
         at tree.view.clsTreeTest.selectevent(clsTreeTest.java:69)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         ... 48 more
    <RegistrationConfigurator> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
    javax.el.ELException: java.lang.NullPointerException
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1579)
         at org.apache.myfaces.trinidad.component.UIXTree.broadcast(UIXTree.java:237)
         at oracle.adf.view.rich.component.rich.data.RichTree.broadcast(RichTree.java:305)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:157)
         at org.apache.myfaces.trinidad.component.UIXTree.broadcast(UIXTree.java:244)
         at oracle.adf.view.rich.component.rich.data.RichTree.broadcast(RichTree.java:305)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:121)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NullPointerException
         at tree.view.clsTreeTest.selectevent(clsTreeTest.java:69)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         ... 48 more

  • JBO-25058 exception when running adf:tree component

    Hi, I was trying to prototype an adf:tree which uses eo, vo, and view links as a data model. I am trying to use the vo recursively.
    Data model consists of :
    EO: PeggingDataEO
    VO: TopPeggingDataVO
    PeggingDataVO
    View Links: TopToFirstLevelVL (source: TopPeggingDataVO, destination: PeggingDataVO)
    ParentToChildVL ( source: PeggingDataVO, destination: PeggingDataVO)
    When i ran this page, i get the root node , and then when I try to expand it , i get this error:
    oracle.jbo.NoDefException: JBO-25058: Definition PeggingDataVO of type Attribute not found in TopPeggingDataVO_PeggingDataVO_TopToFirstLevelLVL_PeggingDataVO
    This is build using JDeveloper 11g ( jdev fusiondrop306).
    Please help. I don't understand what definition is missing and what TopPeggingDataVO_PeggingDataVO_TopToFirstLevelLVL_PeggingDataVO is?
    Thanks
    -c.
    below is the code for the page definition :
    <executables>
    <iterator Binds="TopPeggingDataVO1" RangeSize="25"
    DataControl="AppModuleDataControl"
    id="TopPeggingDataVO1Iterator"/>
    </executables>
    <bindings>
    <tree IterBinding="TopPeggingDataVO1Iterator" id="TopPeggingDataVO1">
    <nodeDefinition DefName="recursivetree.datamodel.queries.TopPeggingDataVO">
    <AttrNames>
    <Item Value="InventoryItemName"/>
    <Item Value="SourceType"/>
    <Item Value="SupplyDemandDate"/>
    <Item Value="SupplyDemandQuantity"/>
    <Item Value="ParentPeggingId"/>
    <Item Value="PeggingId"/>
    </AttrNames>
    <Accessors>
    <Item Value="PeggingDataVO"/>
    </Accessors>
    </nodeDefinition>
    <nodeDefinition DefName="recursivetree.datamodel.queries.PeggingDataVO">
    <AttrNames>
    <Item Value="InventoryItemName"/>
    <Item Value="SourceType"/>
    <Item Value="SupplyDemandDate"/>
    <Item Value="SupplyDemandQuantity"/>
    <Item Value="ParentPeggingId"/>
    <Item Value="PeggingId"/>
    </AttrNames>
    <Accessors>
    <Item Value="PeggingDataVO"/>
    </Accessors>
    </nodeDefinition>
    </tree>
    </bindings>

    Hi,
    can you run the VO in the tester ? The error message often indicates that the database connection uses a wrong schema
    Frank

  • Best approach -Tabs based ADF Tree left side navigation with Dynamic Regions with out UI Shell

    Hi,
    Somebody can help for the best approach to implement the following requirement.
    Req: When the user select the ADF Tree left side navigation menu, each menu will open as multiple tabs(Dynamic Tabs) in right side content area with out UI Shell Template.
    I completed the
    Step-1: From the Model project, I can able to render ADF Tree in the using view and view links. I can get the adf tree which is having 3 menu items. Each menu item having 2 sub menu's.
    I took each menu item as one(1) taskflow, each taskflow will have two(2) fragments.
    Total I have 3 task flows as Menu Items and 6 fragments for sub menu's.
    Step-2:  My question is How do I implement Tab based the ADF tree navigation (left side area to dynamic regions in content area) through dynamic regions? Please provide the steps in view layers.

    Than ks for your response.
    This is working fine for ADF Tree navigation with dynamic regions if the taskflow having only one fragment. if the taskflow having more than one fragments, this will not work. The following conditions are always satisfies one page fragment of either "employees" or "departments" task flow.  If the "employees" task flow have 2 page fragments, it's not work even you pass parameters through routers.
    public TaskFlowId getDynamicTaskFlowId() {
    if (currentTaskFlowID == null ||
    currentTaskFlowID.equalsIgnoreCase(“employees”)) {
    return TaskFlowId.parse(employeetaskFlowId);
    if (currentTaskFlowID != null &&
    currentTaskFlowID.equalsIgnoreCase(“departments”)) {
    return TaskFlowId.parse(departmetaskFlowId);
    return TaskFlowId.parse(employeetaskFlowId);
    My question is "Same use case with Dynamic Tabs" when the user click on any adf tree node.

Maybe you are looking for

  • How to get content check in info

    Hi, I have created a custom check in form and it contains few fields and on is redirected to confirmation page. In the confirmation page, I want to display the content id, title, author date,keywords all from the previous screen where user entered th

  • PO release strategy report

    Dear Experts, we are creating one report. PO release strategy report for Audit purpose. Who created When created TIme should be display user id and user code. for example, we have 4 levels for PO release. All 4 persons should approve for this PO. we

  • Wie kann ich an einen mac mini(late 2012) zwei gleiche (mini-Display Poste) Monitore anschließen ?

    Ich verwende bereits einen HP ZR2440w via Thunderbolt. Wie schließe ich dazu einen zweiten, identischen Monitor am besten an ? Der Monitor läuft auf 1920x1200 Danke und Gruß

  • EWT adjustment advance payment

    Hello All, The Scenario is like this. Advance payment made Rs.10000/- through special GL TDS deducted is say Rs.225/-on advance Rs.10000/-. Invoice Recd Rs.20000/-. So how should I enter this invoice as I have to adjust TDS already deducted Rs.225/-

  • 7.1 crashes straight after logon, Windows 8.1

    7.1 crashes straight after logon, Windows 8.1 Was fine before the update. How do I send a DX log?   if I paste it. it says it's too many characters and it will not let me attach a txt file. Solved! Go to Solution.