Populate a canvas when a tree-leaf node is clicked

I'm trying to populate a canvas or a list container with
images when a tree-leaf node is clicked. I got the tree control
working alright so far (populated via an external XML) but I'm
having a hard time figuring out how to populate the adjacent
container when a leaf node from a tree is clicked by a user. I know
I'm supposed to code this in the 'change' event but am having a
difficult time trying to figure out how to do this. I looked at the
source code in some of the sample apps but I couldn't find anything
that resemble what I'm trying to do.
Since each leaf node would be unique, each one of them would
trigger an external load of images (via http service) ... and so
the url would be unique as well for each.
'Appreciate the help from anyone who could help.
Thanks.

Thanks for the quick response Tracy ...
Actually, I don't have mage load part coded yet :) ... I do
have a somewhat general idea on how it should be coded though (i
think, hehe). I'm thinking the selected item in the leaf node would
have the data for the 'url' or 'folder location' of the images that
would have to be retrieved and displayed in the canvas. I'm just
not sure how to go about diplaying them in the canvas. Do I have to
load them in some sort of array first and then datasourced it for
my canvas? Not really sure how to go about doing it ... 'am totally
newbie with Flex and just learning it by going through the online
help and looking at the codes on some of the sample apps.
Thanks again.
pixelflip

Similar Messages

  • af:tree leaf nodes

    Is there a way to display leaf nodes in an <af:tree> differently, so that they don't look like they can be expanded?
    I'm using an <af:tree> component with an ADF tree binding. There's just one source collection, with a self-join (that is, the single accessor rule returns different elements from that collection).
    The problem is that every node in the tree is expandable, including the leaf nodes (that is, the ones with no children). When the user expands them, nothing happens except a change in the icon (as you might expect), but I'd rather not provide the icon at all, or provide a different icon, to discourage expansion.
    I actually have an attribute in my collection that can act as a discriminator--I happen to know that all and only rows with TypeIndicator="W" will have children. But my attempts to use the "polymorphic rule" functionality in the tree binding editor don't seem to work--it simply doesn't show any children of the top-level nodes at all.
    Help would be much appreciated.

    Mmm...sorta. Here's what I've done so far.
    I've created a class, let's call it CustomTreeModel, that extends the (abstract) class TreeModel. I've given it a private field:
    private final TreeModel mTree;and a constructor:
    public CustomTreeModel(TreeModel tree) {
        mTree = tree;
    }Then, I've overridden every method but one in TreeModel to delegate to mTree. For example:
    public void setRowIndex(int i) {
        mTree.setRowIndex(i);
    }The one exception is the method isContainer, which I've implemented this way:
    public boolean isContainer() {
        return (mTree.isContainer() && (! mTree.isContainerEmpty()));
    }The idea here is that the class wraps a tree, except that it claims that empty containers aren't containers at all (so they should be treated as leaves).
    Then, rather than bind my <af:tree> to #{bindings.MyTreeBinding.treeModel}, I bound it to #{myBackingBean.treeModelWrapper}, and created a backing bean with bean name myBackingBean. Here's what I did in the backing bean:
    1) Added a managed property, bindings, of type BindingContainer and value #{bindings}, and added a BindingContainer field, bindings, to the backing bean class.
    2) In the bean class, added a TreeModel field, treeModelWrapper.
    3) Changed the getter for treeModelWrapper so it looked like this (this is inexact, I don't have access to my code right now).
    public TreeModel getTreeModelWrapper() {
        Map myTreeBinding = (Map) getBindings().getControlBinding("MyTreeBinding");
        TreeModel oldTreeModel = (TreeModel) myTreeBinding.get("treeModel");
        return new CustomTreeModel(oldTreeModel);
    }That worked, inasmuch as the general structure of the tree looked about right, and leaf nodes showed up as leaf nodes.
    There are two problems with it. A little one and a big one.
    Little: It degrades performance significantly. Not surprising, since I assume isContainerEmpty() is a more resource-intensive method than isContainer(), and we're calling it a lot more often now. There's probably no way around this.
    Big: The data seems...a bit messed up. Most of it looks right, but I'm getting weird occasional spurious child nodes (meaning that occasionally a copy of a node is showing up in a container where it doesn't belong). Since the tree is based on a self-referential relationship, that occasionally leads to infinite loops (node A and node B show up inside one another, so you can just keep expanding downwards for ever). I can't for the life of me figure out why this is.

  • How to know which leaf node i click and how to add a listener to each node?

    hi! hello to all members, i have a problem i know how to create a listener, but i dont know how to add a listener to each leaf node. here is the scenario i want to do, i have a JTree where theres a topic that you can select on each leaf node, so when the user click the specific topic it will open another JFrame,which i dont know how to do it also, that its! the next problem will be how do i know which leaf node i select, so that i can open a right topic before the JFrame will open?please, i am very need this to solve quickly as possible. thanks again to all members.

    What you have to do is to add a mouse listener on your JTree. Try something like this:
    tree.addMouseListener(new java.awt.event.MouseAdapter() {
             public void mouseReleased(MouseEvent e) {
                tree_mouseReleased(e);
    private void tree_mouseReleased(MouseEvent e) {
          TreePath selPath = tree.getSelectionPath();
          // Check If the click is the Right Click
          if (e.isPopupTrigger() == true) {
          // This is your right Click
           else {
                     // This is your Left Click
    }Your other problem: Set the userObject on nodes and on left click compare it with your object, if it matches, display the appropriate file. Alternatively, if your nodes are unique, you can match the names to open the file.
    Hope this Helps
    Regard
    Raheel

  • Tree's leaf node as commandLink throws up error

    Hello,
    I have a tree component in a .jsff. This tree has its leaf node as a af:commandlink. The command link component has an actionListener and action methods configured. When a leaf node is clicked for the first time we are seeing an ADF Faces message that there is a NPE turning up. The messages in the logs are
    WARNING: ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase APPLY_REQUEST_VALUES 2
    Throwable occurred: javax.el.ELException: java.lang.NullPointerException
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
    Caused by: java.lang.NullPointerException
         at oracle.adf.model.binding.DCBindingContainer.callAfterRowNavigated(DCBindingContainer.java:2542)
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.internalSetCurrentRow(JUCtrlHierNodeBinding.java:591)
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.internalSetCurrentRow(JUCtrlHierNodeBinding.java:558)
    Upon clicking the OK button, the navigation continues fine; indicating that the actionListener and the action methods are fine. I have confirmed this with diagnostic messages in the server logs(thanks ADF Logging!)
    Subsequent clicks on the same or other leaf nodes do not throw this error.
    Has anyone seen this kind of behaviour or could anyone help me understand what is going wrong.
    Thanks in advance.
    Nachi

    Just an update, enabled logging on the adfinternal classes to see the following in the log files.
    [2013-03-20T13:47:28.983+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: popContextChange] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] Context change about to be be popped. Current stack size: 1
    [2013-03-20T13:47:28.983+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.controller.util.LogUtils] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: stopCurrentEvent] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.util.LogUtils] TimedEvent Stack is empty!
    [2013-03-20T13:47:28.984+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: pushContextChange] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] Context change about to be pushed. Current stack size: 0
    [2013-03-20T13:47:28.984+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: pushContextChange] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] Context change about to be pushed. Current stack size: 1
    [2013-03-20T13:47:28.984+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: popContextChange] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] Context change about to be be popped. Current stack size: 2
    [2013-03-20T13:47:28.985+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: popContextChange] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.view.faces.context.ApplicationContextManagerImpl] Context change about to be be popped. Current stack size: 1
    [2013-03-20T13:47:28.985+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for public listener 'oracle.adf.controller.internal.debug.AdfLifecycleBreakpointFacadeFwk'.
    [2013-03-20T13:47:28.985+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.view.faces.activedata.FacesBindingRewiringListener'.
    [2013-03-20T13:47:28.986+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.application.model.SaveStateTokenListener'.
    [2013-03-20T13:47:28.986+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.application.model.DispatchContextualEventListener'.
    [2013-03-20T13:47:28.986+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.application.model.UpdateBindingListener'.
    [2013-03-20T13:47:28.986+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.debug.ActivityBreakpointFacadeImpl'.
    [2013-03-20T13:47:28.987+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.application.SaveStateListener'.
    [2013-03-20T13:47:28.987+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.application.NewWindowStateListener'.
    [2013-03-20T13:47:28.987+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.application.PageParameterPagePhaseListener'.
    [2013-03-20T13:47:28.988+00:00] [WC_CustomPortal_2] [TRACE:32] [] [oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: afterPhase] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper] ADFc: afterPhase 'jsfApplyRequestValues' for listener 'oracle.adfinternal.controller.application.SyncNavigationStateListener'.
    [2013-03-20T13:47:28.988+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.controller.util.LogUtils] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: stopCurrentEvent] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.util.LogUtils] TimedEvent Stack is empty!
    [2013-03-20T13:47:28.988+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.controller.engine.ControlFlowEngine] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: handleException] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.engine.ControlFlowEngine] ADFc: Handling exception [java.lang.NullPointerException]
    [2013-03-20T13:47:28.988+00:00] [WC_CustomPortal_2] [TRACE] [] [oracle.adfinternal.controller.engine.ControlFlowEngine] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [SRC_METHOD: handleException] [URI: /jlpportal/faces/navigator] [SRC_CLASS: oracle.adfinternal.controller.engine.ControlFlowEngine] ADFc: No exception handler found.
    [2013-03-20T13:47:28.989+00:00] [WC_CustomPortal_2] [WARNING] [] [oracle.adfinternal.view.faces.lifecycle.LifecycleImpl] [tid: [ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 12057258] [ecid: 000001qO8s^B5EHMyuicMG00M03c001C7A,0:1] [APP: XXJLPPartnerLinkApp#V2.0] [URI: /jlpportal/faces/navigator] ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase APPLY_REQUEST_VALUES 2[[
    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:1300)
         at org.apache.myfaces.trinidad.component.UIXTree.broadcast(UIXTree.java:225)
         at oracle.adf.view.rich.component.rich.data.RichTree.broadcast(RichTree.java:248)
         at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
         at org.apache.myfaces.trinidad.component.UIXTree.broadcast(UIXTree.java:232)
         at oracle.adf.view.rich.component.rich.data.RichTree.broadcast(RichTree.java:248)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:902)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:357)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         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.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.wls.filter.SSOSessionSynchronizationFilter.doFilter(SSOSessionSynchronizationFilter.java:276)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at xxjlp.oracle.apps.por.portal.filter.XXJLPIECompatibilityOverrideFilter.doFilter(XXJLPIECompatibilityOverrideFilter.java:39)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at xxjlp.oracle.apps.por.portal.filter.XXJLPCustomFacesFilter.doFilter(XXJLPCustomFacesFilter.java:424)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
         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(AccessController.java:284)
         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:1459)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NullPointerException
         at oracle.adf.model.binding.DCBindingContainer.callAfterRowNavigated(DCBindingContainer.java:2542)
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.internalSetCurrentRow(JUCtrlHierNodeBinding.java:591)
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.internalSetCurrentRow(JUCtrlHierNodeBinding.java:558)
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.syncCurrentRow(JUCtrlHierNodeBinding.java:529)
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.setRowAsCurrentOnTargetIterator(JUCtrlHierNodeBinding.java:543)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding.setRowAsCurrentOnTargetIterator(FacesCtrlHierNodeBinding.java:129)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.makeCurrent(FacesCtrlHierBinding.java:488)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
         at java.lang.reflect.Method.invoke(Method.java:611)
         ... 75 more
    Appreciate any help on this one. thanks!

  • Executing jscript from tree child node

    Hi,
    I am trying to execute a jscript code when pressing tree child node (commandLink)
    to launch a popup, but in vain.But I succeed to launch the popup from another side.
    I used
    <af:commandLink text="#{node}">
    <af:showPopupBehavior popupId="MyPop"/>
    <af:clientListener method="showPopup" type="action"/>
    </af:commandLink>

    I am confused by the code sample. You have a clientListener to launch the popup and you use the showPopupBehavior component. Either case amounts to roughly the same code so you are calling the popup twice.
    --Ric                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Raise event when user select a node or leaf of a recursive tree

    What is the event when user choose a node or leaf of a recursive tree? When I select the tree node / leaf it does not raise the event in OnAction. Thanks!

    Hi,
    TreeNodeType and TreeItemType have ONACTION event assocaited with them. This event gets called when the node or leaf is selected by user. Put a break point in these method, then you'll call to know if they are actually getting called or not.

  • How to Find the node or leaf node selected in Tree UI element:

    Hi All,
    I have a tree structure with three level design. We have a button, which will perform some operation on the specific node or leaf node on every level.
    When we select any node or leaf node, we have action Onction getting called.  But what we want is that, after we select the node or leaf node,  we press a button below the tree design and perform some operation on the node selected.
    But how to get information that on Application , which node or leaf node has been slected ?
    Thanks
    PG

    Hi,
    Found the solution.
    Juts keep on reading all the nodes, system gives the complete path of the tree by using Lead selection and then we can use this path to peform the update operation on tree structure.
    Thanks alot for the hint.
    Regards
    PG

  • ADF 10.1.3.0.4: tree leaf with no child nodes still displays folder icon?

    I was reading through Frank Nimphius's Blog and found the entry entitled "ADF Faces: Building a hierarchical tree from recursive tables - October 05, 2006" and found a tree example in which a tree leaf with no child nodes do not display the folder icon.
    I've followed the instructions listed with adf:tree, CoreTree and ChildPropertyTreeModel, but my tree leaves with no child nodes still displays the folder icon.
    How do I remove this icon when the node is a leaf with no children?
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I figured it out.
    I used the ChildPropertyTreeModel.isContainer() method.
    --Todd                                                                                                                                                                                           

  • Leaf node Hierarchy based on tree position

    Hi All,
    I need to find the Hierarchy of given leaf node. Can you please help me. Here are details
    create table t_rk_4 (child_id number, parent_id number, treenum varchar2(100));
    insert into t_rk_4 values (2,1,'1');
    insert into t_rk_4 values (3,1,'1');
    insert into t_rk_4 values (6,2,'1.2');
    insert into t_rk_4 values (7,6,'1.2.6');
    insert into t_rk_4 values (4,3,'1.3');
    insert into t_rk_4 values (5,4,'1.3.4');
    insert into t_rk_4 values (7,5,'1.3.4.5');
    insert into t_rk_4 values (8,7,'1.2.6.7');
    insert into t_rk_4 values (4,9,'1.9');
    insert into t_rk_4 values (9,1,'1');
    In the above date, child 8's parent is 7 only in case if tree context 1.2.6.7
    select child_id,parent_id connect_by_isleaf,level,lpad(' ',level*3)||a.child_id
    from t_rk_4 a
    start with child_id = 8 connect by child_id = prior parent_id ORDER SIBLINGS BY child_id;
    when I run the above query I am getting all tree contexts,
    Is there a way I can only get tree positins thru 1.2.6.7 ?
    In real table I have more than 1 million records..
    Any help would be helpful..
    Thanks
    ay.

    Hi,
    Welcome to the forum!
    Thanks for posting the CREATE TABLE and INSERT statements! It clarifies things a lot and makes it much easier to reply.
    Another very helpful thing is to post the results you want from the data you posted. In this case, I think you want:
    . CHILD_ID  PARENT_ID CONNECT_BY_ISLEAF      LEVEL INDENTED
             8          7                 0          1    8
             7          6                 0          2       7
             6          2                 0          3          6
             2          1                 1          4             2Is that right?
    Notice how multiple spaces are not compressed in the section above. That's because I typed &#123;code&#125; (all small letters, in curly brackets) before and after that section.
    To get those results, I just added one line to your CONNECT BY clause, saying that the parent's treenum has to be the first part of the child's treenum:
    SELECT     child_id
    ,     parent_id
    ,     CONNECT_BY_ISLEAF
    ,     LEVEL
    ,     LPAD (' ', LEVEL * 3) || a.child_id     AS indented
    FROM     t_rk_4     a
    START WITH     child_id = 8
    CONNECT BY     PRIOR parent_id     = child_id
    AND          PRIOR treenum     LIKE treenum || '.%'     -- *** NEW CONDITION ***
    ORDER SIBLINGS BY     child_id;What do you want to do if the node you're starting with has two (or more) parents?
    If we START WITH child_id = 7, the query above produces this output:
    . CHILD_ID  PARENT_ID CONNECT_BY_ISLEAF      LEVEL INDENTED
             7          5                 0          1    7
             5          4                 0          2       5
             4          3                 0          3          4
             3          1                 1          4             3
             7          6                 0          1    7
             6          2                 0          2       6
             2          1                 1          3          2That is, there are two rows in the table with child_id = 7, so the query shows two lines of ascent. The alternate route, going through the node with child_id = 9, is not shown. Is that what you want?

  • JTree: What do I do, when a leaf node isn't a leaf node?

    Hi All,
    I have a question about the JTree and leaf nodes.
    My requirements are:
    1) I have to have a tree which doesn't "fill" its contents at a certain level until the user expands a node
    2) As a result of #1, leaf nodes must have a "+" sign in front of them until the user tries to expand them at least once (if they are then empty, the "+" is removed in favor of the normal leaf icon.. if they have data, the "+" is replaced with a "-" and the data is filled in)..
    Currently, we have an implementation of this which adds a "dummy" node as a child of the leaf to force it to be a "non-leaf", until the user opens it, then the dummy object is removed and the real data (if any) is added..
    It works, but I'm wondering if there is a simpler way.
    Can anyone offer their opinion? Thanks a bunch.
    Dave

    What I do is to have some code that implements TreeWillExpandListener. What happens then is that when the user clicks on the doohickey to expand a node, my treeWillExpand(TreeExpansionEvent e) method is called. It examines the node that is about to expand and goes out to the database to load up its children. But to make this work, you have to have the doohickey available. This means that your nodes have to know whether their children have been loaded or not; this is the code I use to override the isLeaf() method for them:public boolean isLeaf() {
      return (childrenLoaded ? super.isLeaf() : false);
    }In this code "childrenLoaded" is a boolean instance variable that is initialized to false, then set to true via a property-setter method by the code that loads the node's children.
    That's a rough outline of what I did. Good luck!

  • Keeping expended leaf node when reloading page for TreeNodeType

    Hi all,
    My page with context is:
    -TREE (node)
      ---TREENODE (node)
    CHILDNODE (node)
    name (attribute)
    value (attribute)
    I map this context into TREE as below:
    -TREE (element type: TREE; dataSource : TREE)
    ---TNT_NODE (element type: TreeNodeType; dataSource: TREENODE; hasChildren: TRUE )
    ---TNT_CHILDNODE (element type: TreeNodeType; dataSource: CHILDNODE; hasChildren: FALSE)
    Everything is ok, but my issue is:
    How TNT_NODE keep expanded (show child node as TNT_CHILDNODE) when page is reloaded? Now TNT_NODE collapse its leaf node when page reload. I tried using EXPANDED but it expands all nodes that is not my desire.
    Please give me your advice.
    Regards,
    Ken

    my issue is resolved

  • APEX Tree.  Keep focus on expanded leaf node.

    How do I prevent my tree from jumping back to the top when I expand a leav node that is below the screen scroll. I have a single parent of CORP with about 30 leaf nodes as its direct children. I have to scroll down to expand a node towards the bottom of the list. When I scroll down and expand, the page refreshes and jumps back to the top so now I have to scroll down again to expand the next node, etc. My current Tree Qurey is like
    select CHILD_ID id,
    PARENT_ID pid,
    CASE WHEN CHILD_ID = :P23_TARGET THEN
    CASE WHEN :P23_STATUS = 'Target Up' THEN
    '<span styl="color:green;">' || ITEM_NAME || '</span>'
    ELSE ITEM_NAME
    END
    ELSE
    ITEM_NAME
    END name,
    'f?p=&APP_ID.:23:'||:SESSION||'::NO::P23_TARGET:'||CHILD_ID link,
    null a1,
    null a2
    from CORP_SVR_HRCHY_VW

    Hi,
    You have to use the Anchor ID functionality of a browser - this allows you to add #id to the end of the url where id refers to the id attribute of the item that should receive the focus when the page is reloaded.
    As an example: [http://apex.oracle.com/pls/otn/f?p=33642:200]
    This, of course, requires a bit of setting up, but is easily doable.
    For this example, my SQL statement for the tree is:
    SELECT 1 ID, NULL PID, 'Top' NAME, NULL LINK, NULL A1, NULL A2 FROM DUAL
    UNION ALL
    select "EMPNO" id,
           1 pid,
           "ENAME" name,
           'f?p=' || :APP_ID || ':200:' || :APP_SESSION || '::::P200_EMPNO:' || EMPNO || '#node' || EMPNO link,
           'node' || EMPNO a1,
           null a2
    from "#OWNER#"."EMP"You will note that the URL contains *'#node' || EMPNO* at the end of the link - for an EMPNO of 1234, this would add *#node1234* to the end of the URL. You will also note that I've added *'node' || EMPNO* to the A1 column - whatever I add into this column becomes available for use in the output by referencing it as #A1# in the template. On the tree's template definition, wherever there is an A tag, I've included:
    ID="#A1#"as an attribute of the tag. For example, on the "Name Link Anchor Tag" setting, I have:
    &lt;a href="#LINK#" ID="#A1#"&gt;#NAME#&lt;/a&gt;and, wherever #A1# appeared outside of an A tag, I have removed it (otherwise, the "node1234" text would appear at that point in the page).
    Andy

  • How to get a Tree Node Value when a Tree is Expanded

    My reqiurement is when i Expand a Tree i need the Expanded tree Node Value. For Example Consider Parent as a Root Node of a Tree, and Consider its two Children Child1 and Child2.
    When + Parent Expanded
    I will Get the Output as --Parent
    - Child1
    - Child2
    so As when i expand the Tree i must Get the String Value Parent.

    duplicate
    How to get a Tree Node Value when a Tree is Expanded

  • How to make the leaf node of the APEX tree downloadable

    Hi All,
    I am trying to build a "library" page for my application, with the documents as the leaf nodes of the tree. The documents come from a database table, and each document is a BLOB.
    My question is, how should I write the "link" part of the APEX tree query to make the lead node document downloadable for the end users?
    Thanks,
    Christine

    Hilary helped me out of this by creating a new form page with two new items there corresponding to the PK and BLOB column, then in the tree query use apex_util.get_blob_file_src function as the link. Below is the email from Hilary:
    1. Created Form, page 13, based upon your table storing the documents as BLOBs. The form page has just two associated items: P13_DOC and P13_DOC_ID. The item P13_DOC is of type FILE and contains a source type of DB column, which is the first required parameters of the function get_blob_file_src. NOTE: I could have created a form region on the same page as your tree, but chose to generate a separate page. You may choose to change this yourself.
    2. Updated the Tree query on pg 12 to use the following link for tree nodes of level 4:
    apex_util.get_blob_file_src('P13_DOC',v.attr3)
    ...where P13_DOC is the application page item mentioned in step 1 above, and v.attr3 should hold the unique ID associated with the document. Your tree now allows users to download the listed documents.

  • Displaying leaf nodes at the bottom of a tree that has parent nodes

    I have a problem in that - leaf nodes added to the tree at the bottom appear with big spaces (vertically) between them. It looks as if the nodes are somehow expanded by default!
    Is this a known issue with leaf nodes that are added in below parent nodes?
    I notice in the normal hierarchy the leaf nodes are displayed fine. Also if I return false on isleaf() it displays the last 3 nodes as expandable icons but they're still lage gaps between them.
    this is an example of what i'm getting
    Main �
    +Parent Node(expandable)
    |
    +Parent Node(expandable)
    |
    +Parent Node(expandable)
    |
    |
    |_leaf node (not expandable)
    |
    |
    |_leaf node (not expandable)
    |
    |
    |_leaf node (not expandable)

    You got my interest with your topic subject as I'm working on a library which simplifies the development with Swing trees. However everyone here except you knows nothing about your "anormal hierarchy" which creates you problem.
    Denis Krukovsky
    http://sourceforge.net/projects/dotuseful/

Maybe you are looking for

  • Not able to generate output in CSV(EXCEL) format

    Hi, XML Publisher report is giving me an error when the Preview Format is 'EXCEL'. When I keep the Preview Format as 'PDF', the concurrent program is running successfully and the PDF output is getting generated. But for EXCEL outputs, I am getting th

  • Expose occasionally doesn't work

    I have a MacBook Pro 15" latest series running Snow Leopard. Occasionally (pretty often), Expose doesn't work. I have Expose enabled and have made corners of my screen sensitive. The corners don't respond and neither does the Expose button on my keyb

  • Import/Export between different Portal versions

    Hi, is there any resonable argument for not allowing imp/exp between different version? The thing is a developed a Page Group on a 9i AS and now need to export it to a 10g AS. It reasonable to think that an imp/exp machanism should exist, at least, f

  • Cannot amend Bank account in House Bank Accounts-setup

    Hi, Customer is using 2007A PL30 With recent bank merging, a new bank account had been given to its customer. As such, customer would like to amend Account No field in House Bank Accounts-Setup but hit errors "Fields cannot be updated" Customer would

  • Removing linked thumbnails under slideshow in Muse?

    Just wondering how I might remove the thumbnail images under the slideshow widget in Muse? I have tried making them transperant but the link still shows. I would like the user to simply click on the arrows to go forward and backwards between projects