Lazy tree

Hello,
I need to build a lazy tree using EJB POJOs. The child nodes are populated only when parent node is expanded.
Can anyone help me with source code?
Thanks for your help.
Jairo

Hi Frank:
However I don´t using ADF controls. If you can help me I saw a mail to David Ferguson with subject Re: Can you populate an ADF Tree using Just In Time ? and you say that build a testcade with EJB POJO.
I don't using ADF TREE because it doesn´t have a vertical scrolling although in JDeveloper 11g this property is present.
Any help will be appreciated.
Thanks,
Jairo

Similar Messages

  • Lazy TreeModel questions...

    I'm considering a TreeModel that lazily instantiates its data when required.
    Essentially it won't bother loading data for a node until getChildCount is called for that node. This works alright - getChildCount doesn't get called until the nodes are expanded in the view.
    However, I would also like the data to be refreshed when a node is closed and expanded again. One way would be to discard the data when the node is collapsed. Another way could be to rebuild the data on the treeExpanded event. The latter seems dangerous - firing a nodeStructureChanged on the node that has just expanded will cause it to close again! That just leaves discarding the data when the node is collapsed; easy.
    The problem comes from getChildCount being called on some nodes that are not open but which have previously been opened. This leads to the model reloading the data for nodes that are not open in the view.
    Has someone got a more comprehensive idea of when getChildCount will be called by a JTree?
    I incorrectly assumed it would be only if the following were true:
    1. The node was expanded in that JTree
    2. isLeaf returns false
    Perhaps there's something more involved going on with the UI not trusting the isLeaf method?
    I'd appreciate any thoughts on a lazy TreeModel which might experience unnotified changes to the underlying data.
    Thanks in advance guys.

    It would appear that BasicTreeUI attempts to optimise its calls to getChildCount by trying to avoid calling until the node is expanded. However, once it's expanded a node it will happily continue calling getChildCount. Thus collapsing a node will still leave it thinking that it's safe to continue calling getChildCount to check whether an expand control is needed. Of course that's correct behaviour because the underlying model shouldn't have changed without firing an appropriate event.
    Firing a nodeStructureChanged event when the node closes, indicating to the tree that the underlying data has been discarded has sorted things out.
    Sorry for answering my own question!
    Still, if anyone's got any views on lazy tree models having written some of their own I'd be glad to hear them.

  • Tree lazy loading

    I need a way to make a Tree load data using lazy-loading
    method.
    I have found on the internet that Tree control has a bug, and
    doesn't support lazy loading.
    Does anyone have a solutions to this? Workaround? Or, how can
    be implemented a lazy-loading mechanism?
    Thanks

    Found the answer:
    Using TreeEvent.ITEM_OPENING to handle when user click on a
    branch.
    Prevent opening... e.preventDefault()
    Check then is selectedItem has children, if has then
    selectedItem.children=new Array();
    selectedItem.children = myFunctionToGetChildren(parentId);
    In the end, expandItem(e.item))

  • Flex Lazy Loading Tree example posted

    Hi, all;
    I've posted a new example to my blog:
    http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file-posted.html
    This example demonstrates
    - Using lazy loading with a Tree component.
    - Using an interface rather than a concrete type to allow the
    LazyDataDescriptor to work with any class that implements
    LazyLoading.
    - An all-actionscript remoting connection
    It also has the PHP files and instructions for creating the
    mySQL database
    that provide the service data.

    "danger42" <[email protected]> wrote in
    message
    news:gkig47$hqu$[email protected]..
    > Very cool!
    Thanks :-)

  • Using a Heiarchical Tree with data that can be grouped

    Hello Forum
    I have been tasked with coming up with a selector for one of our applications that uses a tree. I have built a mock-up using the example provided at Craigs Oracle Stuff (https://sites.google.com/site/craigsoraclestuff/oracle-forms---how-to-s/forms-how-to-create-a-hierachical-tree-form) that subsuitutes our data in the SQL for his, and I have successfully added another loop as the data is located in 3 tables, but have come across a few issues. I have been searching the forums and google, but cannot find anything to solve the issues that I am having. Any help is appreciated. This is being developed in 10g. The data is structured as follows.
    Category(root)
    ID, Name
    1, A
    2, B
    3, C
    SubCategory (Level 2)
    ID, Name, CatID
    1, A, 1
    2, B, 1
    3, C, 1
    Codes (Level 3 and beyond?)
    ID SubCatID Description
    1, 1, 'The, quick'
    2, 1, 'The, quick, brown'
    3, 1, 'The, quick, brown, fox, jumps'
    4, 1, 'The, quick, brown, fox, jumps, over, the lazy, dog'
    5, 2, 'Wafting, zephyrs, quickly, vexed, Jumbo'
    6, 2, 'Wafting, zephyrs, quickly'
    As you can see the codes table has a lot of repeating values that are delimited by ',' (commas). I can produce a tree out of the 3 tables but...
    Problem:
    The description in the codes table can be as many as 255 characters. The tree seems to truncate the values around 60 characters. I am not sure what the maximum data lenghts in the tree are, or if the max lengths are limited by the node or the entire tree. Although the Category and Subcategory names can be as much as 120 characters, they are more typically around 25 characters.
    Could this problem be remedied buy deepeing the levels of the tree by grouping the values in the codes table on the comma delimiters? The max number of commas in the description is 9, so that would make the tree up to 11 levels deep. I know how to get the text between the commas, but am unsure how to link the data back to the parent
    Ex. The tree would be
    A
    ->A
    ->->The
    ->->->quick
    ->->->->brown
    Thanks for any Assistance
    Mike
    EDIT: I found the reason that the label of the node is being limited in length. The limit is actually 50char because of this line in Craig's code in the Create_RG function:
    gc_id := Add_Group_Column(rg_id, 'label', CHAR_COLUMN,50);
    I changed the limit to 255 and now all of the data displays.
    Although working now, I would still like to know id there is a way of grouping the data into the tree view, as this would make the tree much more readable.
    Mike
    Edited by: saskcivic on Feb 5, 2013 7:36 AM

    hi,
    In BI CONTENT,, v can just install any Object,,for that, matter,,just to make that object Active. So by Default it vll nt have any data. Install any Query data flow before and after, then select some master characteristics, and transaction data,,schedule them, Load the data,, then Ur Report Data vll display.
    Cheers
    Thanks

  • Populate Flex Tree from Java Code (Database)

    Hi
    Can someone please help me? I'm very new to using flex. I'm
    basically trying to create a tree that is populated from data in my
    database. I am using hibernate to fetch that data.
    The plan is to basically create the tree in Java code (since
    I don't want any processing done on the client PC) and then pass
    this to the flex tree (or an actionscript data structure that is
    compatible as the tree datasource)
    I am creating the java tree using DocumentImpl. Is this
    correct? What class would work?
    Element e = null;
    Node n = null;
    Document xmldoc= new DocumentImpl();
    Element root = xmldoc.createElement("USERS");

    quote:
    Originally posted by:
    ntsiii
    Stop running and get a map (read the documents)
    This is hardly a useful comment and must discourage new users
    from asking questions. If you think the documentation relating to
    the use of the tree control is straightforward then I beg to
    differ.
    If you are aware of a clear example of how to use the data
    tree with a php backend returning a remote data object please
    enlighten me. Meanwhile I continue my search but not within the
    livedocs.
    One site I have found that may be of use is
    http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file-posted.html
    Not everyone is an expert.

  • Af:tree Null Pointer Exception using af:switcher

    Hi,
    I've implemented a Tree (based on 3 linked SQL Query View Objects). The linked View Objects run ok in the Application Module tester...
    I wanted to customize the different levels of the tree so implemented a Switcher component on the Tree as follows (note I've limited the Tree to 2 levels):
    <af:tree value="#{bindings.listToDoAppsVO1.treeModel}" summary="ToDo List Tree"  var="node"
                                                                 id="pt_t8" contentDelivery="lazy"
                                                                 initiallyExpanded="true"
                                                                 styleClass="AFStretchWidth" inlineStyle="height:inherit;">
                                                            <f:facet name="nodeStamp">
                                                              <af:switcher facetName="#{node.hierType.structureDefName}" id="todo_switcher">
                                                                <!-- render the Application Node -->
                                                                <f:facet name="app_model.listToDoAppsVO">
                                                                  <!-- display the Application as the node name -->
                                                                  <af:outputText value="#{node.Appname}" id="ot_app">
                                                                  </af:outputText>
                                                                </f:facet>
                                                                <f:facet name="app_model.listToDoTypesVO">
                                                                  <!-- Create the node definition for the Report Type -->
                                                                  <af:commandImageLink id="pt_ot16"
                                                                                         text="#{node.Viewtype}"
                                                                                         icon="/pics/folder-icon.png"
                                                                                         action="callRouter"
                                                                                         actionListener="#{backingBeanScope.cognition3coltempBacking.toDoViewGoActionListener}"
                                                                                         />
                                                                </f:facet>
                                                              </af:switcher>
                                                            </f:facet>
                                                        </af:tree>However, when the page is run the Tree displays correctly initially, but as soon as a link is pressed I get a Null Pointer exception with the following Stack Trace info (top 30 or so lines):
    java.lang.NullPointerException
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.createAndNotifyDCE(JUCtrlValueBinding.java:327)
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.createAndNotifyDCE(JUCtrlHierNodeBinding.java:2646)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierNodeBinding.createAndNotifyDCE(FacesCtrlHierNodeBinding.java:137)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.notifyRefreshDCE(JUCtrlValueBinding.java:299)
         at oracle.jbo.uicli.binding.JUIteratorBinding.notifyRefreshDCE(JUIteratorBinding.java:497)
         at oracle.adf.model.binding.DCIteratorBinding.refreshControlAndNotifyDCE(DCIteratorBinding.java:705)
         at oracle.adf.model.binding.DCIteratorBinding.rangeRefreshed(DCIteratorBinding.java:914)
         at oracle.adf.model.binding.DCIteratorBinding.iteratorReset(DCIteratorBinding.java:1332)
         at oracle.jbo.common.RowSetHelper.fireMgmtIteratorReset(RowSetHelper.java:282)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyIteratorReset(ViewRowSetIteratorImpl.java:3778)
         at oracle.jbo.server.ViewRowSetImpl.resetIterators(ViewRowSetImpl.java:4004)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1271)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1413)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1319)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1304)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:7119)
         at oracle.adf.model.bc4j.DCJboDataControl.executeIteratorBindingIfNeeded(DCJboDataControl.java:1366)
         at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIteratorBinding.java:2219)
         at oracle.jbo.uicli.binding.JUCtrlHierBinding.getRootNodeBinding(JUCtrlHierBinding.java:92)
         at oracle.adfinternal.view.faces.model.binding.RowDataManager.getParent(RowDataManager.java:245)
         at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowIndex(RowDataManager.java:51)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowIndex(FacesCtrlHierBinding.java:800)
         at org.apache.myfaces.trinidad.component.UIXCollection.setRowIndex(UIXCollection.java:530)
         at org.apache.myfaces.trinidad.component.UIXTree.__encodeBegin(UIXTree.java:488)
         at org.apache.myfaces.trinidad.component.UIXCollection.encodeBegin(UIXCollection.java:607)If I replace the tree with a simpler component (e.g Command Image link) I don't get the error.
    Any ideas please? I'm using JDeveloper 11.1.2.1.0 incidentally...
    Thanks.

    Hi Frank,
    Thanks for your reply. The Partial Submit worked up to a point - the expected navigation to the new view now works when the link is initially pressed. However, if the link is tried again the Null Pointer Exception occurs again.
    By the way, the Tree is on a Page Template, where there is another Tree that utilises an af:switcher - and the command link from this tree now fails with the same NPE error. I notice there are warnings for both trees in the Page Template View such that 'Reference "node.hierType" not found'. Not sure how relevant this is given that the Trees both display correctly initially.
    The Stack Trace is as follows (can't post the whole thing as it exceeds the 30000 char limit):
    <UIXInclude> <_warnUnpoppedContextChanges> ADF_FACES-10021:During the processing of the include component, the context change found did not match the current component. Expected oracle.adf.view.rich.component.fragment.UIXInclude$IncludeContextChange, but got UIXCollection.CollectionComponentChange[Component class: oracle.adf.view.rich.component.rich.data.RichTree, component ID: pt_t8].
    <FaceletViewHandlingStrategy> <handleRenderException> Error Rendering View[/app_todoTF/app_common_todo]
    java.lang.NullPointerException
         at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.findChildNode(JUCtrlHierNodeBinding.java:867)
         at oracle.jbo.uicli.binding.JUCtrlHierBinding.bringNodeToRangeKeyPath(JUCtrlHierBinding.java:788)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding.bringNodeToRangeKeyPath(FacesCtrlHierBinding.java:111)
         at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowKey(RowDataManager.java:130)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowKey(FacesCtrlHierBinding.java:830)
         at org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:513)
         at oracle.adfinternal.view.faces.renderkit.rich.TreeRendererUtils._isMultiRootedTree(TreeRendererUtils.java:2507)
         at oracle.adfinternal.view.faces.renderkit.rich.TreeRendererUtils.addClientPropertyFlags(TreeRendererUtils.java:1915)
         at oracle.adfinternal.view.faces.renderkit.rich.TreeRenderer.addClientProperties(TreeRenderer.java:742)
         at oracle.adfinternal.view.faces.renderkit.rich.TreeRenderer.encodeAll(TreeRenderer.java:351)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:617)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelBoxRenderer._encodeAllChildren(PanelBoxRenderer.java:1518)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelBoxRenderer._renderContentRow(PanelBoxRenderer.java:1440)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelBoxRenderer.encodeAll(PanelBoxRenderer.java:381)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:447)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$1500(PanelGroupLayoutRenderer.java:30)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:734)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:637)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:318)
         at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:283)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:360)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer.access$600(ShowDetailItemRenderer.java:37)
         at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer$ChildEncoderCallback.processComponent(ShowDetailItemRenderer.java:640)
         at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer$ChildEncoderCallback.processComponent(ShowDetailItemRenderer.java:613)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:318)
         at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:283)
         at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer._encodeChildren(ShowDetailItemRenderer.java:550)
         at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer.encodeAll(ShowDetailItemRenderer.java:121)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2194)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelAccordionRenderer._encodeNonScreenReaderDetailItem(PanelAccordionRenderer.java:1572)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelAccordionRenderer._encodeDetailItem(PanelAccordionRenderer.java:1638)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelAccordionRenderer.access$4900(PanelAccordionRenderer.java:58)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelAccordionRenderer$PanelEncoderCallback.processComponent(PanelAccordionRenderer.java:2775)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelAccordionRenderer$PanelEncoderCallback.processComponent(PanelAccordionRenderer.java:2719)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:318)
         at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:283)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelAccordionRenderer.encodeAll(PanelAccordionRenderer.java:471)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeStartFacet(PanelStretchLayoutRenderer.java:942)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeVerticalPane(PanelStretchLayoutRenderer.java:1542)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeMiddlePanes(PanelStretchLayoutRenderer.java:350)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:316)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2194)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._renderPane(PanelSplitterRenderer.java:1593)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.encodeAll(PanelSplitterRenderer.java:263)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:879)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:1294)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeMiddlePanes(PanelStretchLayoutRenderer.java:351)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:316)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:2194)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._renderPane(PanelSplitterRenderer.java:1593)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.encodeAll(PanelSplitterRenderer.java:263)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
         at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
         at oracle.adfinternal.view.faces.renderkit.rich.PageTemplateRenderer.encodeAll(PageTemplateRenderer.java:68)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
         at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:274)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
         at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
         at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3062)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1277)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
         at oracle.adfinternal.view.faces.context.PartialViewContextImpl._processRender(PartialViewContextImpl.java:321)
         at oracle.adfinternal.view.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:152)
         at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:974)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1652)
         at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:91)
         at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
         at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:350)
         at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:165)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1027)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:232)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
         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:122)
         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)
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
    java.lang.NullPointerException
    etc...Thanks.

  • Equals and lazy loading

    Hi all,
    We have an application in which we use lazy loading on our client, so we can't be sure that both objects have the same objects reference loaded already. While implementing the equals method I came to the problem if it makes sense to compare the lazy loaded objects as well, because this might lead to a very deep object comparison through the whole object tree which might be very unperformant if I load this references on demand. Otherwise not comparing the references might be an incomplete comparision of these objects and makes the usage of the equals method very difficult.
    Has anyone experience using the equals method with lazy loading?
    Thanks in advance
    Marco

    Okay - here comes a little more detail about our architecture to give you a deeper understanding. Currently we are working with EJB3 / JBoss environment but our intention is to encapsulate this through a DAO-layer. Anyways we have special object-dependencies as per example a customer has it�s orders. So in my understanding a customer with the an address, a name etc. with NO orders is not the same as a customer with the same address and the same name and let�s say 2 orders. So I can stick with comparing simply the name and the address, but this wouldn�t give you an exact comparison.
    The other way would be to compare the orders as well, but what if the orders have a number of invoices behind them. The conclusion would be, that I�d have to compare them as well. Additionally I have the problem, that I have totally equal customers with the same number of orders and invoices, but the first one has a null-value in its orders, because they have not been loaded from database yet and the other one has. So my technique with comparing the lazy-loaded references would not work here. A complete loading of all references for a comparison cannot be the solution here either.
    So it is hard to say if they are I/O intensive. Worst case would be, that we have to load the complete object-tree for comparison from database and send them between client and server (jboss). This is part of our question? Should this be the consequence of lazy loading or is it best pratice to stick with the local attributes and let the client do the work, so that he has to work through the whole object-tree if he wants to know the exact equality.
    Does this give you a more detailled view of our question? I guess I am not the first to deal with this problem, so I�d like to share your experiences with you about what is "wise" to do.
    Thanks for your help
    Marco

  • How to control each node mx:tree

    Hello all,
    I use an mx:tree. The issue is that I wantto control each node for creating lazy load mode tree. I want to see node as an clickable node which has children. But I'll call and add the childrens to dprovider when I need it, on click itemOpen event.The mx:tree watches dataprovider so show us the node if has children or not.If a node hasn't children in dataprovider, it will seem like an item,not a bin with itemOpen event.
    Can you suggest me to fix this problem ?
    footnote: Each node Object has Type property if it's Bin or Video etc. I want eachone if object.Type==bin, show me a bin with itemOpen event.
      It's called Disclosure Triangle, yeah, that I want to control this guy
    Thanks in advance

    DefaultDataDescriptor class is defined for mx:tree as default descriptor. You may manipulate it by creating your customDataDescriptor class and you can override isBranch , hasChildren and getChildren functions.
    For more details read about DefaultDataDescriptor class from http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/treeClasses /DefaultDataDescriptor.html .

  • Trees Data Structures in Java

    Hi all !
    Currently I�m developing a Java software that requires a Tree data structure. Searching through Java API I�ve found classes like TreeMap and TreeSet, but although these classes seens to use tree structure behind what they really provide are linear data structure, not a tree data structure. My question is if there is a public and free Java tree data structure that permits to do activities such as:
    - Search for a particular node (efficiently)
    - Insert children to any node
    - Maintain one Object in each node
    Simple like this ! It must have something like this in Java, but I just can�t find it and I�m just too lazy to implement it :) ! Anyone can help me ?
    Thanks in advance !

    Mel,
    I�ve seen javax.swing.tree.TreeModel and its seens more like an implementation of Control in swing MVC (Model Vision Control) swing paradigm for JTree. It has listeners generated for manipulation events for example. It uses javax.swing.tree.DefaultMutableTreeNode for its nodes, and maybe I could use this class for the nodes of my tree since it has many useful operations. However still I miss a node searching operation that this class doesn�t have.
    Yes my problem is a simple Tree, but it is simple now and it might become much more complex, demanding more operations on the tree and specially efficient searching algorithms. Thats why I�m looking for a complete solution and I prefer something that is already done and well tested :) !
    Thanks for your tip !

  • Hi Unable to see any horizontal scroll bar on tree table

    Hi my tree table is in this format
    <af:treeTable rowBandingInterval="0" columnStretching="last"
    horizontalGridVisible="false"
    verticalGridVisible="false"
    inlineStyle="text-align:center; background-color:White;height:220px;"
    value="#{C2SearchBean.treeModel}" var="node2"
    initiallyExpanded="false" contentDelivery="lazy"
    id="ProductCharcTreeId"
    width="189px">
    i was not able to see the horizontal scroll bat can you please help me out.

    surround your treeTable with a panleCollection, or place it in a component that will stretch it like in the center facet of a panelStretchLayout.

  • VScroll Bar and Tree Issue

    I have a tree component and am using a custom DataDescriptor,
    when I dynamically add data to the DataProvider, I have a set that
    does not show in the tree. When those items get added, the
    VScrollBar will show. But since the items are 'hidden' and do not
    show in the tree view, the VScrollBar should not be showing. If I
    expand an item in the tree, then the VScrollBar will disappear and
    the tree will look like it is supposed to be.
    I tried using (individually and in combination)
    invalidateSize(), invalidateDisplayList(), invalidateProperties(),
    and invalidateList() on the tree but it doesnt update the
    VScrollBar like it should.
    Any help would be greatly appreciated, thanks.
    Art

    Arty,
    My issue is i'm not getting Vscrollbar on dynamic
    loading(lazy loading). I'm using flex 3 with cairngorm framework.
    Loading all children(dynamically) in getchildren method of
    datadescriptor. Here is my descriptors file
    package com.primavera.flex.admin.calendar.ui
    import com.adobe.cairngorm.control.CairngormEventDispatcher;
    import
    com.primavera.flex.admin.calendar.events.GetProjectEvent;
    import com.primavera.flex.admin.calendar.vo.ProjwbsVO;
    import mx.collections.ArrayCollection;
    import mx.collections.ICollectionView;
    import mx.controls.treeClasses.DefaultDataDescriptor;
    import mx.events.CollectionEvent;
    import mx.events.CollectionEventKind;
    public class PickListTreeDescriptor extends
    DefaultDataDescriptor
    public function PickListTreeDescriptor()
    super();
    override public function getData(node:Object,
    model:Object=null):Object
    return node;
    override public function hasChildren(node:Object,
    model:Object=null):Boolean
    return ProjwbsVO(node).isEPS();
    override public function isBranch(node:Object,
    model:Object=null):Boolean
    return ProjwbsVO(node).isEPS();
    //return false;
    override public function getChildren(node:Object,
    model:Object=null):ICollectionView
    var epsVO : ProjwbsVO = ProjwbsVO(node);
    if (epsVO.isEPS())
    // this check for delay loading once the data is loaded it
    should not make a remote call again
    if(epsVO.isProjectsLoaded == false)
    epsVO.isProjectsLoaded = true;
    var projectEvent : GetProjectEvent = new
    GetProjectEvent(null);
    projectEvent.projwbsVO = epsVO;
    CairngormEventDispatcher.getInstance().dispatchEvent(projectEvent);
    var collection:ICollectionView = ICollectionView(model);
    var event:CollectionEvent = new
    CollectionEvent(CollectionEvent.COLLECTION_CHANGE);
    event.kind = CollectionEventKind.ADD;
    event.items = ArrayCollection(epsVO.children).toArray();
    collection.dispatchEvent(new
    CollectionEvent(CollectionEvent.COLLECTION_CHANGE));
    return epsVO.children;
    Projwbs is my object in Arraycollection. Hierachy is like EPS
    can have projects(leafnode) and child Eps(branch node). EPS is
    determined if projwbs.isEps returns true.
    On UI it gives a single root node in a collapsed state. When
    i expand it furthur it gives child EPS and projects in it. On
    expanding root node i get childrens but in screen Vscrollbar is not
    visible.
    Please let me know if you have any thougts on this.

  • Populate Flex tree control from mysql

    Hi
    I am just learning Flex and I started playing with the Tree
    control. I am trying to populate the Tree from Mysql using php and
    I am just hitting wall after wall.
    Please Help
    Thanks in advance

    quote:
    Originally posted by:
    ntsiii
    Stop running and get a map (read the documents)
    This is hardly a useful comment and must discourage new users
    from asking questions. If you think the documentation relating to
    the use of the tree control is straightforward then I beg to
    differ.
    If you are aware of a clear example of how to use the data
    tree with a php backend returning a remote data object please
    enlighten me. Meanwhile I continue my search but not within the
    livedocs.
    One site I have found that may be of use is
    http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file-posted.html
    Not everyone is an expert.

  • Tree Applet

    hi there
    i would like to desgin a tree applet that goes into my web page. When someone clicks on one of the children (a file) i would like that file to open in another frame in my web page. Could anyone help me? I am not the greatest programmer in the world, but am trying my best! Cheers, Rupz

    I am usually all for helping poeple through their technical problems on this forum, but I am sorry.... Asking for people to give you the code to solve your problems is just plain lazy.
    I told you what classes you needed to use, all you have to do is search around looking for some examples on how to use those classes.
    Don't be lazy! Give it try and when what you try just doesn't work, then come back here and see if someone can help you out.
    There are a handfull of people that post very regularily on these forums that have great ideas and great tips to help people out. But it is really frustrating when people come on here looking for a full solution to their problem and seem unwilling to even try and come up with a solution on their own.
    Sorry to rant.
    Bryan

  • Can you populate an ADF Tree using Just In Time ?

    The application that I am currently working on requires a navigator.
    This navigator will be a tree structure.
    I have developed a prototype using standard Java Swing components - a JTree. The JTree is populated JIT (Just in Time), i.e. when a user clicks to expand a node the relevant database package is called to populate that branch of the tree. This process continues until the JTree has been expanded so that all of it's leaf nodes are displayed.
    This works perfectly well in Swing, is it possible to acheive the same functionality using;
    a) ADF Swing
    b) ADF JSF
    If so, and anyone has acheived this, I would appreciate any help/pointers/tutorials that you may have come across.
    Thanks in advance for your help
    David

    Hi,
    I think you can, but not using the default ADF tree bindings. You would have to create a custom tree model and then programmtically populate the model with data you access through ADF.
    However, I understand your requirement is lazy loading of the child nodes. I will check with development if this feature is planned and if not file an enhancement request for the tree binding.
    Frank

Maybe you are looking for

  • Looping payroll results using pnpce ldb

    hii experts, Can anybody tell me how can v loop payroll results using pnpce ldb..plz provide me the syntax...or any reference report program.

  • I love my 20GB Zen, but

    So, I love my 20GB Zen that I bought in Singapore. The charger plugs were different, but I figured I could buy a plug converter-thing when I got back to the U.S. or I could just charge through my computer using the USB (Turned out I couldn't find a s

  • Lenovo B575 screen just fades away

    New here so here goes.....I own a Lenovo B575, great piece of equipment...BUT on occasion the following happens. 1.  I am done doing what I wanted so I go to START/LOG OFF. 2.  Now I want to resume some time later so I click on my personal ICON and t

  • Upload to FTP

    Hello, I have been having difficulty and I need assistance. I created a new design for a site that is already operational. I uploaded the site created in Muse to FTP. Everything seems to be there, however when you pull the website up online it shows

  • X1Pro convering hand wriiten notes from . PDF to .doc

    Scanned hand writen notes to .PDF then opened .PDFand saved as .doc x1 Pro not convering hand writeen notes example