Show the popup when the selection is made on SelectOneChoice

Hello genius!
I'm back with another question. = D
With the help of Jdeveloper 11 g Release 1.

I'm showing a popup when a value is selected on a selectOneChoice component. I tried to use showPopupBehavior, but it looks like you can use that on a selectOneChoice... it works of course if I have a button, but I want to get rid of the button and just show popup when a selection is made on the selectOneChoice.

Suggestions, ideas?

Hello

(1) set autoSubmit = true for the SelectOneChoice element, then create a method of valueChangeListener for the selectOneChoice.
(2) in the valueChangeListener method, the popup can be demonstrated using the examples
http://www.adftips.com/2010/10/ADF-UI-popuputil-class-to-show-or-hide.html

Thank you
Nini

Tags: Java

Similar Questions

  • Show alert window when the selection is made in menu drop-down (or when the text field is filled)

    I'm a JavaScript novice writer and need help a warning window that meets the programming user selection form a menu drop-down.

    If the user selects any option except the default choice (which is just an empty space), I want an alert is displayed.  If the user is moving through this area without changing the default value, nothing should happen.

    I have a script attached to the "blur" event for the dropdown menu, but it appears each time you tab in this area, of course.  I don't know how to tell him to display the alert if and only if the user has changed the selection.

    Similarly, I have another field which is a simple text field.  If the user types anything in this area, I would like another alert window pops up.  The thing from the drop-down list seems a little more difficult, so if anyone can help me get that squared away, I can probably understand how to program the alert text field.

    In fact, it's the same code for both types of fields:

    If (event.target.value! = event.target.defaultValue) app.alert ("your message");

  • Properties tab shows 3609 files, when you select all the files it only shows the files in 1974?

    When I right click and select Properties tab it shows 3609 files, when selecting all the files to copy shows only the files of 1974?

    Hello Tony,.

    If it is certainly a big difference, I think that for most all of this is taken up by folders and subfolders which are mainly empty place holders. Have you looked at the folder with Windows Explorer? A freeware application that can help is WizTree, it provides both a performance graphics and text of what's on your hard drive (or part of it). Can be very educational. Download here: http://antibody-software.com/web/software/software/wiztree-finds-the-files-and-folders-using-the-most-disk-space-on-your-hard-drive/ .

    Let me know if this helps you.

    Kind regards

    BearPup

  • Remove/heal spot LR 5 tool does not show the selected area

    A week back, I installed LR 5 on my MBP 15 inch retina. My laptop has a great hardware to run LR5. The problem I encountered was with the remove spot/heal tool. It goes as below.

    I selected the Spot removal tool and set the mode to HEAL and then selected a box on my image. In many tutorials, I have seen that the selected area appears as a circle with white border with an arrow pointing to another circle. But in my case, its invisible all. Same problem happened when I selected CLONE mode. I am attaching a video to illustrate the issue.

    Could someone help me understand what is happening? I'm new to LR, but I like the software and want to invest time and money in it. However, these questions, I am little panic and do not know if this software is value of these investments.

    Thanks to you all.

    -NN

    Have you tried the 'H' to hide pin key?

  • How to have drop down menu in which we cannot continue until the selection is made

    Hi all

    I have a case in which I have 4 menu drop down and a button to continue, I want to make sure that a user cannot continue until the choice is made on all or at least some of the drop-down list. How can I do that.

    Not get stuck at all!  the button is "disabled" because it is what it is made also.

    That fixed, it must be "enabled".

    Hmmmm... looking at the source code we can easily see who wrote this bug in the first place.  Shhh... don't tell on me.

  • How to stop a query showing a popup when an error occurs?

    Hello

    Suppose that a user click on "New folder" and immediately clicks on "Show détail Popup" button prior to fill all the required fields in the records.
    What is happening is that a box of exception will be shown on the screen, asking the user to fill in the mandatory fields.
    However, it IS NOT stop the detail popup to display on the screen as well as the exception.
    Of course, I can set the property of the button to avoid the user to click on the Popup of detail, but sometimes it's not so easy, and I would have preferred a more general solution.

    Is it possible to say with some components in the .jspx Hey, "If an exception occurs here, do not display the context menu:
    <af:commandToolbarButton id="ctb2" icon=" " partialSubmit="true" text="Show Detail Popup"rendered="true">
             <af:showPopupBehavior align="endBefore" popupId="::p3" triggerType="click"/>  // this should only be triggered if there are no previous errors
    </af:commandToolbarButton>

    Hello

    I suggest that you change the launch of popup to use the tag showPopupBehavior to a solution based on Java that call you through the listener to action 'commandToolbarButton '.

    RichPopup popup = ... get handle to popup instance ...i
    
    f(my condition is met){
    
      RichPopup.PopupHints hints = new RichPopup.PopupHints();
      //set alignment hint options as explained here: http://jdevadf.oracle.com/adf-richclient-demo/docs/apidocs/oracle/adf/view/rich/component/rich/RichPopup.html
      hints.add(RichPopup.PopupHints.HINT_ALIGN_ID , ... the id ...)
      hints.add(RichPopup.PopupHints.HINT_ALIGN, RichPopup.PopupHints.AlignTypes.ALIGN_END_BEFORE);
      popup.show(hints)
    }
    

    This also fixes another bug in your implementation, which is that the popup is open when the mouse is clicked and enter a button on the toolbar button

    Frank

  • When I click on a link in Mail (Mac OS) Firefox opens two windows. The foreground window is still empty. The other window shows the page that made the connection. I would like to avoid having two windows open.

    Mail links open two windows. One is empty.

    This has happened

    Each time Firefox opened

    Is in the last two weeks. I had not noticed this problem before

    It is this bug:
    https://bugzilla.mozilla.org/show_bug.cgi?id=531552 - Firefox 3.6 b opens two windows opening external links

    (please do not comment in bug reports, you can vote for show your interest)

  • How to add buttons/text to the component right when the selection is made from the left pane

    Hello

    I am new to the JAVA swing development.

    I am creating an application where in the pane on the left, there is a tree Menu and in the right pane, I have a few buttons. In view of the options in the left pane, I should be able to add more buttons and or the text to the right pane.

    How to achieve this? If you guys have any example code, please post or suggest ways to accomplish.

    Thanks in advance.
    user2325986

    It seems that you declare leftPane, rightPane and different main_Frame and have too much static and final elements. Look at the code below. I put GridBagLayout to the framework for a better look.

    I don't know what you mean when you say that you only want to right panel and you want to add. Also, I think you'd be better off using CardLayout to right panel as stated jduprez

    When you want to display using code {_code_} code here {_code_} (code in parentheses without underscores) tags

    Here is a working example of what you had:

    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import javax.swing.tree.*;
    
    public class Main
    {
        public static void main(String[] args)
        {
            main_Frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            main_Frame.setVisible(true);
        }
    
        public static TestFrame main_Frame = new TestFrame();
    }
    
    class TestFrame extends JFrame
    {
        public TestFrame()
        {
            setTitle("Test Frame");
            setSize(500, 500);
            setLayout(new GridBagLayout());
    
            leftGBC = new GridBagConstraints();
            leftGBC.gridx = 0;
            leftGBC.gridy = 0;
            leftGBC.fill = leftGBC.BOTH;
            leftGBC.weightx = 10;
            leftGBC.weighty = 100;
    
            rightGBC = new GridBagConstraints();
            rightGBC.gridx = 1;
            rightGBC.gridy = 0;
            rightGBC.fill = rightGBC.BOTH;
            rightGBC.weightx = 100;
            rightGBC.weighty = 100;
    
            leftPanel = new JPanel();
            leftPane = new JScrollPane(leftPanel);
            leftPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
            leftPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    
            rightPanel = new JPanel();
            rightPane = new JScrollPane(rightPanel);
            rightPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
            rightPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    
            DefaultMutableTreeNode root = new DefaultMutableTreeNode("main_Tree");
            DefaultMutableTreeNode Branch1 = new DefaultMutableTreeNode("Branch1");
            DefaultMutableTreeNode Leaf1 = new DefaultMutableTreeNode("Leaf1");
            root.add(Branch1);
            Branch1.add(Leaf1);
            DefaultMutableTreeNode Branch2 = new DefaultMutableTreeNode("Branch2");
            DefaultMutableTreeNode Leaf2 = new DefaultMutableTreeNode("Leaf2");
            root.add(Branch2);
            Branch2.add(Leaf2);
            JTree tree = new JTree(root);
            tree.setRootVisible(true);
            tree.setShowsRootHandles(true);
            tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
    
            tree.addTreeSelectionListener(new TreeSelectionListener()
            {
                public void valueChanged(TreeSelectionEvent se)
                {
                    JTree tree = (JTree) se.getSource();
                    DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                    if (node == null) return;
                    String nodeInfo = node.toString();
    
                    if (nodeInfo.equals("Leaf1"))
                    {
                        rightPanel = new JPanel();
                        rightPanel.add(label);
                        Main.main_Frame.remove(rightPane);
                        rightPane = new JScrollPane(rightPanel);
                        rightPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
                        rightPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
                        Main.main_Frame.add(rightPane, rightGBC);
                        Main.main_Frame.validate();
                        Main.main_Frame.repaint();
                    }
    
                    if (nodeInfo.equals("Leaf2"))
                    {
                        rightPanel = new JPanel();
                        rightPanel.add(Jbt2);
                        Main.main_Frame.remove(rightPane);
                        rightPane = new JScrollPane(rightPanel);
                        rightPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
                        rightPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
                        Main.main_Frame.add(rightPane, rightGBC);
                        Main.main_Frame.validate();
                        Main.main_Frame.repaint();
                    }
                }
            });
    
            DefaultTreeCellRenderer renderer = (DefaultTreeCellRenderer) tree.getCellRenderer();
            tree.setRowHeight(30);
    
            renderer.setLeafIcon(new ImageIcon("blue-ball.gif"));
            renderer.setOpenIcon(new ImageIcon("red-ball.gif"));
            renderer.setClosedIcon(new ImageIcon("yellow-ball.gif"));
            renderer.setFont(new Font("Monospaced",Font.BOLD|Font.ITALIC,15));
            renderer.setTextNonSelectionColor(Color.blue);
            renderer.setTextSelectionColor(Color.white);
            renderer.setBackgroundNonSelectionColor(Color.white);
            renderer.setBackgroundSelectionColor(Color.gray);
            renderer.setBorderSelectionColor(Color.lightGray);
    
            leftPanel.add(tree);
    
            add(leftPane, leftGBC);
            add(rightPane, rightGBC);
        }
    
        private JPanel leftPanel;
        private JPanel rightPanel;
        private JScrollPane leftPane;
        private JScrollPane rightPane;
        private GridBagConstraints leftGBC;
        private GridBagConstraints rightGBC;
    
        private JButton Jbt1 = new JButton("Button1");
        private JButton Jbt2 = new JButton("Button2");
    
        private JLabel label = new JLabel("Enter your message below");
        private JTextArea jta = new JTextArea(10,15);
    
        private JButton Jbt3 = new JButton("Button3");
        private JButton Jbt4 = new JButton("Button4");
    }
    
  • Make a mandatory field if the selection is made in the drop-down list

    Hello

    Does anyone know how to make a field optional mandatory change based on a selection made in a drop down list?

    For example, I have a combo that has option 1-3, and I have a hidden field that is optional. When option 3 is chosen the hidden field is visible, but I also want to be required before a the form submission is possible.

    Thanks in advance for any idea!

    You can place this code in your event out of you in the drop-down list... Just change TextField1 your domain name and make sure that the language is set to JavaScript:

    If (this.selectedIndex == 2) {}

    TextField1.presence = "visible";

    TextField1.mandatory = "error";

    TextField1.mandatoryMessage = ' this field is required ".

    }

    else {}

    TextField1.presence = 'hidden ';

    TextField1.mandatory = "disabled";

    }

  • Problem to hide/show the selection list

    Hi all

    I try to hide three Select lists based on value of a select list. I use the following javascript function in the html header:

    < script >
    function Show_On_Selectlist_Value (pThis pLabel pThat, pValue) {}
    var rv is $x (pThis) .value;.
    alert (rv);
    var Elm = $x (pThat);
    var lbl = $x (pLabel);
    If (rv == pValue) {}
    html_ShowElement (pThat);
    html_ShowElement (pLabel);
    } else {}
    html_HideElement (pThat);
    html_HideElement (pLabel); }
    }
    < /script >

    Then I on the main list select form element attributes in html, the following point:

    OnChange = "Show_On_Selectlist_Value ('P2_REPORT_TYPE', 'P2_PETITION_REASON', '388 pétitions', 'L_P2_PETITION_REASON'); Show_On_Selectlist_Value ('P2_REPORT_TYPE', 'P2_STATUS', 'Traffic court referrals', 'L_P2_STATUS'); »
    which works very well. However, when I add a third item in the list Select, nothing happens, the list is not hidden or shown accordingly:
    OnChange = "Show_On_Selectlist_Value ('P2_REPORT_TYPE', 'P2_PETITION_REASON', '388 pétitions', 'L_P2_PETITION_REASON'); Show_On_Selectlist_Value ('P2_REPORT_TYPE', 'P2_STATUS', 'Traffic court referrals', 'L_P2_STATUS'); Show_On_Selectlist_Value ('P2_REPORT_TYPE', 'P2_PETITIONER_TYPE', '388 pétitions', 'L_P2_PETITIONER_TYPE'); »

    Is there a limit to the number of select list items? All ideas/advice are appreciated. Using Apex 3.0. Thank you.

    Hi Marc,

    There are several ways why something can be hidden by default when the page loads:

    1 style = "" view: no ' on the "..." Attributes"setting of the element/label
    2 - a style definition on the page that uses the ID of the element or the label of the values as the selector (for example: #P1_ITEM1 {.. style...})
    3 - javascript, which is actually what does your code

    Without being able to see your page, it is difficult to think that he can be (and there may be other options as well). Is it likely to be a STYLE tag somewhere on your page?

    Andy

  • AutoSuggestBeavior I want to show the selected id

    Hello im using JDeveloper 12 c and I want to use the autosuggestbehavior but im having the following problem:

    I have the suggestItems link to a method fills it a list SelectItem with Id and Description. The method works fine, but the question is that I don't want to present the card when I chose the value I was wondering if there is a way to store the id of the selectitem and display the description in the inputtext

    Or http://www.oracle.com/technetwork/issue-archive/2011/11-jul/o40adf-402600.html

    Or http://www.oracle.com/technetwork/developer-tools/adf/learnmore/62-autosuggestbehavior-177811.pdf

    Timo

  • Make a mandatory field if the selection is made

    Nice day.

    I'm trying to figure out how to mark a required field if a user selects an option.

    What I have.

    I was the shape of the 3 page design. On the first page, there are a number of options by selecting 1 or all 4 of the checkboxes the user can select.

    If a user selects a check box next to 2 specific options (out of many), I have a text box that must serve as justification.

    What I want to do is;

    If a user selects a checkboxes next to 1 or both of 2 specific options, I want the text box to become a required field.

    With a little luck I explained this correctly.

    Concerning

    Chomp

    Also make sure that the language drop is set to JavaScript and FormCalc

  • RH8 'Show the selected element' is no longer present in subject preview

    I use RH8 for about 6 months and during this time I have often used the button 'Display the item selected' to reread the topics before generating a manual.  This week my previews have started to come in white.  No matter what Condition creating a label Expression is defined on the subject or what view I choose in the preview window, it remains empty.  I didn't notice any other options or settings in RoboHelp himself, but I wonder if I'm missing something.

    Known issue. I've always found HR closing and re-opening it solves the problem, nothing else only if.

    The more people who report a bug or request a feature, more likely, he will be executed. Please follow this link.

    http://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform&product=38

    See www.grainge.org for creating tips and RoboHelp

  • When I choose my quick selection tool, I click and drag the first time, and he adds (my selection). BUT if I let go of the mouse button and try to select more it goes to Negative (-) and removes all selections I made and won't allow me not one

    When I choose my quick selection tool, I click and drag the first time, and he adds (my selection). BUT if I let go the mouse button and try to select it goes to Negative (-) and removes all the selections I made and not will not let me add again. I never had this problem before, you usually need to hold down the Alt (or Option MAC) to subtract from selections. No one knows what happened or how to fix this problem, maybe a setting I accidentally hit? Thanks for your suggestions! :))

    Look at the options of quick selection - particularly the four icons on the left.

  • Show the grid in the os 5

    Hi, I work with OS 5 and how I can create images grid view? any example?

    What part of it you are having problems with?  Take out the images?  Sizing of the images?  Image placement?  Detect images that are selected?  Showing the selected images?

    You need to have a more detailed question to get a useful answer.

    I suspect you are going to have a problem of image placement, in which case this should help:

    http://supportforums.BlackBerry.com/T5/Java-development/create-a-rich-UI-layout-with-TableLayoutMana...

Maybe you are looking for