Layout issue with af:tree component

I am using af:tree component but I am finding layout issue with it. I have a requirement where in I need the tree to stretch to the available space but a horizontal and a vertical scrollbar comes up automatically. Is there a way to handle this issue?

User, without your jdev version it's hard to help.
Have you embedded the tree component in a stretch layout?
Timo

Similar Messages

  • Issue with af:tree component

    Hi All,
    I am using JDev 11.1.1.6
    I am creating a tree component with collection model.I want to provide different action to each node,so I have defined an action attribute in the bean
    which I set in the constructor as shown below
    TestTree node1 = new TestTree("node1", "#{TreeBean.action1}");
    Is this the correct approach..This gives me "method not found " error when I click on the node.
    Below is the code for tree component :
    <af:tree value="#{TreeBean.model}" id="t1" var="node"
    styleClass="AFStretchWidth" inlineStyle="height:600.0px;">
    <f:facet name="nodeStamp">
    <af:commandLink text="#{node.label}" id="cl1" immediate="true"
    actionListener="#{node.action}"/>
    </f:facet>
    <f:facet name="pathStamp"/>
    </af:tree>

    Hi Vinay,
    UseCase :
    I want a tree showing navigation links . these navigation links will be used to open a new page in panelTabbed Layout.

  • Browser specific Issue with af:fileDownloadActionListener/ component.

    Hi all,
    We are facing an issue with <af:fileDownloadActionListener/> component.
    The issue is that when we download a particular file to the local system/machine, after downloading the file using <af:fileDownloadActionListener/>, none of the actions/links/button work on the page thereafter. We have to do a browser refresh or switch the URL.
    After doing some investigation, it is looking like a browser specific issue, as this is reproducible only on chrome but not on firefox or IE.
    The UI component used is <af:fileDownloadActionListener/> component. Below is the snippet of the code. Is there anything to be specified for af:fileDownloadActionListener?
    <f:facet name="buttonBar">
    <af:panelGroupLayout partialTriggers="expPoll expProgess" id="gsexppgl11">
    <af:commandButton text="#{uib_o_w_w_r_WebCenter.LABEL_DOWNLOAD}"
    shortDesc="#{uib_o_w_w_r_WebCenter.LABEL_DOWNLOAD}"
    id="expClientp"
    disabled="#{!pageFlowScope.o_w_w_i_v_b_l_WebCenterExportBean.showExportButtons}">
    <af:fileDownloadActionListener filename="#{pageFlowScope.o_w_w_i_v_b_l_WebCenterExportBean.fileName}"
    contentType="application/force-download; charset=utf-8"
    method="#{pageFlowScope.o_w_w_i_v_b_l_WebCenterExportBean.dumpOAROnClient}"/>
    </af:commandButton>
    </af:panelGroupLayout>
    </f:facet>
    Anyone has faced this issue before? Is this a known issue?
    Thanks,
    Ankush

    Jdveloper version is 11g. But we saw this issue with 12c as well.
    I have reproduced this in a standalone application as well. I had a page on which I just had a button attached to the file download component. And I faced the similar situation - works fine on IE/FF but causing issues on chrome/safari.

  • [svn:osmf:] 10644: fixed some layout issues with the MediaPlayerWrapper.

    Revision: 10644
    Author:   [email protected]
    Date:     2009-09-28 09:36:33 -0700 (Mon, 28 Sep 2009)
    Log Message:
    fixed some layout issues with the MediaPlayerWrapper.
    Modified Paths:
        osmf/trunk/apps/samples/framework/MediaPlayer/src/com/adobe/strobe/players/MediaPlayerWra pper.as
        osmf/trunk/apps/samples/framework/MetadataSample/src/MetadataSample.mxml
    Property Changed:
        osmf/trunk/libs/VAST/

    Hi Chanh
    I have not come upto the level of testing the file generated with IRS.  Will keep you posted what happens there.
    Shannon,
    Apparently the new version of 1546868 fixes the issue for box number 7.  But if the amounts are huge in box numbers 1 or 3 or 15a (they use these in my client) then the amount overflows to the nearby box.  So we have again opened an issue again with SAP & will keep you posted withwhat SAP comes up with.
    Thanks
    Regards
    Morgan

  • How to build a form with a tree component

    Hi, i'd like to know if it's posssible to build a form with
    the Flash 8 Tree component.
    My menu looks like a tree but the childnodes of this tree are
    some form criteria that you can aditionate and post to a serveur.
    I try to use the accordeon menu, and it works but my menu
    must have dynamic heigth, and open all the boxes like the tree
    component...
    I'm in a hole... please healp me...
    Thinks

    Sans,
    I am no Apex expert, but with a situation as "complex" as yours, have you thought about creating a VIEW that joins these 7/8 tables, placing an INSTEAD OF trigger on that view to do all the business logic in the database, and base your application on the view?
    This is the "thick-database" approach that has been gaining momentum of late. The idea is to put your business logic in the database wherever possible, and let the application (Form, Apex, J2EE, whatever) concentrate on UI issues,

  • Issue With ADF Tree Expand/Collapse

    Hi All,
    I have a customer who is having issues using the af:tree component on a deployed application. When he tries to expand or collapse a node of the tree, the icon just blinks. This is occurring not only on our application, but also the Oracle ADF Rich Client Demo on http://jdevadf.oracle.com/adf-richclient-demo/faces/components/tree.jspx. He is using Internet Explorer v7.0.5730.13. As far as I can tell, our browser settings are identical, but I can use the tree without a problem.
    Any ideas as to what the problem could be?
    Thanks,
    Brad

    Unfortunately, Internet Explorer is the only browser that is authorized to run on his computer.
    Do you know of any specific IE settings that would cause the af:tree not to work?

  • Issue with "firstRecord" Business Component method of JAVA Data bean API.

    Hi,
    Following is my use-case scenario:
    I have to add or associate child MVG business component (CUT_Address)
    with the parent business component (Account) using JAVA Data bean API.
    My requirement is: first to check whether child business component(i.e. CUT_address) exists. If it exists then associate it with parent business component (Account)
    otherwise create new CUT_address and associate it with account.
    Code (using JAVA Data bean APIs) Goes as follows:
    SiebelBusObject sBusObj = connBean.getBusObject("Account");
    parentBusComp = sBusObj.getBusComp("Account");
    SiebelBusComp parentBusComp;
    SiebelBusComp childBusComp;
    // retrieve required account.. Please assume Account1 exists
    parentBusComp.activateField("Name");
    parentBusComp.clearToQuery();
    parentBusComp.setSearchSpec("Name", "Account1");
    sBusComp.executeQuery2(true, true);
    sBusComp.firstRecord();
    Counter = 0;
    while (counter < Number_Of_Child_Records_To_Insert)
    childBusComp = parentBusComp.getMVGBusComp("City");
    associatedChildBusComp = childBusComp.getAssocBusComp();
    childBusComp.activateField("City");
    childBusComp.clearToQuery();
    childBusComp.setSearchSpec("City", Vector_of_city[counter]);
    sBusComp.executeQuery2(true, true);
    if( sBusComp.firstRecord() )
    // Child already exist and do processing accordingly
    else
    // Child does not exist and do processing accordingly
    childBusComp.release();
    childBusComp = null;
    associatedChildBusComp.release();
    associatedChildBusComp=null;
    Now the issue with this code is: For the first iteration, SbusComp.firstRecord returns 0 if records does not exist. However from the second iteration, SbusComp.firstRecord returns 1 even if there is no record matching the search specification.
    Any input towards the issue is highly appreciable.
    Thanks,
    Rohit.

    Setting the view mode to "AllView" helped.
    Thanks for the lead!
    In the end, I also had to invoke the business component method SetAdminMode with "true" as the argument so that I could also modify the records from my script.

  • Issue with af:selectOneChoice component

    Hi All,
    I am facing issue when using the selectOneChoice components in the below scenario
    I have a page fragments, lets say it as MainPage.jsff, where records are shown in table. On selecting a record and pressing the update button the user moves to EditPage.jsff where the record is shown in editable mode. The MainPage.jsff and EditPage.jsff are based on the same View Object Instance. The EditPage.jsff contains 4 fields,
    field1 - Non Editable
    field2 - Non Editable
    field3 - Editable - selectOneChoice - dependent on field1 and field2. Achieved by setting the bind values in the View Accessors.
    field4 - Editable - selectOneChoice -dependent on field1, field2, field3. Achieved by setting the bind values in the View Accessors.
    Test Case: -
    User selects a record and clicks the edit button, all the fields - fields1, field2, field3, field4, fetch the correct values for the record. So far so good.
    Now, the user navigates back to MainPage.jsff and selects another record and clicks on the update button. This time the values of the field1 and field2 are proper but the values of field3 and field4 which are editable and displayed in selectOneChoice component display some other value with select item of the list containing only one item. Is there some caching issue with the selectOneChoice components which is creating the issue?
    When i do a browser refresh at this stage, the values in the fields - field3 and field4 are automatically set to correct value.
    Also, when i drop field3 and field4 from the view object as simple <af:outputText> the values are shown with correct values.
    Is there anything which i am missing?
    Thanks,
    Tarun
    P.S Though the page contain other components i have narrowed down the test case and considered only the components with the issue.

    Hi Tarun.
    I think selectOneChoices are not refresh try in your EditPage.jsff button ActionListner with fillowing way with partial trigger
    Craete binding attribute for two selectOneChoice and then
    YourBindUIComponent.resetValue();
    AdfFacesContext adfFacesCtx = AdfFacesContext.getCurrentInstance();
    adfFacesCtx.addPartialTarget(YourBindUIComponent);

  • Issue with af:tree

    The af:tree element always tries to display a node as if it has children, even if its child List is of size 0. The result is that all nodes appear as expandable folders and when you expand on a node that has no children you get a vertical line leading to nothing. Clearly this isn’t desirable. This behavior is seen even when using your packaged sample code as shown below:
    public class Person
    public Person(String name)
    _name = name;
    public String getName()
    return _name;
    public List getKids()
    return _kids;
    private final String _name;
    private final List _kids = new ArrayList();
    You can construct a tree by:
    Person john = new Person("John Smith");
    Person kim = new Person("Kim Smith");
    Person tom = new Person("Tom Smith");
    Person ira = new Person("Ira Wickrememsinghe");
    Person mallika = new Person("Mallika Wickremesinghe");
    john.getKids().add(kim);
    john.getKids().add(tom);
    ira.getKids().add(mallika);
    List people = new ArrayList();
    people.add(john);
    people.add(ira);
    Now you can construct a TreeModel by:
    TreeModel model = new ChildPropertyTreeModel(people, "kids");

    Hi,
    Even I have the same issue. How can I get it right in ADF Faces tree component.
    Thanks,
    Ankit

  • Error in drag and drop with a Tree component

    Hello, everybody.
    I'm doing a drag and drop with two trees.
    But, when I drag from a tree to another show this error:
    "oracle.job.RowNotFoundException:JBO25020: View line of oracle.jbo.Key[4.4] key not found in ViewTreeNodeRepository13_71."
    Besides that, in my property SelectionListerner, when I have this line: "#{bindings.TreeNodeRepository.treeModel.makeCurrent}" there is a warning that says: "Reference makeCurrent not found".
    Anyone can help me?
    Thanks!

    Hi,
    +Besides that, in my property SelectionListerner, when I have this line: "#{bindings.TreeNodeRepository.treeModel.makeCurrent}" there is a warning that says: "Reference makeCurrent not found".+
    Don't worry, its a designtime warning because the EL cannot be resolved. MakeCurrent is a method on the FacesCtrl binding equivalent to ADF, which is applied at runtime and not available at design time
    +But, when I drag from a tree to another show this error: "oracle.job.RowNotFoundException:JBO25020: View line of oracle.jbo.Key[4.4] key not found in ViewTreeNodeRepository13_71."+
    In drag and drop, ADF Faces performs the drag. However, the rest of the drop handling is up to the developer. Without any more information of what yur drop handler is doing, this question cannot be answered
    Frank

  • Issue with ADF Tree Table

    Hi,
    I have the following requirement where i need to display a tree table. Here is how the initial implementation is:
    I have created the read only view for : ManagersVO > PoolsVO > MachinesVO. Where 'MachinesVO' is the destination view. And created view links between ManagersVO & PoolsVO using ManagerId and PoolsVO & MachinesVO using PoolId.
    And using this implementation, successfully created tree table on the UI. Now we got an enhancement for this:
    i.e., MachinesVO should return list of machines as per user logs in. i.e., we have 4 different roles. 'Super Admin', 'Sys Admin', 'App Admin', 'End User'. The default query for MachinesVO is for 'Super Admin'. The query for other user roles is different except the SELECT statement.
    The requirement is to dynamically change the query of MachinesVO based on user logs in and display the tree table accordingly. To implement the same i have tried using setQuery() operation on 'MachinesVO' which results with the following error:
    JBO-26016: InvalidOperException
    Cause: You cannot set customer query (calling setQuery()) on a view object if it is the detail view object in a master detail view link.
    Action: Do not call setQuery() if the view object is a detail.
    Can one suggest me a best solution to implement this.
    Thanks & Regards,
    Kiran

    Hi Navaneetha Krishnan,
    Here is how i implemented based on your comments. As i have tree table based 3 different VO's, created the following method at middle view(i.e., PoolsVO).
    1.Tree Model hierarchy
    ManagersVO > PoolsVO > MachinesVO
    I actually want to filter the data at Machines level. Hence wrote a method at PoolsVOImpls and exposed it in the PoolsVO client interface. Here is the code that i have placed in the PoolVOImpl
    public class PoolsVOImpl extends ViewObjectImpl implements PoolsVO{
         * This is the default constructor (do not remove).
        public PoolsVOImpl () {
      public void filterMachinesDataByUserRole(String userRole,String vzId){
        Row row = getCurrentRow();
        String query = "";
        if(row != null){
          RowSet rowSet = (RowSet)row.getAttribute("MachinesVO");
          if(rowSet != null){
            MachinesVOImpl machinesVOImpl = (MachinesVOImpl)rowSet.getViewObject();
            if(userRole.equalsIgnoreCase("SYS ADMIN")){
                    machinesVOImpl .setWhereClause(query related to sysadmin);
             //Similarly for other user roles.
             executeQuery();
    }And this piece of code needs to be executed before the jsff(which has the tree table) renders. Hence, i created a this methodAction as a default activity in the respective taskflow where the jsff is placed. Once this method get executed, the page should render the machines specific to the user.
    Here is the issue: getCurrentRow() method call is returning always NULL.
    Please correct me if i'm doing something wrong. I do tried the above mentioned approach by creating the method at '*ManagersVOImpl*' level too. Still the same issue.
    Thanks & Regards,
    Kiran

  • Issue with af:tree's visible=false on IE

    Hello,
    I have an ADF page containing two af:tree components. For both rendered is set to true and visibility is set to false. For both the trees height has been set to 500px. Based on selection criteria either of the two trees has to be made visible. No issues on Firefox. However on IE, both the trees are occupying space even though visibility is set to false. When I try to show the second tree, it shows up down below after 500px of white space. So, even though first tree is not displayed, it still occupies the space. Please let me know the solution.
    Thanks,
    Lalitha.

    Hi,
    sounds like a bug to me. You can try an af:switcher component, though it only shows one tree at a time then
    Frank

  • Issues with interactivity between component states and page states

    Hi there, I recently downloaded the trial of Catalyst 5.5 and am encountering the following problem:-
    I have many screens in my application and am attempting to get around the 20 state limit by creating custom components that contain multiple states that can be used as screens. So, I have created button links between the component states which work fine but have also created button links to and from the standard states of the application, which dont work upon running/publishing. I'm not quite sure whats wrong here as the button commands are pointing to the right place, i.e. they are pointing firstly to the specific custom component and then the state within the component, but its just not working.
    Is this a trial issue or something deeper?
    I really hope someone can help as apart from this issue I have been very happy with the application but if I can not find a solution theres no point in purchasing it.
    Cheers.

    Ive had the same problem. Im trying to create an interactive e-book but im having problmes with the limit of states. I have now worked out that i have to create custom components to create a sub-state but im finding it difficult to go between sub states. Help anyone?

  • Layout issue with Crystal Grouping

    Dear all,
    I have created a report with Graph and the records on the group level. The data and graph is showing perfectly fine however the problem is the layout.
    Right after the graph, data starts to show up, which means, the data adjusts itself either on page 1 or 2 by itself. That makes the report look really bad because half of the data is on the first page and half is on the second page.
    I have looked at the section expert options but did not find where I could say "Start section Group1b from new page".
    Could someone please guide me to the right place?
    here is how report shows up
    Page1
    Graph
    Data
    Data
    Data
    Page 2
    Data
    Data
    Data
    What I would like it to do is
    Page1
    Graph
    Page2
    Data
    Data
    Data
    Data
    Data
    The Group Footer is divided from Group 1a to Group 1p.
    Regards
    Jehanzeb

    I think I answered my own question while typing the question.
    I placed the graph on the group header and kept the footer for the data and clicked on Keep group together.
    It worked like a charm
    Regards

  • VBOX Layout issue with offset of a few pixels for the 2nd and 3rd components.

    The VBox has 2 components, on clicking the toggle label on the left,
    one component is hidden and the other is made visible.
    How does one get rid of the padding at the top when the
    2nd component is displayed.
    At the end of the script are two images with one showing the small padding.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
              <fx:Script>
                        <![CDATA[
          protected function lblSearch_clickHandler(event:MouseEvent):void
              // TODO Auto-generated method stub
              _Debug("Inside "+functionName());
              if(tabnavDetails.visible == true) {
              tabnavDetails.visible = false;
              tabnavSearchDetails.height = tabnavDetails.height;
              tabnavSearchDetails.width = tabnavDetails.width;
              tabnavDetails.height = 0;
              tabnavDetails.width = 0;
              tabnavSearchDetails.visible = true;
              } else if(tabnavSearchDetails. visible = true) {
              tabnavSearchDetails.visible = false;
              tabnavDetails.height = tabnavSearchDetails.height;
              tabnavDetails.width = tabnavSearchDetails.width;
              tabnavSearchDetails.height = 0;
              tabnavSearchDetails.width = 0;
              tabnavDetails.visible = true;
                        ]]>
              </fx:Script>
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
              <mx:HBox height="100%" width="100%">
                        <s:Label id="lblSearch" name="lblSearch" buttonMode="true" text="Toggle" color="#2133E4" height="5%" paddingTop="8" click="lblSearch_clickHandler(event)"/>
                        <mx:VBox id="vboxMainBody" name="vboxMainBody" width="80%" height="95%" borderColor="Black"
                                             borderStyle="solid" borderVisible="true" focusColor="#FAFAFA" >
                                  <mx:TabNavigator id="tabnavDetails" name="tabnavDetails" visible="true" borderVisible="true" width="100%" height="100%">
                                            <s:NavigatorContent width="100%" height="100%" label="Media Details" >
                                            </s:NavigatorContent>
                                            <s:NavigatorContent width="100%" height="100%" label="Location and Eyeballs">
                                            </s:NavigatorContent>
                                  </mx:TabNavigator>
                                  <mx:TabNavigator id="tabnavSearchDetails" name="tabnavSearchDetails" visible="false" borderVisible="true" width="0%" height="0%" paddingTop="0">
                                            <s:NavigatorContent width="100%" height="100%" label="Search Details" >
                                            </s:NavigatorContent>
                                            <s:NavigatorContent width="100%" height="100%" label="Location and Eyeballs">
                                            </s:NavigatorContent>
                                  </mx:TabNavigator>
                        </mx:VBox>
              </mx:HBox>
    </s:Application>

    Thank you very much. With so many parameters around and being new to flex, this is not easy. Spent an hour or so and then
    decided to ask for help.
    Appreciate it.
    -Jumroo

Maybe you are looking for

  • FM for IBase Warranty Updating

    Hi, Is there any Function Module available for updating the Warranty informaiton for the Equipment Master. On the Initial screen of IB52 user will be entering the Object ID which is nothing but the equipment no. Is there a FM availbale for updating t

  • The message output is not English. How to correct it?

    I install Oracle 8.1.7 on my Linux machine. I add additional character set, Chinese. Some system message outputs are Chinese. How can I change the configuration, and let the system message become English.

  • RunInstaller SIGSEGV

    Can someone help me? I' trying to install Oracle 8.1.6 client software on a RedHat 7.0 machine. This machine had it's display exported to another machine but when I start runInstaller I get the following error: Initializing Java Virtual Machine from

  • Alphabetizing route in Teststand in switching tab

    Is there any way to alphabetize the routes under "Routes to Connect" drop down box under the switching tab (of the step properties)? Currently I'm using Teststand 3.5 and some of the routes are alphabetized and some aren't. Thanks.

  • Firefox won't work with Snow Leopard...

    I recently upgraded to the 10.6 OS and then downloaded firefox because I need it for my school's Web site and I can't run it-- any ideas? THANKS!