The ADF tree fades after adding a button after the tag from the tree of the ADF

I have a tree ADF that will have a few Groups (parent) and issues (child), it displays the content properly, now I have to add a button at the end of the page, so when I added a button on the page is shrunk and I see two bars vertical and horizontal scrolling for the part Questions and groups. but I want the content to be displayed correctly, and at the end the button should available.

I tried width ADF Stretch and addition of the tree and the key to all the different types of components, but they did not work.

Can you please suggest me a way to do this?

The jsp page looks like this:

< af:form >
< af:tree - >
< f: facet name = "nodeStamp" >

< af:outputText value = "#{node." GrpDesc}"id ="ot1">

< af:outputText value = "#{node." QstnDesc}"id ="ot2">


<!- and I have a few components of selectOneRadio here, which will be displayed for each question >

< / af:tree >

<! Here, I added a button and I have actions defined for it >

< text af:commandButton = "save and continue".
ID = "cb2" / >

< / af:form >






Thank you
Jean Lou

Published by: user12217808 on April 27, 2012 04:55

Before adding a status bar button, you will need to place a toolbar item.

PanelCollection is a naming container. If you try to access your tree by ID, you need to add ID of panelCollection and: entry. As "tree1"-> "pc1:tree1".
I think that panelCollection itself cant' break the queried data.

Tags: Java

Similar Questions

  • Adding static button in a drop-down list

    Hi all

    I add a list to verticalFieldManager with vertical scrolling function, and in the same crib from the bottom, I need to add a button (after clicking on the button I have to go on the other screen).

    Here, my problem is that whenever I scroll the list, the button does not scroll, it should look like the button on the top of the display to scroll and the list in the background. But whenever I scroll the list, list a scroll at the bottom of button.

    For more information, I add a screenshot, please find the attachment.

    I'd have a play with this, the thought took a little more time than I expected and there are a few "curve balls.

    In any case, here's some code that can do what you want.  There's some stuff in there, but see how you get on the revision of the code and the doc and the items I gave you to, to see if you can understand what is happening.

    Tested on OS 6.0 Simulator 9800, not on anything else.

    package mypackage;
    
    import java.util.Vector;
    
    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.ScrollChangeListener;
    import net.rim.device.api.ui.TouchEvent;
    import net.rim.device.api.ui.XYRect;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.ListField;
    import net.rim.device.api.ui.component.ListFieldCallback;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.component.Status;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    
    public class StaticButtonTestScreen extends MainScreen implements ListFieldCallback{
    
        private static int NUMBER_OF_ROWS_TO_ADD = 50;
        private static int NUMBER_OF_COLUMNS_TO_DISPLAY = 6;
    
        private Vector _listElements = new Vector();
        // We use a pretty crude method to supply the items to be displayed
        private ListField _listField;
        private int _requiredColumnWidth;
    
        StaticButtonTestScreen(){
    
            //! how wide will we make the columns?
            Font ourFont = this.getFont();
            _requiredColumnWidth = ourFont.getAdvance(" column 8 ");
            //! this example has fixed column widths.  They do not have to be.  Fixed is just simple to demonstrate.
    
            this.add(new LabelField("Above ListField", LabelField.FOCUSABLE));
            this.add(new SeparatorField());
            //! Add the ListField to a HorizontalFieldMaanger that can scroll horizontally.
            //! It is this that does the scrolling for us.
            StaticButtonManager myMan = new StaticButtonManager();
    
            //! Note the overridden methods in our ListField.
            _listField = new ListField() {
                //! OVerride layout so that you get the ListField defined the width that you want.
                protected void layout(int maxWidth, int maxHeight) {
                    int requiredWidth = Math.min(maxWidth, this.getPreferredWidth());
                    super.layout(requiredWidth, maxHeight);
                }
            };
            VerticalFieldManager vfm = new VerticalFieldManager(Manager.VERTICAL_SCROLLBAR | Manager.VERTICAL_SCROLL);
            // Put ListField in here so that it scrolls
            _listField.setCallback(this);
            _listField.setSize(NUMBER_OF_ROWS_TO_ADD);
            // setSearchable(true) so a key stroke will invoke indexOfList().  Try it
            _listField.setSearchable(true);
            for(int count = 0; count < NUMBER_OF_ROWS_TO_ADD; ++count) {
                String listItem = Integer.toString(count) + ".";
                _listElements.insertElementAt(listItem, count);
          }
            vfm.add(_listField);
            myMan.add(vfm);
            ButtonField bf = new SpecialButtonField("test");
            myMan.add(bf);
            this.add(myMan);
            this.add(new SeparatorField());
            this.add(new LabelField("Below ListField", LabelField.FOCUSABLE));
        }
    
        // Following methods are required by the ListFieldCallback interface
    
        public void drawListRow(ListField listField, Graphics graphics, int index, int y, int width) {
    
            int columnWidth = width/NUMBER_OF_COLUMNS_TO_DISPLAY;
            //! Use the width that we have, not the width we requested.
            //! There is a chance that they might be different, though I suspect this would only
            //! be seen during development when perhaps changes have not be made consistently. 
    
            int xpos = 0;
    
            // First column test data supplied from program
            String suppliedData = (String) this.get(listField, index);
            graphics.setColor(Color.BLACK);
            graphics.drawText(suppliedData, xpos, y);
            xpos +=  columnWidth;
    
            // Dummy up the other columns.....
            graphics.setColor(Color.RED);
            for ( int i = 1; i < NUMBER_OF_COLUMNS_TO_DISPLAY; i++ ) {
                graphics.drawText("c" + Integer.toString(i), xpos, y);
                xpos +=  columnWidth;
            }
    
        }
    
        public Object get(ListField listField, int index) {
             return _listElements.elementAt(index);
        }
    
        //! In theory, the "framework" can call this, so it should return the same
        //! value as the overridden getPreferredWidth().  But my testing suggests this is
        //! is actually never called.  But for consistency, set it correctly!
        public int getPreferredWidth(ListField litfield) {
            return _requiredColumnWidth * NUMBER_OF_COLUMNS_TO_DISPLAY;
        }
    
        // People don't know how to use this, so I'm coding this up as an example
        // In the sample code you can use the digits to find things...
        public int indexOfList(ListField listField, String prefix, int start) {
            // Search from where we currently are forward.
            for ( int i = start; i < _listElements.size(); i++ ) {
                String element = (String) this.get(listField, i);
                if ( element != null && prefix != null ) {
                    // Just being careful
                    if ( element.startsWith(prefix) ) {
                        return i;
                    }
                }
            }
            // Not found, search from beginning to where we are currently
            for ( int i = 0; i < start; i++ ) {
                String element = (String) this.get(listField, i);
                if ( element != null && prefix != null ) {
                    // Just being careful
                    if ( element.startsWith(prefix) ) {
                        return i;
                    }
                }
            }
            // Didn't find it, don't move....
            return start;
        }
    
    // Special Manager so that we can overlay the Fields
    // and because the standard optimised paint does not
    // cope with this, we need to invalidate() the Field on scroll to get
    // it repainted.
    
    // We also have a bit of work around
    
    class StaticButtonManager extends Manager implements ScrollChangeListener {
        // Implement ScrollChangeListener so tha on a scroll, we repaint
        // because the default action is optimised and does not cope
        // with the overlaid Fields.
        boolean scrollListenerSet = false;
        SpecialButtonField bf = null;
        XYRect ourExtent = new XYRect();
        public StaticButtonManager() {
            super(Manager.NO_VERTICAL_SCROLL | Manager.USE_ALL_HEIGHT);
        }
        // Override paintBackground just so we can see the extent of this Manager
        // Not necessary, just done to make it easier to see.
        public void paintBackground(Graphics g) {
            int currentBackgroundColor = g.getBackgroundColor();
            try {
                g.setBackgroundColor(0X00CCCCCC);
                g.clear();
            } finally {
                g.setBackgroundColor(currentBackgroundColor);
            }
        }
        // Only expect two Fields
        // 1) A VFM which will scroll to handle the ListField
        // 2) A button that we will stuck at the bottom right
        protected void sublayout(int maxWidth, int maxHeight) {
            maxHeight = Display.getHeight()/2;
            // Set the Height that the ListField will use when scrolling.
            if ( this.getFieldCount() != 2 ) {
                throw new RuntimeException("Incorrect number of Fields added");
            }
            VerticalFieldManager listFieldManager = (VerticalFieldManager) this.getField(0);
            if ( !scrollListenerSet ) {
                scrollListenerSet = true;
                listFieldManager.setScrollListener(this);
            }
            super.layoutChild(listFieldManager, maxWidth, maxHeight);
            super.setPositionChild(listFieldManager, 0, 0);
            if ( listFieldManager.getHeight() < maxHeight ) {
                maxHeight = listFieldManager.getHeight();
            }
            bf = (SpecialButtonField) this.getField(1);
            super.layoutChild(bf, maxWidth, maxHeight);
            super.setPositionChild(bf, maxWidth - bf.getWidth(), maxHeight - bf.getHeight());
            setExtent(maxWidth, maxHeight);
    
        }
        public void scrollChanged(Manager manager, int newHorizontalScroll, int newVerticalScroll) {
            this.invalidate(); // repaint everything....
        }
        /*
         * Might be needed, comment out code just in case
        public int getFieldAtLocation(int x, int y) {
            if ( x >= this.getWidth() - bf.getWidth() &&
                 y >= this.getHeight() - bf.getHeight() ) {
                return 1;
            }
            return super.getFieldAtLocation(x, y);
        }
        */
        // Just used to allow the user to use the trackpad to go horizontally and select the button.
        // Not really needed
        protected boolean navigationMovement(int dx, int dy, int status, int time) {
            boolean buttonInFocus = bf.isFocus();
            if ( dx > 0 && !buttonInFocus ) {
                bf.setFocus();
                return true;
            } else
            if ( dx < 0 && buttonInFocus ) {
                this.getField(0).setFocus();
                return true;
            }
            return super.navigationMovement(dx, dy, status, time);
        }
        // Because the Button keeps moving in relation t the manager
        // and the manager does not expect this,
        // We have to check the touch location ourselves
        protected boolean touchEvent(TouchEvent message) {
            int x = message.getX( 1 );
            int y = message.getY( 1 );
            getExtent(ourExtent);
            if( x < 0 || y < 0 || x > ourExtent.width || y > ourExtent.height ) {
                    // Outside the field
                    return false;
            }
            if ( x >= ourExtent.width - bf.getWidth() &&
                 y >= ourExtent.height - bf.getHeight() ) {
                bf.onClick();
                return true;
            }
            return false;
        }
    }
    // Special Button so that the Button can be clicked from the
    // Manager's touchEvent
    class SpecialButtonField extends ButtonField {
        public SpecialButtonField(String label) {
            super(label);
        }
        protected boolean navigationClick( int status, int time ) {
            onClick();
            return true;
        }
        public void onClick() {
            Status.show("Clicked: " + Integer.toString(_listField.getSelectedIndex()));
        }
    
    }
    
    }
    
  • Added clear button

    Hello

    I saw this post by John Minkjan, http://obiee101.blogspot.com/2008/08/obiee-making-clear-button.html on how to add a 'clear' button to your dashboard. I was hoping to go a step further and do so that every time a "Go" button is created, is a button 'clear '. But I'm having a little trouble.

    I found the tag used to create the text in the button 'Go', 'kmsgGFPGo '. From here, I searched for the files with that tag and found that this tag is used in the promptviewtemplates.xml. So I guess that's what the engine uses to create the guests. Did some research and found that the guests are created in an html table, so I thought I would add another column < td > < table > with my clear example of John button. Everything seemed to think it would work, but nothing has shown up on the Web page. I've tried a few things but nothing worked.

    It seemed that none of the changes I made the file has nothing. To test this, I added underscore before the name of the file and restarted the service. Of course, everything came back fine and all the guests work as expected. What it seems like it's used at all. But it was the only file I could find who used the tag "kmsgGFPGo".

    First, why didn't the guests missed when I renamed the promptviewtemplates.xml?

    Second of all, has anyone successfully done this change?

    -Joe

    Hey Joe,

    Don't know why it didn't crash, maybe it restores on the values set internally. Try a configuration with other languages. In any case maybe this post by Sunil (http://sranka.wordpress.com/2008/11/09/how-to-replace-multi-go-button-prompt-by-one/) can help you get started.

    concerning

    John
    http://obiee101.blogspot.com/

  • My CD-ROM/DVD-Rom drive & the Bison Webcam built into my laptop. Does not work after I upgraded from Vista home premium to Windows 7 Home premium.

    My readers Optiarc DVD - RW AD-7530 ATA Device DVD/CD-ROM & the Bison Webcam built into my laptop. Does not work after I upgraded from Vista home premium to Windows 7 Home premium.
    Although of course, the CD-ROM drive worked during the upgrade.
    I noticed that when I turn firstly on the laptop, the last two lines of the front entry from Windows 7 are the following.
    PXE - E6i:Media Test Failure, Check Cable
    PXE - MOF: Exit PXE Rom
    During the audit of each Properties in Device Manager devices", I learned that they both work correctly.  In the list in the printers and the @Devices the only Webcam shown is also a "USB 2.0 Camera"
    Can someone help me please?
    Best regards
    John

    Besides what abdelhak says:

    The message of PXE boot that you receive when you start your computer has nothing to do with your CD/DVD-Rom drive. Your computer uses a PXE boot method to attempt to load Windows from a location on your network. Since you do not have this configuration, it is safe to ignore it. If it slows down the startup time of your system, contact your manufacturer and ask them for instructions on how to "disable PXE Network Boot of the BIOS.

    Hope this helps,

    Thank you! Ryan Thieman
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • 15 - f305dx: after laptop waking from the stop of the screen of my hp 15-f305dx stays Dim

    OK, so it's kind of weird sny idea what would cause my HP 15-f305dx screen to dim after he wake from sleep? Could be the memory, causing this problem or should I try and reinstall the ati drivers with old ati drivers?

    It is very strange and have never seen this issue before, any info would be greatly appreciated!

    Thank you

    Robert

    Hey Sparkles1 thanks for your reply, I forgot to remove this matter from sadley. I was able to fix that pretty easy. I uninstalled the current ati drivers and reloaded an older version. That seems to have cured the problem without any other issues.

    Thanks again

    Robert

  • After having upgraded from 12 to 14 of the elements now remove 12 of my mac, and if so do I need any special software.  Note that I also use lightroom 5.

    After having upgraded from 12 to 14 of the elements now remove 12 of my mac, and if so do I need any special software.  Note that I also use lightroom 5.

    Thank you

    Just uninstall what you would like to uninstall all of the software on a Mac:

    Uninstall Mac software

  • After waking up from my mac, the wheel sync runs continuously, but not synchronize files.

    After waking up from my mac, the wheel sync runs continuously, but not synchronize files. ???

    Hello

    Please make sure that your internet connection is good.

    Try to connect on app CC and connect again https://helpx.adobe.com/creative-cloud/help/sign-in-out-activate-apps.html

    You can also view following a discussion of this question Re: Creative Cloud app sync. problem with the web application

  • I bought after effects CC from the Adobe website. The screen flashed a messaged saying "your request". I have not received an email from Adobe yet with an activation code. When I check my account it says I have no purchase. Not sure

    I bought after effects CC from the Adobe website. The screen flashed a messaged saying "your request". I have not received an email from Adobe yet with an activation code. When I check my account it says I have no purchase. Don't know what to do next.

    Hello

    Please see the following links:

    Manage your creative cloud membership

    If you still need help please contact support: contact customer service

    *Remember to stay signed with your Adobe ID ( email id used to purchase the subscription ) before accessing the link above*.

    Let us know if that helps.

    Kind regards

    BANI

  • I lose my apps apple makes such as numbers, pages, imovie, garageband etc after restoring backup from my iphone recently brought 6 s

    I lose my apps apple makes such as numbers, pages, imovie, garageband etc after restoring backup from my iphone recently brought 6 s why? I just brought a new phone and restore from backup, but after the restoration of my new devices I don't see it.and I pick up on the app store and its application to pay... its happened... there please help me anyone... Thanks in advance

    new phone iphone 6s 128 GB

    iOS 9.2.3

    Are you logged in using the same as before Apple ID? Under the "iTunes and App Store", you can check in the settings menu.

  • RALink RT3290 stops responding after waking up from hibernation, loss of connection

    RALink RT3290 802.11bgn Wi - Fi adapter (driver 5.0.37.0 25.11.2013) stops responding after waking up from hibernation, loss of connection. To recover, it must be restarted (toggle), what happens no wired connection, for example, obviously, drivers Ralink need good alarm clock a reset. Thank you in advance.

    Looks like that driver update solves the http://www.mediatek.com/en/downloads/ problem

  • After installing something from windows update my computer start Startup Repair each time and said "a hard disk problem is preventing Windows from start" and turn off.

    Hello

    After installing something from windows update (about 300 MB in size) my computer start Startup Repair each time and said "a hard disk problem is preventing Windows from start" and turns off.
    Then a window pops up saying "Startup Repair cannot repair this computer automatically.
    The details of the problem say;
    Problem event name: StartupRepairV2
    Signature of the problem 01: AutoFailover
    Signature of the problem 02: 6.0.6001.18000.6.0.6001.18000
    Signature of the 04:65537 problem
    Signature of the problem 05: unknown
    Signature of the 06 problem: BadDisk
    Signature of the 09 problem: unknown
    Signature of the 10:1168 problem

    System Restore does nothing, and all the other tools of recovery. :(

    Please help, it will be much apreciated :)
    DOM

    If you are sure that the problems began immediately after installing a Windows Update, use the free support of MS here:
    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy. If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.  MS - MVP - Elephant Boy computers - don't panic!

  • I had to reformat after an attack from windows xp repair. No sound after updates

    I had to reformat after an attack from windows xp repair.  After the installation of Windows and all of the things drivers worked very well.  After updates, no noise.  So I reformatted again, installed Windows and all the drivers except the sound.  Done all updates, and then made the hardware update for my sound card in Microsoft.  Its worked. Tested with the music of the sample, had all of the clicks et al.  Then I restarted the cpu.  Turn off its worked, the turn is heard started and stoped the half way through.  No more sounds.  I tried all the round he took back on things.  Can someone help me.  My cpu is a Dell XPS 400 Dem, card his Creative SB Audigy 2 ZS (WDM)

    I think I'll try another sound card.  You pc is quite old and components go wrong.

  • T410 - washed out colors or lines after waking up from suspend

    I have a strange problem with the display on my new Thinkpad T410. I don't know yet how to describe. Red, green and blue still exist, like black and white, but the brightness between the two levels are washed out or banded. I tried to take pictures of some color models to demonstrate.

    Most of the time, the screen works as I expect. Sometimes however (especially after waking up from his sleep?) the gray borders around things seem too bright and washed out colors. When this happens, he persists and worsens slowly over time.

    If I change the brightness of the screen from top to bottom with Fn + start/end, the effect will change randomly to each pressure, sometimes changing to something even worse, showing a lot of color, strips or almost monochrome, but then to the lesser model, but will always go wrong.

    Not affected by:

    • Change brightness
    • closing cover
    • move to the rear and projection screen
    • locking computer
    • Changing resolution
    • change refresh rate
    • change to 16-bit color
    • tapping or screen rotation

    Didn't happen since I installed the new BIOS.

  • I can receive, but not send. Error (0 x 80004003) occurred after sending photos from Picasa.

    I get the following error in WLM: 0 x 80004003 while trying to send messages.  I can receive, but not send.  Error occurred after sending photos from Picasa.

    Delete the emails in your Outbox and close Windows Live Mail. Open Windows Live Mail and send a test message to yourself. Is the problem solved?

  • BSOD after wake up from sleep/hibernate development

    Hello
    I bought the new laptop, installed fresh windows but get lots of bsod.
    All dump files are in this archive:

    https://SkyDrive.live.com/redir?RESID=F97BF575804A53F8! 107

    + 2 first file (061213-7082-01, 061413-7862-01): I go more than 15 minutes, my laptop goes to sleep, when I come back and turn it on, it shows bsod.
    + 3 following files: I checked my drivers with verifier.exe, after some tests, I find that driver bluetooth has error, it causes a bsod whenever my laptop restart (with verifier.exe). I removed this driver.
    + the last file (11481-061613-01): spent 5 minutes, she alo crashes after waking up from his sleep. The chrome is updated (Version 27.0.1453.110 m).
    More info: I install windows on the second disk (SSD).

    Hello

    I went through your minidump files and I see that you get and Stop error 0x0000007E SYSTEM_THREAD_EXCEPTION_NOT_HANDLED and this could cause due to a timeout problem in the GPU. This causes a reset which let the GPU in an inconsistent state.

    I suggest you follow the methods provided for in the given article.

    Method 1: Put the computer in a clean boot state to see if there is a software conflict as the clean boot helps eliminate software conflicts.

    http://support.Microsoft.com/kb/929135

    Note: After completing the steps in the clean boot troubleshooting, follow the steps in the link to return the computer to a Normal startupmode.

    Method 2: Update the video card drivers.

    http://Windows.Microsoft.com/en-in/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    Note: Refer to the section that says download and update a driver yourself.

    You can also install the patch that is available in the article.

    http://support.Microsoft.com/kb/983615

    For your reference: resolve stop (blue screen) errors in Windows 7

    http://Windows.Microsoft.com/en-in/Windows7/resolving-stop-blue-screen-errors-in-Windows-7

    Note: After you perform troubleshooting steps to clean boot, follow the steps in the link to start the computer to Normal startup mode.

    Important: when running chkdsk on the drive hard if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data may be lost.

    I strongly recommend to back up all your important files and folders on an external storage device before performing any type of repair operating system or upgrade.

    System Restore warning: When you use system restore to restore the computer to a previous state, the programs and updates that you have installed are removed.

    If you need help with the Windows operating system, just tell me and we will be happy to help you.

Maybe you are looking for

  • iOS 9 Icloud, why I can't see the files for backup to disk to ICloud

    My problem is on iCloud with iPhone and iPad backup and recovery. I have iOS 9.1 It is on iPad, 4th generation, WiFi and iPhone5, 12 GB of storage. Have updated my iCloud to 50 GB storage. Regularly make backup on iCloud. Recently installed the iClou

  • iconson strange desktop__

    An icon appeared in the tray, bottom right of the screen, it's a number 9 white inscription on a black background, I've tried to right and left click, but it does not do anything, and unlike other icons it doen't tell what it is when I run the cursor

  • Cannot access the Wi - Fi connection with the error: "DNS server is not responding" on Windows 7

    So, recently, I installed a new router. After restarting my modem as indicated in after connecting the router to the modem, I was surprised to see that the wireless network has been renamed to (name) 2. I continued with the installation and soon foun

  • eMachine battery won't charge

    My labtop keeps showing a red x on the screen battery the charger is plugged in but not charging how do I know if it's the battery or the charger

  • Border on the Image on the Clipboard PSE6

    I use PSE6.0 under Win7/Pro x 64.Recently when I select a portion of a photograph and use file > new > Image from the Clipboard the image that opens has a 'border not filled' in the image of the categories, I think that this phenomenon can be called