Query on ADF Tree rendering - Jdeveloper 11g

Hi,
Am facing issues with Tree component rendering. Please find details below.
Am using Jdeveloper 11g and have created data controls using plain java objects.
Issue 1:
I have a method getEmployees() which contains hierarchical data. Upon dragging this onto UI and on creating tree binding, i am able to see the tree.
However i can expand only the parent node. Upon clicking on any of the child nodes (i.e Level 1 nodes), i get a blinking icon forever.
Note that upon selecting the context menu option on root node and on selecting "Expand all", i get the complete tree in expanded format.
Can anyone suggest as to what might be the issue with node expansion here ?
Approach 2
I tried creating Treemodel programatically.
Please see snippet below:
public TreeModel getModel() throws IntrospectionException {
if (_model == null) {
model = new ChildPropertyTreeModel(instance, "children")
public boolean isContainer() {
return ((T)getRowData()).hasChildren();
return _model;
By creating tree model in this way, tree node expansion issue is resolved. But i noticed that upon clicking on node for expansion,
the getChildren() method (i.e the childProperty method) gets invoked multiple times and not once for the specifically expanded node.
Can anyone please suggest as to why this is happening/possible solution?
Thanks
Navin

Thanks for the reply. I can see the facets in the structure window and can seemingly add components there, but this is not reflected in the Design view for the page. Very strange. When the page is run, none of these components in the Accordion panel facets are displayed...
I'm using JDeveloper version 11.1.2.1.0.

Similar Messages

  • How to implement adf skins in JDeveloper 11g

    How to integrate CSS in ADF using JDeveloper 11g without Trinidad.

    Is there any particular reason for NOT wanting to use the trinidad-config.xml? Using Jdev11g, it is very easy, requires no extra jars and have no external dependencies. Also, its [better |http://technology.amis.nl/blog/4169/adf-11g-why-use-skinning-why-not-use-simple-external-css-stylesheets] to do it using skins.
    Julian.

  • Getting Blank page when i am running ADF page from jdeveloper 11.1.1.0.1

    Hi All,
    I have created new ADF page in Jdeveloper 11g. I have done the steps which are mentioned in the OTN ADF tutorial. when i am running the page, i am getting blank page in the console its throwing the below exception. pls help me.
    <Dec 23, 2008 11:12:43 AM GMT+05:30> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@beaed3 - appName: 'BrowseEditApp', name: 'BrowseEditApp-ViewController-context-root', context-path: '/BrowseEditApp-ViewController-context-root', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@1db6c8c[
    GET /BrowseEditApp-ViewController-context-root/faces/adf.task-flow?adf.tfId=orders-flow&adf.tfDoc=/WEB-INF/orders-flow.xml HTTP/1.1
    Accept: /
    Accept-Language: en-us
    UA-CPU: x86
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
    Connection: Keep-Alive
    ]] Root cause of ServletException.
    java.lang.NullPointerException
    at oracle.adfinternal.view.faces.context.RichPhaseListener.afterPhase(RichPhaseListener.java:336)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:203)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    Truncated. see log file for complete stacktrace
    can any body help me
    thanks
    Venkat

    Hi,
    hard to tell what the problem is because all that the stack trace tells us is that you are invoking a bounded taskflow from a browser. If the bounded taskflow is built with pages (not page fragments) then this should bring up the default activity.
    Frank

  • [SOLVED] Trying to get ADF Tree to show Distinct results only

    Hello,
    I am trying to make an ADF Tree in JDeveloper 10.1.3.3.0.4157.
    I have it show two levels, each level is from one column of my table.
    For example, if I had columns
    Sec_1
    1
    1
    2
    2
    and
    Sec_2
    4
    5
    6
    7
    I want it to show a tree that has
    1
    ---4
    ---5
    2
    ---6
    ---7
    But instead it shows as
    1
    ---4
    ---5
    1
    ---4
    ---5
    2
    ---6
    ---7
    2
    ---6
    ---7
    Is there any way I can fix this? I've tried changing my view objects to specify SELECT DISTINCT but that doesn't work because I need to include a primary key in each view object and the primary keys are of course already distinct.
    Sorry for the poor diagrams but I couldn't think of a better way to explain it.
    Thanks
    Message was edited by:
    TheNelson

    I guess I sould clarify a bit:
    I have a dropdown menu elsewhere on the form that chooses something from a separate column (main_column). When that is selected, the tree appears and shows the columns I mentioned. Sorry, I didn't think this other one might be relevant.
    So I have
    main_column
    a
    a
    a
    a
    b
    b
    b
    b
    Sec_1
    1
    1
    2
    2
    3
    3
    4
    4
    Sec_2
    3
    4
    5
    6
    3
    4
    5
    6
    The Master VO is for the main_view, and it then had a detail Sec_1 and in that is a detail Sec_2.
    I've made view links between all of them.
    The problem happens like I said in my above post is that the main_column (and a few others) are primary keys and need to be included. Especially main_column needs to be included in my view object because it is used in the view link with the dropdown box.
    Does that make sense? Sorry for not describing this well earlier, I was trying to simplify it.
    Basically the problem is:
    A view object needs to have a primary key
    A primary key has every value distinct
    using SELECT DISTINCT therefore selects every row.
    Message was edited by:
    TheNelson

  • ADF Query Panel with Tree Table -- Add Fields

    I created ADF Query Panel with Tree Table using JDeveloper 11G. Under Advance Search, Add Fields pull down only list the fields in the master table. My questions are,
    1) Can I search fields in detail table? If yes, how can I do it?
    2) How can I customized this pull down list? Currently it just show the entire view of master table with unnecessary id type data.
    Thanks in advance.
    Edited by: kxc on Nov 9, 2009 9:21 AM

    1) Can I search fields in detail table? If yes, how can I do it?
    Are there anyway to search the second level node?You can. But you need to evaluate if the arrangement works for you.
    I assume you have a view link from the master to detail VO.
    To do so, in your master view criteria (the one which you use in the query panel), shuttle the attributes of your detail VO (in master attributes list, you'l see the detail view link accessor - on selecting this, the detail atteributes are available to you)
    In the Add Fields, it shows as student_id AND student_name. I was unable to delete the student_id field in the view since it is PKYou can set its 'display' UI hint to 'hide' in your VO.

  • How to get multiple out parameters from a pl/sql stored procedure in ADF Jdeveloper 11g release2

    I´m trying to call from AppModuleImpl a stored procedure from my oracle DB which receives one input parameter and returns 5 out parameters. 
    I´m using jdeveloper 11g release2  ADF and I have created a java bean "ProRecallPlatesBean " with the atributes and accesors and I serialize it. just like in this article http://docs.oracle.com/cd/E24382_01/web.1112/e16182/bcadvgen.htm#sm0297
    This is my code so far:
    public ProRecallPlatesBean getCallProRecallPlates(String numPlates) {
    CallableStatement st = null;
    try {
              // 1. Define the PL/SQL block for the statement to invoke
              String stmt = "begin CTS.Pk_PreIn.proRecallPlates(?,?,?,?,?,?); end;";
              // 2. Create the CallableStatement for the PL/SQL block
              st = getDBTransaction().createCallableStatement(stmt,0);
              // 3. Register the positions and types of the OUT parameters
              st.registerOutParameter(2,Types.VARCHAR);
    st.registerOutParameter(3,Types.VARCHAR);
    st.registerOutParameter(4,Types.VARCHAR);
    st.registerOutParameter(5,Types.VARCHAR);
    st.registerOutParameter(6,Types.VARCHAR);
    // 4. Set the bind values of the IN parameters
    st.setString(1,numPlates);
    // 5. Execute the statement
    st.executeUpdate();
    // 6. Create a bean to hold the multiple return values
    ProRecallPlatesBean result = new ProRecallPlatesBean();
    // 7. Set values of properties using OUT params
    result.setSpfVal(st.getString(2));
    result.setTransportTypeVal(st.getString(3));
    result.setTransportCompanyVal(st.getString(4));
    result.setCompanyDescrVal(st.getString(5));
    result.setDGAPrint(st.getString(6));
    // 8. Return the result
    return result;
    } catch (SQLException e) {
    throw new JboException(e);
    } finally {
    if (st != null) {
    try {
    // 9. Close the JDBC CallableStatement
    st.close();
    catch (SQLException e) {}
    In Jdeveloper I went into AppModule.xml JAVA>Client Interface section and expose "getCallProRecallPlates" Then I can see "getCallProRecallPlates" in Data Controls, I drag and drop it to a JSF page, an input text component and a button are generated in order to put in there the procedure input parameter (numPlates).
    I don't know if I'm on the right track.
    When I click the button, the "result" variable is supposed to be filled with data from the stored procedure. I want each of those values to be displayed in Output text or input text adf components but I dont know how. Thank you very much in advance I´m a newbie and i'll appreciate your help!

    What version are you on?
    Works fine for me on my 11g:
    SQL> create or replace procedure testxml (clob_out out clob)
      2  is
      3     l_clob   clob;
      4     l_ctx    dbms_xmlquery.ctxhandle;
      5  begin
      6     l_ctx := dbms_xmlquery.newcontext ('select * from dual');
      7     l_clob := dbms_xmlquery.getxml (l_ctx);
      8     clob_out := l_clob;
      9     dbms_xmlquery.closecontext (l_ctx);
    10  end testxml;
    11  /
    Procedure created.
    SQL>
    SQL> variable vout clob;
    SQL>
    SQL> exec testxml (:vout)
    PL/SQL procedure successfully completed.
    SQL>
    SQL> print vout
    VOUT
    <?xml version = '1.0'?>
    <ROWSET>
       <ROW num="1">
          <DUMMY>X</DUMMY>
       </ROW>
    </ROWSET>But definitely you can optimize your proc a bit: Try
    create or replace procedure testxml (clob_out in out nocopy clob)
    is
       l_ctx    dbms_xmlquery.ctxhandle;
    begin
       l_ctx := dbms_xmlquery.newcontext ('select * from dual');
       clob_out := dbms_xmlquery.getxml (l_ctx);
       dbms_xmlquery.closecontext (l_ctx);
    end testxml;
    /

  • ADF - Multple View Objects in one ADF table - Jdeveloper 11g

    Hi,
    I'm using Jdeveloper 11g, is there a way to use multiple view objects in one ADF table? And if so, do you have an example?
    In my case the view objects are not based on a database table they were created based on an ESB wsdl, one is for person and one is for address.
    Any information or pointers you could provide would be appreciated.
    Thanks!

    Hi,
    That would be a good solution, however, I'm supposed to see if there is a way to use the VOs that were created for person and address. Even better if the solution requires little coding.
    Is it possible to combine these two VOs into a single VO to use with an ADF table or to use both of them in a single table? Or is there some other solution that would enable me to use the person and address VOs in a similar manner?
    Thanks!

  • How To create ADF Search form in JDeveloper 11g 11.1.1.0.1

    Hi,
    I am using JDeveloper 11g 11.1.1.0.1 , in which i tried creating an ADF search form that has Find and Execute Buttons.
    I created the same ADF search form using JDeveloper 11g TP3 and TP4 wherein it works fine but not in JDeveloper 11g 11.1.1.0.1.
    Scenario....
    I dragged a read only view object on to the jspx page as ADF Search Form and dragged the same as Read only table.
    After doing this if i run the application the search functionality does not happen .
    ( I click on the find button and enter the condition and then click on the execute button. records does not get filtered based on that condition specified.)
    But when the same steps is done in 11g TP3 and TP4 the search functionalty works fine.
    Can someone suggest me what is the issue.
    Is this a bug in the new release.
    regards
    vinitha

    reply is in this id
    ADF Searchform with find and execute buttons in JDev 11.1.1.0.1 studio edi.

  • How to work with Bangla in ADF (Jdeveloper 11g Release 2)

    Hi
    I am Jahid From Bangladesh. Recently I am working with ADF (Oracle Jdeveloper 11g). I am working with a project like newsroom service. I need to extract bangla and other language text from other site. So i need to work with Multiple language in ADF specially with Bangla. Can anybody help me specifically step by step. I am new in ADF just beginner.
    Thanks in advance.
    Jahid
    Analyst Programmer
    IBCS-PRIMAX (Bangladesh) Ltd.

    You application character set should be unicode
    this can help http://download.oracle.com/docs/cd/E12839_01/web.1111/b31973/af_global.htm#CHDGCAFI

  • JDeveloper 11g/ADF Faces Rich Client

    Hello,
    We are trying to decide between using JDeveloper 10.1.4 and JDeveloper 11g for developing a new application - we plan to use just the ADF Faces layer of the ADF Framework along with Spring and TopLink for other layers.
    On one hand we think that is is safer to use 10.x version of ADF Faces as it may be more stable and on the other hand we are tempted to use 11g as it provides Ajax-enabled JSF Components.
    Has anyone used ADF Faces Rich Client Framework for developing applications? Is it stable enought to be used for production-level applications?
    I would love to hear your thoughts!

    Hi,
    don't use 10.1.3.4 to develop a new application now unless you have browser constraints with your user-base.
    ADF Faces RC / 11g requires:
    FireFox 2, 3
    Internet Explorer 7.0
    Safari 3.0
    11g is a significant update and they have vastly improved/redesigned a lot of things that were difficult/complex to do in earlier versions.
    Plus the 11g user interface is way better from a users perspective.
    Brenden

  • ADF Tree 11g column 100% to fit the avilable space in af:panelCollection

    Hi All,
    I want to stretch the tree column to fit all the available space in af:panelCollection. I ve changed its InlineStyle to width:100% but its is suggesting to use StyleClass to AFStretchWidth. I tried both the options but didn't achieve desired output.
    Any hint or suggestion will be highly appreciated.
    Thanks in advance.
    Best Regards
    Bilal
    Edited by: Bilal on Oct 3, 2011 7:41 PM

    Hi All,
    I have tried various options but in vain.
    A clarification is that I have a page having ADF query panel with tree table. I don't want to show the other columns in the result. Just tree is enough to display the contents.
    I want to maximize the tree column to fit into the available space of af:panelCollection.
    Option 1. I set the styleClass to AFStretchWidth for af:column of the ADF tree. It didn't work.
    Option 2. I encapsulated af:column of the tree into the f:center facet of af:panelStretchLayout and set af:panelStretchLayout styleClass to AFStretchWidth. The af:column of the tree disappeared. No output.
    Option 3. I encapsulated af:treeTable into the f:center facet of af:panelStretchLayout. It is giving error that af:panelStretchLayout is not a valid child of af:panelCollection, so it also didn't work.
    Option 4. I encapsulated af:panelCollection into the f:center facet of af:panelStretchLayout. It also didn't work.
    Any thing I am missing ... Any other option to try out.
    Any help will be highly appreciated.
    Thanks ... Best Regards
    Bilal
    Edited by: Bilal on Oct 4, 2011 5:06 AM

  • JDev 11g (Boxer) - ADF-Tree ExpandingProblem

    Hi,
    I use the Boxer (JDev 11.1.1.0.0) Edition.
    Technology: ADF Business Components (BC), ADF Faces
    Database: Oracle XE (HR Schema)
    I have created BC for the Departments- and Employees-table.
    I drag-and-drop the DepartmentsView1 from the DataControl to the JSF-Page (in the center of a PanelStretchLayout)
    and choose Create --&gt; Trees --&gt; ADF Tree.
    In the "Edid Tree Binding"-Dialog --&gt; Tree Level Rules, I add the EmployeesView (Code below):
    &lt;af:panelStretchLayout&gt;
    bq. &lt;f:facet name="center"&gt;bq. &lt;af:tree value="#{bindings.DepartmentsView1.treeModel}" var="node"selectionListener="#bindings.DepartmentsView1.treeModel.makeCurrent}" \\ rowSelection="single"&gt; \\ &lt;f:facet name="nodeStamp"&gt; \\ &lt;af:outputText value="#{node}"/&gt; \\ &lt;/f:facet&gt; \\ &lt;/af:tree&gt;
         &lt;/f:facet&gt;
    (Fetchsize and Rangsize are default (25), the department with ID=50 has more than 25 employees)
    Problem:
    I run the page, all works fine.
    1) First I expand the department (ID=50) --&gt;works
    2) then I retract the node (ID=50) --&gt; works
    3) I expand the department (ID=50) --&gt; problem
    ADF rendered only 25 elements (the Fetchsize) and shows the Text "Daten werden abgerufen..." (Retrieving data ...)
    Has anybody the same problem, anybody an idea?
    Many thanks!

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

  • How to add adf faces in component pallete of jdeveloper 11g?

    how to add adf faces in component pallete of jdeveloper 11g?

    Hi,
    the replacement of ADF Faces HTML components in JDeveloper 11 is Trinidad. For existing applications, a migration path will be provided in JDeveloper 11 production. I wouldn't recommend configuring ADF Faces in JDeveloper 11.
    You an configure ADF Faces Components in JDeveloper 11 by :
    - Tools --> Manage Libraries
    - Create a User Library
    - select ADF Faces adf-faces-impl.jar
    - Enure the namespace is not af or afh but something different to not cnflic with teh ADF Faces RC components
    Note that adding the ADF Faces components to the component palette will not make them show in the ADF binding context menu nor will it automaticaly set up the web.xml file. The components are available as any other JSF library set
    Again, I wouldn't go this way ;-)
    Frank

  • JDeveloper 11g & ADF: supported version of svn server/client question

    Hi all,
    I would like to setup a repository for our dev team, we are coming from jdev 10g with svn server 1.3.2 and tortise svn 1.4.8. After reading through John Stegeman's ADF Development Essentials documents, I noticed this article was published back in 2008 and the supported version at that time was 1.4x. What is the current supported svn server and client (i would like to use tortise svn in conjunction with jdev plugin) version for JDeveloper 11g?
    Thanks,
    Wes

    Check out this: http://www.oracle.com/technetwork/developer-tools/jdev/index-091111.html
    For 11.1.1.4:
    Subversion 1.5, SVNKit 1.2
    Subversion 1.6 2 , SVNKit 1.3 2
    GNU CVS 1.11, CVSNT 2.5
    Amit

  • Possibility & Drawback  Using JDeveloper 11g ADF Faces with Oracle 10g DB

    We are new to ADF Faces, would like to use JDeveloper 11g ADF Faces with Oracle 10g database (Enterprise Edition). As we are new to JDeveloper 11g ADF BC, so we want to know about the Possibility & the Drawback.
    Edited by: eng.shahed on Apr 5, 2010 11:21 AM

    i dont think so any drawbacks using Jdeveloper with any database.....its a open product ... You can use it with Sybase, MySQL, Oracle etc etc..

Maybe you are looking for

  • Problem with HP Deskjet Ink Advantage 3515 printer

    Hello. First of all I would like to wish everyone a Happy New Year! I recently bought a HP Deskjet Ink Advantage 3515 printer. The printer works fine (prints, scans and copies). There is only one problem with it. It returns me an error when I'm shutt

  • Mail button erroneously indicating new mail

    My inbox is indicating there is new mail when in fact there is not. There is also a button on the dock icon indicating new mail. I have quit the program and restarted and it did not go away. Any suggestions?

  • Iphone has randomly been bricking

    For some reason my iphone on random occasions produces a black screen almost like the phone has been locked excpet no buttons work and the only way to reboot it to plug the phone into a power source. Another odd thing the phone does sometimes when it

  • Cinema4D lite to Ae - External Compositing Tag - drifting... help

    Trying to finish a job, at the last stages, everything is good to go using cinema4D lite and Ae Cineware. I've set up a couple of video boards and animations in cinema 4D lite (with external compositing tags) and back in after effects extract the cam

  • Need explanation - Toolkit

    I�m working on java images n I was not able to understand the rool of Toolkit in it, it is always used for drawing images in java applications, what does it does We do not require a toolkit in an applet