action of the call after pressing button on enter on textbox

Greetings,

I'm sorry to ask such a simple question, but I look around on the internet and all the solutions I have try do not work 100%

What I do is simple, I have a login page that redirects on my homepage in case of success. I have a username & password to a text box and button 1

to call the function of connection of my Bean. I just want when the press user enter the password to the CALL button of my login, click action (it is a function of java bean).

Do not interact with my server or anything, by directly calling a java class function, but just call button click() method so he calls the action that she signed in.

I try the code below with no luck:

FUNCTION:

function clickMe (evt) {}

var _keyCode = evt.getKeyCode ();

If (_keyCode == _keyCodeAdfKeyStroke.ENTER_KEY) {}

model var = evt.getSource ();

AdfCustomEvent.queue (model, "EnterEvent", {fvalue:comp.getSubmittedValue ()}, false);

evt. Cancel();

}

PASSWORD TEXT BOX

< af:inputText id = value = "#{BeanLogin.password 'it2'} ' secret = 'true' autoSubmit ="true"> "

< af:clientListener method = "clickMe" type = "keyPress" / >

< af:serverListener type = "EnterEvent" method = "#{BeanLogin.clickMe}" / >

< / af:inputText >

Can you help me on this please?

SPECS: Windows 7, JDeveloper 11.1.2.4.0, JSF Page

Try with this code:

part of javaScript

function loginSubmit (event) {}
If (event.getKeyCode () == AdfKeyStroke.ENTER_KEY) {}
var button = AdfPage.PAGE.findComponent ('loginForm:loginBtn');
actionEvent var = new AdfActionEvent (button);
actionEvent.queue (button, false);
}
}

password field:

ID = "password" secret = 'true '.
showRequired = 'true' maximumLength = "30" >
Type = "keyPress" / >

where loginBtn resides in the loginForm, and AdfPage.PAGE.findComponent ('loginForm:loginBtn') can find him:

......

"ID ="loginBtn"
clientComponent = 'true '.

Tags: Java

Similar Questions

  • How to reset the LED after pressing the stop button?

    Hello

    I use vi of green LED to indicate if the data has been loaded correctly. However, if I run the same labview program several times online, then the Green LED is always on because "value that data has been correctly loaded" crashes it since the previous session. Is it possible to reset all of the screws LED after pressing the button STOP (stop labview program).

    Thank you for the answers.

    Hope this helps:

  • How can move the pointer after press the play button when editing any file

    My PC is Windows 7, I buy and used hearing CS6 for more than 6 months, but I find the pointer can't move after press the reading change when we file.

    Your audio device is disconnected from the hearing. Go to Edit > Preferences > Audio hardware and restore the connection. When the transport fails, that's the only reason!

  • Need to fill out the field of text based on the selection after pressing an event in the OPS

    Dear all,

    I have a requirement as below

    I have a table of tip having a LOV field and I have a button to add a line so that I can add a row more lov field and after I am pressing a button to insert the LOV data into a table, my requirement is in the top of the page that I have text field, I have to fill the selected values of LOV in below format in this area.

    EX:

    Table of the advance:

    Row1:ABC

    Row2: DEF

    In the text field, I need ABC-> DEF in this format after pressing a button, and that the value should insert into the table in this form, please help me on this

    Thnaks

    Hello

    Advanced table: (SEE: SampleAdvnacedVO)

    RowNo ColLovValue

    1 ABC

    DEF 2

    Create an OAMessageTextInputBean (Id - ValueItm) and

    Set Property Render ${oa. RenderVO1.Render} with initial value as a BOOLEAN. FAKE.

    Button: Send

    Create a partial fire Action by clicking on the "submit" button

    Code central:

    Of the PFR:

    {if ("submitClick". Equals (PageContext.GetParameter (EVENT_PARAM)))}

    am.invokeMethod ("executeRenderVO");

    OAViewObject vo = am.findViewObject("SampleAdvnacedVO1");

    Line = vo.getAllRowsInRange ();

    String value = null;

    SampleAdvnacedVORowImpl voRow = null;

    for (int i = 0; i)< row.length;="">

    {

    voRow = rank (SampleAdvnacedVORowImpl) [i];

    value = value + "-->" + voRow.getColLovValue ();

    }

    System.out.println ("values-" + value);

    OAMessageTextInputBean valueItmBean = (OAMessageTextInputBean) webBean.findChildRecursive("ValueItm");

    valueItmBean.setValue (value);

    }

    GOT the Code

    public void executeRenderVO() {}

    OAViewObject vo = getRenderVO1();

    vo.executeQuery ();

    vo.insertRow (vo.createRow ());

    Line OARow = (OARow) vo.first ();

    row.setAttribute ("to make", Boolean.TRUE);

    }

  • How to clean up the code after pressing

    Hey,.

    I am trying to run a program that controls a remote power supply.  The way the supply (BK precision 1786-B) is controlled is by writing a table hexagonal 26 bytes with specific addresses for each order (20 = setting the remote control, 21 = exit of the State of tension, 23 = 24 = current, voltage, etc.)  The way I am connect to the electric grid is by sending the code through the base set, read and write of VI.  He worked phenomially.  I would like my program to activate the remote control, on the State of the output, beginning of rising tension at a rate fixed and then when desired pressure is reached, you press the stop button and the last command to set the return to zero voltage and performance status turned off before the end of the whole of the program.   The thing I ask is the opportunity to set the voltage to zero directly after that I have the most important press stop.  I'm controlling a chip peltier and what happens, is that when I restart the computer, the chip will be a climb to a high voltage before resetting because of the code.

    Any thoughts?

    Thank you

    Katie


  • End the call of a button field

    In my application, after a touch, the phone Invoke and a call is made to the specified phone number. Then the phone screen disappears when the call is answered and my app screen fades. I want to put an end to an ongoing call by clicking another button. How do I do that?

    injection of the event. in 4.5 or earlier, you can also use the menu execution. Search the forums for an example of code if you need.

  • Remove the call after unplug programmatically

    I want to delete call log, after having disconnected programmatically.

    PhoneLogs.getInstance (.deleteCall)
    (PhoneLogs.getInstance (.numberOfCalls))
    (PhoneLogs.FOLDER_NORMAL_CALLS) - 1).
    PhoneLogs.FOLDER_NORMAL_CALLS);

    His does not work. can anyone suggest another way to delete call log after unplugging it.

    use a thread and wait 1-2 seconds, it only takes a moment for the call log to be created after the end of the call.

  • keyboard popping up during the call and previous button does not work...

    Why can't I write during a call? I tried other keyboards, but the result is the same...

    is there a solution?

    You have app smart key? If so, remove or disable the calls.

  • Cannot move the pointer of the mouse after pressing the key on the keyboard (touch pad)

    everytime I press a key on my keyboard, I can't move the mouse for 1-2 seconds after you press the keys,

    ex: by pressing the w button, can't move the mouse just after.

    Hello Asudragon,

    Welcome!

    1. have you tried to update the drivers for your touchpad?

    2. have you checked with your Builder?

    3. What is the model number of your laptop?

    I suggest you update your computer by installing the recent updates.

    http://Windows.Microsoft.com/en-us/Windows7/updating-your-computer

    Kind regards

    Savan - Microsoft technical support.

  • How to remember the password after pressing ever?

    When asked the first time to save a password for a site, I pressed No.. Now, I changed my mind and want firefox remember password. I went into options > Security > exceptions of password to remove the site but he have no sites int EH exceptions window. I'm not in private browsing mode. How can I get firefox to remember the password for this site?

    The Web site may use autocomplete = off to prevent Firefox to record the name and the password.

    You can remove autocomplete = off with a bookmarklet to register the name and the password of Firefox.

  • Update the values in the loop after pressing OK without a control

    Hello

    in a loop, a chain of control can be changed until the user clicks the ok button. This method works.

    But the button is also assigned to toggle with the return key.

    But now, the output is not updated any more.

    Is there a solution?

    THX

    Iliale wrote:

    Attached my VI that doesn't work here.

    If I stop the loop with key then return the s text not written

    Set the control to the value of update while typing.

  • Try to update adobe. Do not get any bar to 'allow' the page after pressing the toolbar installation. Where the bar of "allow"?

    Try to update adobe. The instructions say that I see a bar 'allow' pop-up when I try to accept the update. I don't get all toolbars appear and cannot proceed with the update from adobe.

    This has happened

    Each time Firefox opened

    The instructions on the Adobe site are obsolete and apply to older versions of Firefox. Since your Adobe Reader plugin is up to date, I assume you are trying to update Flash, if you have not specified which Adobe product. We the instructions below.

    Install/update Adobe Flash Player for _ : your version 10.0 r32; current version 10.1 r53 (update of important safety 2010-06-10)

    Check your version here: http://www.mozilla.com/en-US/plugincheck/
    See: Flash update
    -use Firefox to download and SAVE to your hard drive (save to the desktop for easy access)
    -the release of Firefox (file > exit)
    -Make sure that Firefox is completely closed (Ctrl + Alt + Delete, choose Task Manager, click the processes tab, if "firefox.exe" is on the list, made a "firefox.exe" right-click and choose end process, close the Task Manager window)
    -Double-click the Adobe Flash Installer, you just download to install/update Adobe Flash
    -When Flash is installed, start Firefox and test the installation of Flash here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507 & sliceId = 1

  • Black screen when the phone call after 5.1

    The screen loses response (black screen) on the call (after dialing) after 5.0 OTA. But it works well if I plug headphones. The screen can also recover the black screen after I have connect a listener.

    Do you have a case on your phone? It can interfere with the proximity sensor and turn the screen black... it is supposed to do after you hold the phone to your ear/head so that your face not to accidentally push buttons.

    If it does when you do not hold your phone to your face/head/ear then something else is triggering the sensor of prox - often a case which is near the prox sensor, or a protective screen that is not clear in this area can cause this.

  • Refresh the page after the fires of fileDownloadActionListener

    Hello experts!

    I use jDeveloper 11.1.1.7.0

    I have a table in a fragment of page jsfff with a button to upload the files that are shown in this table. After downloading the files, I need update the table.

    Downloading files when the user presses the button (partialsubmit = false) I invoke another button hidden (partialsubmit = false) which has af:fileDownloadActionListener that performs the action. (This is because I am doing other activities before you download files)

    It works fine, but I need to refresh the page (among others) after downloading the files. How can I do this?

    I tried to update the table of

    -method fileDownloadActionListener

    -Method of hidden commandButton action

    -The partial trigger table button

    But I could not update the table with any of these

    How can I refresh the table after uploading the files?

    Yes.

    I'm looking at the source code for FileDownloadActionListener.processAction ().

    After invoking the method property, he calls FacesContext.responseComplete (); which ignores the render response phase.

    And so you can not rynefall page at all.

    An in-depth, that you can do, is to use af:poll, IE, activate the survey by clicking on the button visible (in javaScript)

    Here you can see how to start the survey by javaScript:

    GEBS | Oracle Fusion Middleware 11g ADF progress indicator

    (search handlePoll )

    In the pollListener, you can refresh the page AND also disable survey by itself (by calling setInterval(-1))

    After questioning to stop, you must refresh the survey component, with

    AdfFacesContext.getCurrentInstance (.addPartialTarget(...your_poll...whatever));

  • IPhone 6: how to find if the call is completed?

    Greetings,

    I often participate in the telephone conference call bridge company. When the Conference ends, I have a problem to find my phone if he "hung his handset. A few times already, I found that the connection has changed its status to "pending" instead of the end. The IPhone has allowed me to launch another appeal; incoming calls received the signal "busy", and the telecommunications operator received their money for a very long connection. I was unable to find any icon on the screen warning me that there is a call in progress. How to find the phone that there any telephone connection active or not? IPhone 6 s, software 9.3.2

    Thanks, Marek

    If you are on an active call, the bar at the top of the phone screen will be green if you are on the home screen or most other applications. Click on this green bar takes back you to the Dialer screen.

    If you have some kind of difficulty to end the call by pressing the button on the screen, try pressing the power button. Which will also end the call.

Maybe you are looking for