How to use f: Ajax? Search as you type not the Enter key

Hi, I use Jdev 12 c

I'm trying to implement a search on a table by writing the input parameters in an inputtext is functioning normally by pressing the search button

but!

I want to perform the search on the keyUp event (as soon as the user presses a button)

I have this;

  <af:inputText label="Criterio" id="it1" labelStyle="text-align: left;" autoSubmit="true"
                                            value="#{bRegistrarFicha.sessionRegistrarFicha.descCriterio}">
                                <f:ajax event="keyUp" listener="#{bRegistrarFicha.buscarAjaxCriterio}"/>
                            </af:inputText>

    public void buscarAjaxCriterio(AjaxBehaviorEvent ajaxBehaviorEvent) {
        Utils.sysout("escribeeeeeeee");
        mySearchMethod();
    }

but it is not run, help!

Thank you

OK I got it working

Here is the solution:


                                
                                
                            


            function busquedaTecleando(evt) {
              var valor = evt.getSource();
              //var val = valor.getSubmittedValue(); alert('valor: '+val);
              AdfCustomEvent.queue(valor, "teclaEvento", {fvalue:valor.getSubmittedValue()}, false);
              evt.cancel();
           }
        

    public void busquedaConTecla(ClientEvent ce){
        String message = (String) ce.getParameters().get("fvalue");
        Utils.sysout("tecleo: "+message);
        mySearchMethod();
    }

Tags: Java

Similar Questions

Maybe you are looking for

  • Why is password required 3 times at startup?

    Until a few days ago, when I open Thunderbird the morning everything worked fine. Now, every time I start Thunderbird earlier in the day that I am promoted a password. I enter the password and I am promoted to enter the new password, cancel or retry.

  • Migration between two Mac Pro

    I've upgraded to a MacPro 4.1 old in the new 'trash' MacPro.  But I only have one monitor.  Is the hot port "swapable"? display

  • Pavilion 500-314: Reinstall not destructive

    I am trying to perform a non-destructive reinstall of Win Home 64 bit on my 500-314 Pavilion 8.1. Since HP does not provide Windows installation floppies, and this procedure can be done recovery disc, I did a USB bootable Microsoft support Web site.

  • Select the project of the serial port data

    Hello world The project aims to use labview to receive data from a serial port wireless. The serial port will receive two values (X 1 and X 2) every 10 minutes. I want to use these two values as inputs to my formula. How to make the selection? Thank

  • How to open the labview with function of Labview program to stop smoking inside?

    Hi any idea how to open the labview with the Labview function program to stop smoking inside? I forgot to add and define the condition of the type for this program. If the program is an application, she closed immediately. If it is still the work of