How to call support bean method when the user moves out of field of af: inputListOfValues

Hello

I use jdev 11.1.2.4.

I want to call a method of bean of support depending on the value selected in the af:inputListOfValues field.

The requirement is similar as Frank Nimphius-Oracle has shown here https://blogs.oracle.com/jdevotnharvest/entry/how_to_notify_the_server but with component input list of values.

The areas I want to call the method is

<af:inputListOfValues id="appealNameId"
                      popupTitle="Search and Select: #{bindings.AppealName.hints.label}"
                      value="#{bindings.AppealName.inputValue}"
                      label="#{bindings.AppealName.hints.label}"
                      model="#{bindings.AppealName.listOfValuesModel}"
                      required="#{bindings.AppealName.hints.mandatory}"
                      columns="#{bindings.AppealName.hints.displayWidth}"
                      shortDesc="#{bindings.AppealName.hints.tooltip}"
                      binding="#{backingBeanScope.backing_Donation.appealNameId}"
                      autoSubmit="true" clientComponent="false">
                      <f:validator binding="#{bindings.AppealName.validator}"/>
                      <af:autoSuggestBehavior suggestedItems="#{backingBeanScope.backing_Donation.onSuggestAppeal}"/>
                      <af:clientListener method="onBlurTxtField" type="blur"/>
</af:inputListOfValues>
<af:serverListener type="onBlurNotifyServer"
                   method="#{backingBeanScope.backing_Donation.onBlurNotify}"/>
                      

as you can see, af:serverListener is outside the af: inputListOfValues which is probably the reason why this isn't executing this method?

public void onBlurNotify(ClientEvent clientEvent) {
   // get a hold of the input text component
   RichSelectOneChoice inputTxt =  (RichSelectOneChoice) clientEvent.getComponent(); 
   //do some work on it here (e.g. manipulating its readOnly state)
   //…
   //Get access to the payload
    
   Map  parameters = clientEvent.getParameters();
   System.out.println("SubmittedValue = "+parameters.get("submittedValue"));
   System.out.println("LocalValue =  "+parameters.get("localValue"));
   }

I tried to put the serverListener tag inside the < af:inputListOfValues > but get error below

"Listener server is not a valid child of list of values of the entry.


any ideas please?

Thank you

As first, make sure you use a correct type for af:serverListener (Traore we are you queue in the javaScript onBlurTxtField function)

If still not working, go directly to the source code page, and put af:serverListener 'manually', as a child for af:inputListOfValues.

Because it is possible that these messages are false alarms...

Tags: Java

Similar Questions

  • How prevention JButton to actions generated when the user press down

    How prevention JButton to actions generated when the user hold down the key or the short cut
    The code below to show the question when the user keep pressing Alt O
    We want to stop the JButton to generate multi shares just a share only
    A code example shows the behavior that needs to be prevented. Keep pressing "Alt + O" and you will see that the standard ouptput will print the timestamp
    Note Please, I'm NOT interested in the mouse press which is a solution by adding a threshold (setMultiClickThreshhold (long line) on the JButton as an attribute.

     
    public class TestPanel extends JPanel
    {
    
       private JButton btn;
    
       public TestPanel()
       {
          btn = new JButton("Open");
          this.add(btn);
          registerCommand(new MyAction(), InputEvent.ALT_MASK,
                KeyEvent.VK_O, btn, btn.getText(), 0);
       }
    
       public static void registerCommand(AbstractAction action,
             int mask,
             int shortCommand,
             JComponent component,
             String actionName,
             int mnemonicIndex)
       {
          InputMap inputMap = component.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
          KeyStroke knappKombination = KeyStroke.getKeyStroke(shortCommand, mask);
    
          if ((component instanceof AbstractButton)
                && mnemonicIndex >= 0
                && mnemonicIndex < actionName.length()
                && (shortCommand >= KeyEvent.VK_A && shortCommand <= KeyEvent.VK_Z))
          {
             ((AbstractButton) component).setDisplayedMnemonicIndex(mnemonicIndex);
          }
    
          if (inputMap != null)
          {
             ActionMap actionMap = component.getActionMap();
             inputMap.put(knappKombination, actionName);
             if (actionMap != null)
             {
                actionMap.put(actionName, action);
             }
          }
       }
    
       public static class MyAction extends AbstractAction
       {
    
          /**
           * 
           */
          private static final long serialVersionUID = 1L;
    
          @Override
          public void actionPerformed(ActionEvent e)
          {
             System.out.println(System.currentTimeMillis());
    
          }
    
       }
    
       public static void main(String... args)
       {
          SwingUtilities.invokeLater(new Runnable()
          {
             public void run()
             {
                JFrame frame = new JFrame("Testing");
                JPanel panel = new TestPanel();
                frame.getContentPane().add(panel);
                frame.setPreferredSize(new Dimension(500, 500));
                frame.setMinimumSize(new Dimension(500, 500));
                frame.pack();
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                frame.setVisible(true);
             }
          });
       }
    
    }
    Published by: user12130673 on 13-feb-2013 03:01

    Use getKeyStroke (int keyCode, int modifiers, boolean onKeyRelease) hit with onKeyRelease = true instead?

  • How to create a new page when the user activates a box?

    I guess this would be a checkbox.  I am looking for a way to create a user, select Create a new page when the user runs out of space in the text box that is given.  So if possible is a way to create a new page with a text box continuous when the user selects create it a new page check box.  Thank you.

    Yes, if you create a new page in the designer of the LC (page 2) and deselect the number of minutes, so that when the form is displayed at the start, it is not an instance of the page. While the click event of the button would be:

    _page2.addInstance(true);
    

    You can design page 2 with which opposes always desired.

    Hope that helps,

    Niall

  • How to get an onChange event when the user clicks a button?

    Hello

    I'm new to APEX and have the following problem:

    Implementation:
    There are two text elements, one for the zip code and the other for the city.

    When you change the zip code, the city will be changed accordingly with the data from the database.

    I've implemented an "OnChange" in the zip code for this element.

    Problem: The on change event is executed only if the user leaves the text with a tab element or click on another piece of text.

    When it hits the "next page" button directly the city is not changed.

    Pointers for a solution please.


    Turalf

    Published by: Turalf on May 12, 2010 07:52

    Well, depends on how your button is built but, in any case, Javascript supports the onclick event on the element for each HTML.
    Model based buttons are often created as links using the indicator A, but which prevent you from adding an onclick on her event.
    In this case you must choose if you want to cancel the default action, or you prefer to perform the default action (the doSubmit in general) as well as the onclick event.
    The order of execution is
    1. the onclick event
    2. default action

    If you return false from the associated with onclick the function Manager, the default action will be canceled if you return true, he will be executed.

    Flavio

    ----
    http://oraclequirks.blogspot.com

  • How standards to enforce password complexity when the user password is chnaged

    Hello

    We currently have a function that imposes on users SQL password complexity. If we could use in some sort of logic to apply password changes the user of the Application (something equivalent to the password_verify_function in terms of database).

    Password complexity: 3 of the 4 are required - uppercase, lowercase, digital, special characters

    How do I achieve this in Ebussiness suite R12.

    Note: We do not use OAM (Oracle Access Manager) integrated with our applications.

    Please tell me an approach or is there another package or function defined where we customize according to the requirement.

    Kind regards
    Berch

    This can be implemented by using the profile options:

    How to set up password security? [564125.1 ID]

    For custom password security options, see:

    How to implement the profile (personal password access code) Option in the Oracle Applications 11i / R12 [ID 362663.1]

    Thank you
    Hussein

  • Oracle ADF 11 g: invoke managed bean method when the page resizing.

    Given the following code:
     <af:clientListener method="getElementWidth"
                                       type="propertyChange"/> 
                    <af:serverListener type="customEvent"
                                       method="#{columnSizeBean.handleRequest}"/>
    Is there a client listener that can be triggered when resizing browser window?
    Something like:
     <af:clientListener method="getElementWidth"
                                       type="[[[[something like a window resize]]]]]]"/> 
                    <af:serverListener type="customEvent"
                                       method="#{columnSizeBean.handleRequest}"/>
    NOTE:
    getElementWidth is a javascript method in my current code, while columnSizeBean is a sessionScope bean who did some calculations on the width of a table column.

    Published by: Andrei C. on May 18, 2010 05:49

    Hello

    No, it isn't. However, in this case you can use vanilla JavaScript and register to the browser DOM to receive the event notification. If you notice rceive you access the server listener you put on the af:document component. It should work

    Frank

  • How can I cancel my account when the need help page only allows me to go to forums and does no real contact for adobe?

    How can I cancel my account when the need help page only allows me to go to forums and does no real contact for adobe? How can I contact Adobe actually?

    Please contact support by calling/chat for cancellation requests and billing queries:

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    You can also check the help below document:

    https://helpx.Adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

    Please go through the Adobe - General conditions of subscription as well.

    Concerning

    Stéphane

  • Calling a function only when the State is active

    I turn to find the event just to call a function only when the status is active. In fact, I created a State to display the 'product details' click and once the system changes to this State - I have to perform a function.

    Here's the context:

    Let's say that you are on the home page where you will need to click on a product to see details. By clicking on the product, the State to view the details of the product will be activated and a variable inside the new state you will receive all the data (from the class of product). But I discovered Flex run all States at the beginning and we need to watch how declare our function to make sure that we do not have a null to a variable/object reference. Given that value is moving to the State only when the click event to occur, the process of globalization, execution of all States at the beginning will not have any value yet (for the specific product to deal with in the State of the productDetails). So I can't use creationComplete to perform a simple function like setSpecs(), where all the values (for example, width, height, circumference, diameter, price, etc.) will be instiate specific labels.

    What event to use to call a function internal once we are in the State? Just using the creationComplet and stated if he check the currentState = that I have to work on is not enough. I tried 'activate', 'show', 'enterStage' and many others, but without success. I tried to search the Internet, but it seems that this problem is not popular enough to generate sufficient results.

    But I know that it is possible in the case otherwise it will be is not logical and since Flex work very well with the event, I found the right event. It's something basic I know, but when you do not know, it seems difficult to find! ;-))

    Thanks Greg!

    I agree, this is a better method. So I'll change my SENSITIVITY to use viewStack instead of the State. But the problem persists what that, if we use the viewStack State to launch an event only when the State/viewStack is displayed on the screen.

    I found something that works very well for me: updateComplete.

    First of all, I found this before reading your information about viewStack so it worked very well for the method of the State. That I decided to do a test to viewStack and made the necessary changes to the code to reflect a viewStack navigation and make sure the updateComplete was not within my component (stateProduct.mxml). The system was not able to view the specification as the setSpecs() function was not instantiate when displayed. I added the updateComplete = "{setSpecs ()} ' and everything worked great!" So I conclude that no matter if you are using a viewStack State, the updateComplete event can be used to run or functions only when the component is displayed on the screen.

    Now, I have to make my transition between the State working with viewStack effect! ;-))

    Thanks to Greg for this useful tip!

  • How to call a second instance of the same VI?

    Hello

    I have a useful VI dealing with IO operations. To save some time, of what I would call the VI as a second instance do work at the same time. I created a sequence sub with the run option 'Use the new thread' and I called the Vi (a step of the sequence only). Execution time of the VI is about 20 seconds run Durin I called the subsequence and I carried on running my main sequence (parent). Since then 10 seconds to launch the subsequence (in the thread of sepatate I called the same VI as in the thought of subsequence the second instance will be created. However, instead of parallel work of the two instances of the same VI had to wait when mt subsequence end known call the VI th.

    So my question is, as in the topic: how to call a second instance of the VI even at the "same time"?

    Could you please tell me about the best approach to solve the problem?

    Any VI that you want to run in parallel must be paid also re-entrant, including screws.

  • How to catch the movement of return on investment when the user drags a handful of return on investment?

    Hello, I use VDM2009 with c#. I need to make some manipulations of KING and need to intercept mouse movements, but do not know what to use. For example, suppose I created a KING OvalContour and that it is a circle (width = height). I have to do 2 things: 1) when the user drags one of the 4 handles, I need to check what handle is moved so that I can drag a few adjacent programmatically so that the circle is a circle and does not become an oval.

    (2) when the user clicks/behind the center of the circle, I need prevent the update so that the circle does not move the return on investment. (It would be even better if there was a way to disable the movement of the circle and allow the scale.) I don't know what to use to accomplish this behavior and do not know how to retrieve the KING handles about which is slipped. Any help would be very appreciated. Thank you, Neville

    Hello Ben,

    Thanks again for your help.  I looked up the definitions for the ROILeft, etc., in the reference VB help as you suggest.  While many objects is similar in setting/name, it seems that these objects (ROILeft, etc.) are those who are not easy to find how to use in the c# version.  But thanks for pointing me to the help file in VB Ref.  I wish, in there wasn't one for c#... I can't understand how to search effectively in the Visual c# help file that is integrated into Visual Studio.

    Thanks for your suggestion about the return on investment.  It makes sense, and I'll keep it in mind.

    In the meantime, I found a solution to my problem.  I use c# function public bool PreFilterMessage (ref Message objMessage) for prefilter mousedown and mousemove event messages.  Once I found one, I check if the cursor is on a part of the KING that I care.  If I want to do something special, I'm doing it right here.  If I want to keep the normal behavior of the KING OR on mousedown and mousemove, I trash the message.

    It's a total pain, but it seems that functions NOR are not put in place to do this kind of things in an elegant way.  Thanks again for your help!

    Neville

  • How can I set up a structure of the event that sends text when the user presses the button "Return"?

    I'm new to programming of the Structure of the event.  I am trying a program which causes the content of a control to the string to be processed when the user presses the button back in after typing in the control of the chain.  I think (I hope!) that it is simple, I just can't understand how do.

    Basically, I would take the attached VI and change so that the user can send the value of control 'String In' to the indicator "String Out" either by pressing the 'Return' key or press the button 'send string. '

    Any help would be greatly appreciated.

    This example has nothing to do with the RETURN key specifically.  It fires all simply whenever the value of the control is changed.  If you click outside the text box or on another still controls the value changes and still the event is raised.  This is often the desired so if it works in your application, you good to go.

    You CAN ONLY answer a particular key if you wish.  Set your event to meet 'This VI' > key down.  Then, read the proposal Vcle on the left side of the structure of the event and compare it to the RETURN (for example).  The Boolean result of the comparison gets connected to a structure to deal with your code to run inside.  You can also wire Vcle directly to a case structure and execute different code based on which key was pressed last.

  • How to avoid the minimizin of the screen when the user down ups slide

    How to avoid the minimizin of the screen when the user ups the down slide.

    Hello

    I guess that not possible because this is a feature of the system. Be able to substitute the blow to the gesture of bottom up would mean for combat when a user can switch to another application. It is not something that an application must be able to do it at all.

  • How to know the State when the user try to truningon wifi.

    According to the requirement of our society that we prevent user BB uses WiFi in the Office that I must turn on and off the WiFi blackberry incoming SMS. I am able to turn off if the wifi is enabled by this code.

    if ((wafs & RadioInfo.WAF_WLAN) != 0)
            {
                Radio.deactivateWAFs(RadioInfo.WAF_WLAN);
            }
    

    But my question is how do I know when the user attempts to activate the WiFi. while I can put restriction.

    I had tried

    RadioInfo.STATE_TURNING_ON
    

    But I'm not able to achieve that the RadioInfo.STATE_TURNING_ON field is obsolete. so give me something to do.

    http://www.BlackBerry.com/developers/docs/7.1.0api/NET/rim/device/API/system/WLANConnectionListener...

  • How to limit navigation directly via the URL when the user tries to type the page number and access this page in ORACLE APEX 4.2

    Hi all

    I developed an application where I have 6 pages and 5 tabs and based on the user role I posted the tabs for the user to access these pages.

    But when the user, who doesn't have access to the particular page (say, page 2), but still the user can navigate to it directly by typing the page number in the URL.

    I want to avoid such scenarios.

    eg: http://Apex.Oracle.com/f?p=110:2 , when the user type this in the address bar, it navigates the user to this page even if this particular user does not have access to this page.

    How to prevent the user to navigate through the URL, if the user tries to navigate directly through URLS rather than tabs, I have to give the error message.

    Version: ORACLE APEX 4.2

    Thank you

    Good reading this recent post

    Re: Authentication at the Page level

    All links to a page and the page itself must be secure.

    You can also consider the protection of session state to prevent tampering of the URL.

  • How to make only two columns as editable in five online when the user clicks a line using adf 12.1.3.

    Hello

    I displays a table on the screen. This table is read only during the initial page load. I want to do only two columns as editable on five in a row when the user clicks a line using adf 12.1.3.

    Is it possible in the adf. If possible how to handle this. Please help on this.

    For example, drop table editable Full and then replace rest inputText (components entry in general) with af:outoutText, everything except those two.

    And use the clickToEdit feature...?

Maybe you are looking for

  • Report TestStand deployment

    In the report of TestStand how can I make sure that the report options are not changed after deployment. In addition, the deployment from one station to the other, will I be able to transfer the report such as filepath macros with parameters.

  • Agilent SCPI commands

    Hi guys,. I'm working on the SCPI commands to control my instrument which Agilent B2901A in this case. Now, I'm able to control most of the settings via SCPI commands. But I can't get the model of the IMPULSE to 'OFF' to 'ON '. I also want to pass th

  • How to remove duct?

    [Mod comment: apart from this thread.] How to get rid of the conduit

  • If I upgrade to Windows Media Player11 and don't like it, can I go back to WMP9?

    I am running Windows XP Pro and it came with the Player9.Everytime media I check updates, it wants to install WMP11. I don't know if I want to update or not.

  • Computer Vista starts in safe mode, it is impossible to remove malware

    'Vista' of computer starts in safe mode. AVG on and execution of 52 Trojan detections and system leave not Malbytes {sic} program remove them. I tried all of the obvious solutions. Also I can not save and restore any files there I MISS my XP! oxooccc