Default Action in JSF

Hi all,
I have a problem in submitting form by pressing enter key.
I am using <h:commandButton> in my form,its not getting clicked
whenever i use enter key to submit the form,but it works fine if i use mouse to click the button.
This problem occurs only in FireFox mozilla browser not in IE.
I tried to catch the key code for Enter key like
  if (keycode == 13)
                         alert('hi...');
                        document.getElementById('sv:helloForm:submit').click();
                return false; }The above code catches key code correctly for enter key,but button click is not happening(No mistake in button ID,every thing is perfect).
I guess its a problem with JSF default action.
did any one ever come across this issue???
regards,
sundar

sundar82 wrote:
I have a problem in submitting form by pressing enter key.The enter key fires the first occurring HTML <input/button type="submit"> element in the entire HTML <form>, if any. Maybe your h:form component is covering much more than only the actual form. Maybe you´re using commandlinks somewhere in a navigation menu in the same page and the same form or so?

Similar Messages

  • Regarding JSF Default action problem in IE

    Hi,
    I am using Jsf:Default action inside my submit button.In my form I have row of two buttons submit and reset.When I use my tab focus on reset button and when I am clicking enter submit default action is getting fired rather reset action.More over if I am using spacebar after tab focus reset button is called as expected.The problem identified is only with IE browsers
    In case of Mozilla,default action is overridden by tab focus action and working properly.
    Please advise me how to solve this issue in IE
    Note:The j4j:defaultAction custom component included in the j4j tag libraries allows you to define the default action for a form by adding <j4j:defaultAction /> as a child tag to the commandButton tag.
    http://www.jsftutorials.net/defaultActionTag.html
    Edited by: Ravishankar_R on Mar 24, 2010 12:09 AM

    Amit,
    Thanks for your answer. I fixed it using javascript .First I got all the buttons in the DOM and did a check to find if there is any current focus using document.activeElement.type="button" else to go with default submit action.
    Thanks,
    Ravi

  • Default Action

    In my form, if I press the <ENTER> key the form submits but, since no command_button was pressed, no action is invoked...the question is: is there a way to specify a default action for the form?
    Regards
    Alberto Gaona

    Same question, different day.sorry for that
    So, if jsf-ri does not solve this problem before final
    release, this problem become a problem for most
    developers.I can live with that maybe issuing a JavaScript keystroke event catcher and forcing the user to actually press the button instead of hitting <ENTER>. Can the user live with that? I don't know.
    Regards

  • Problem accessing /config_general/null/Default.action   Reason:There is no Action mapped for namespace/ config_general and action name default

    in use:
    vRO 5.1
    eclipse 3.7.2
    vRo plug-sdk 5.1
    steps:
    1.create a plug-in project from samples(choose solar system)
    2.find the dar package and upload it by vRo configuration
    3.vRo configuration said upload successfully,but the solar system configuration is not properly configued..
    problem:
    Problem accessing /config_general/null/Default.action   Reason:There is no Action mapped for namespace/ config_general and action name default
    How to solve it??
    Thanks so much!!

    There was problem from crm side...its working now..

  • How to change default action "alarm" for all signatures ?

    My question belongs to a Cisco 1712 (128 MB, IOS 12.3T, SDM 2.5 installed):
    I'm trying to change the default action "alarm" to "alarm,reset,drop" for all signatures of my custom set.
    However doing so via SDM fails. First, it appears as being done correctly, but after compiling the signatures again, the default values are back there (in the same sense, I was unable to delete signatures, works just using the CLI).
    I followed the instructions at cisco.com:
    router(config)#ip ips signature-definition
    router(config-sigdef)#signature 6130 10
    router(config-sigdef-sig)#engine
    router(config-sigdef-sig-engine)#event-action produce-alert
    router(config-sigdef-sig-engine)#event-action deny-packet-inline
    router(config-sigdef-sig-engine)#event-action reset-tcp-connection
    router(config-sigdef-sig-engine)#exit
    However ip ips signature-definition is not understood by the router, so the procedure fails.
    Can you please assist me ?

    You can use IOS command-line interface (CLI) to change signature actions for one signature or a group of signatures based on signature categories. The following example shows how to change signature action to alert, drop and reset for signature 6130 with subsig ID of 10.
    router#configure terminal
    Enter configuration commands, one per line. End with CNTL/Z.
    router(config)#ip ips signature-definition
    router(config-sigdef)#signature 6130 10
    router(config-sigdef-sig)#engine
    router(config-sigdef-sig-engine)#event-action produce-alert
    router(config-sigdef-sig-engine)#event-action deny-packet-inline
    router(config-sigdef-sig-engine)#event-action reset-tcp-connection
    router(config-sigdef-sig-engine)#exit
    router(config-sigdef-sig)#exit
    router(config-sigdef)#exit
    Do you want to accept these changes? [confirm]y
    router(config)#

  • Windows Client MP is using the default action account to write to the Data Warehouse

    Hi,
    I have recently installed SCOM 2012R2, and am in the process of migrating everthing from SCOM 2007R2.
    Just after I installed the Windows Client MP (version 6.0.7250.0), I started getting this Event 11852:
    OleDb Module encountered a failure 0x80004005 during execution and will post it as output data item. Unspecified error
    : Cannot open database "OperationsManagerDW" requested by the login. The login failed.
    Workflow name: Microsoft.Windows.Client.Win7.ComputerGroup.MemoryTrendsRAM
    Instance name: Microsoft System Center Data Warehouse
    Instance ID: {16781F33-F72D-033C-1DF4-65A2AFF32CA3}
    Management group: 2012SCOMDEV
    This is happening every 7 days and only happening on the Win7 Management pack. I checked the DW logs and found that it was using the default action acount (SCOM ACTION)to send to the DW.  This account doesn't have access to the DW DB.
    I assume it should be using the Data Warehouse action account.  This is how the acount is setup
    Can anyone tell me where I'm going wrong here?  I have not had to touch the permissions for any of the other Management packs.  the rest of them just work.

    For this issue, you can check below link
    http://blog.metasplo.it/2014/01/scom-2012-oledb-module-0x80004005.html
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"Mai Ali | My blog:
    Technical | Twitter:
    Mai Ali

  • How to set the default action of slide switch to auto-rotate

    Is there a way to set the default action of the slide switch to auto-rotate during the OS loading instead of volume setting?

    You change the function of the side switch with Settings -> General -> Use side switch to:
    I don't know what you mean by, "during the OS loading".

  • KDE4 default action on move/copy a file

    Hi all
    I thought this would be a simple one, but I can't find an solution at the moment.
    I'd like to make move the default action when I drag and drop a file in dolphin etc but it just prompts me to move or copy. Yes, I know I can hold the shift key down to move the file, but I'm sure this was configurable in KDE3.
    GregW

    import java.net.*;
    import java.nio.channels.*;
    import java.io.*;
    public class filetest
    final int transferunit = 1024;
    public static void main(String[] args) throws Exception
    new urltest("nslogo_t.gif", "test.gif");
    public urltest(String filer,String filew) throws Exception
    FileChannel fr = (new FileInputStream(new File(filer))).getChannel();
    FileChannel fw = (new FileOutputStream(new File(filew))).getChannel();
    int pos = 0;
    int len;
    while((len = fw.transferFrom(fr,pos,transferunit)) == transferunit) pos += len;
    needs jdk1.4

  • Default action for access list Deny

    Hello,
    Is it possible to change the default action for an access list deny?  Can the ASA be configured to send an icmp unreachable rather than just dropping the packet if an access list denies the request?  I have a situation where I would like to restrict access to a specific server for a select number of users.  The problem is that the restricted workstations attempt to connect to the server at log in.  Since I cannot control the log in script for those users, I was hoping to use the ASA firewall instead.  However, using a deny statement causes the workstation to repeatedly send SYN requests for 60 seconds.   The restricted users experience an unacceptably long delay at log in.  I was hoping to be able to configure the ASA to send an icmp unreachable message for those users and avoid the wait.
    Thanks,
    Ann

    Hello,
    As the firewall it's supposed to be invisible there is no way the ASA could send this particular messages, sorry to inform you that but you could request this particular feature with your Cisco account Team.
    Regards,
    Julio

  • Default Action/Effect in an Action Set in PSE5

    I have a Photoshop action set that contains a "main" action that performs some functionality and calls a bunch of "sub" actions. The main action is listed first in the set and is automatically picked up as the default action and executes successfully when installed into PSE6, PSE7 & PSE8 and also works as expected in a German version of PSE5 but in an English version of PSE5, somehow the second action (ie a "sub" action) is being executed rather than the first. Is there any way of configuring the default action or forcing PSE5 to recognize the first action as the action to run? If not, does anyone know what algorithm PSE uses to determine the action to run? The action being run isn't first (or last) alphabetically nor positioned first (or last) in the action set. Any thoughts/assistance would be greatly appreciated. Thanks.

    Thanks for the response. I think I confused things by bringing up the German version... The action was created in a standard English version of PS CS2 then adjusted and resaved in a standard English version of PS7. It was then packaged and tested in English (and non-English) versions of CS3, CS4, CS5, PSE6, PSE7 & PSE8 without any issues. It was also tested in a German version of PSE5 and worked without any concerns but when tested in 2 different standard English versions of PSE5, it appears that the second action in the action set is the one that is being recognized and run, rather than the first action in the set. The first action is named as "Make Patterned Papers" and the other 20 or so actions are named as "code -- (reference number)" in a lame attempt to slightly obscure the functionality from the PS users. The first "code -- (reference number)" action listed after the "Make Patterned Papers" is the one that is being picked up by PSE5 as the action to run. The actions are not listed in alpha/numeric order and the action that is being picked up by PSE5 is not the first alphabetically either. I tried copying all of the actions to a new action set and using this instead, but had the same result.

  • Default action in actionmap

    hi, i was wondering how to put back the default action for a key... like what is the default action method? is there anywhere i can get a list?

    hm... i managed to overwrite my previous function, when i realized that it didnt' have an entry in the input map in the first place =P
    what i am making is a focus controller which controls the cursor on a page with multiple text fields. when a certain char is pressed, then the focus will redirect to the appropriate field, and then begin typing.
    my thought process goes along the lines of this:
    take out the entry in the inputmaps of all my jtextfields so that it gets passed on to their parents, which is the highest ancestor. the ancestor decides who gets the focus and transfers it, sending the prefix with him. i think my problem is that the ancestor does not have an entry in his input map. it is to my understanding that if you add null to the inputmap for the key, he will pass the key to his ancestor. i want him to pass it to his child. any thoughts?

  • How can I adjust size of default action frames

    Hi, How can I adjust size of default action frames they are very thin.  I have tried double clicking on that part I think it is in the actions but can only adjust the drop shadows etc not the actual size of the frame ie like in the wooden frame.
    hop you can help

    I think I get what you meant now …
    The »Transform Current Layer«-step in »Frame Channel – 50 pixel« might be the one you want to edit (»Toggle dialog on/off« for example or replace it with a newly recorded different transformation).

  • Default actions folder in Photoshop CS6

    I installed Photoshop CS6 on my iMac and MacBook.  The MacBook has a "Default Actions" folder in the actions panel with 13 default actions.  This folder did not appear on my iMac following install.  However, my iMac has several image and text effect actions installed that did not install on my iMac.  Would like to have the Default Actions on my iMac and text and image effect actions on my MacBook.  Not sure how to do this.

    I'm a PC user ther are some differences between PC and the Mac but not that much
    Actions are savet in sets and han File name .atn extentsios thes can be saved and loaded from any folder on you system Photoshop install some action step in its install tree
    ..\presets\actions\  on windows 9 sets.  If you load and save actions from/to othe folders you photoshop setings will remenber the folders your default mad change presets\actions
    Commands.atn
    Frames.atn
    Image Effects.atn
    LAB - Black & White Technique.atn
    Production.atn
    Stars Trails.atn
    Text Effects.atn
    Textures.atn
    Video Actions.atn

  • Struts Actions in JSF

    Simple question.
    How to implement an action in JSF like it was in Struts.
    Of cource, when I submit some JSF page I may execute an action and redirect to some JSF/JSF, but this is not what I need.
    Imagine I'm first time on the page "index.jsf".
    And I want to execute some action before rendering this page.
    (don't suggest me using a filter -- this is not a JSF solution)
    If somebody still haven't got what I need, one more example of using JSF action.
    I want some JSF action to generate an image instead of HTML content.
    I can implement a servlet doing this job, but this mean that I don't use the same entry point (Controller) -- servlet FacesServlet, but use some other servlet.
    I want to use this servlet (FacesServlet), but to generate an image from some JSF action.
    Regards,
    Oleksa Stelmakh

    If I understand your posting correctly. You are looking for the equivalent of a pageload event on a JSF page. If not, please ignore the rest of the explanation.
    If so, I think you are one of many (including myself) that wonders why JSF framework did not include a pageLoad event concept similar to what .NET does with ability to detect postBack as well. Search this forum for "pageLoad" keyword to review what others came up with as workarounds.
    On the positive side, many JSF extensions offered by vendors like IBM using WSAD 5.1 addressed this issue as part of their solution. And really it is not that complex to address. You basically need to add some artificial tag first thing after <f:view> tag. And then wire its preRender, postRender & decode events to handle the equivalent of PageLoadBegin, PageLoadEnd & PagePost events respectively. And there you have as much equivalent to pageLoad events offered as part of other frameworks (like .NET). It is somehow inconvenient otherwise to write logic that applies to current page in a previous page action event before forwarding to current one.
    It works really well for us using WSAD.
    Hope that helps!

  • Default Action type when hire internal employee

    Dear all,
    How to set Default Action type when hire internal employee?
    Thanks,

    Hi,
    May be that. When i transfer applicant that is hired internal, the action type is default Reentry into company. So how to change this?
    Edited by: Quang Le Vinh on Nov 7, 2009 2:54 AM

Maybe you are looking for

  • Play All Script does not Play All !!

    i need to be able to add a Play All button to the various menu pages on my project. I tried using the sample scripts in the manual, and aside from changing the movie file names, it was letter and space perfect. Yet when i tried testing it using the S

  • Align to pixel grid frustration

    Hello Illustrators. This feature in illustrator I cannot simply turn off/ uncheck you name it, Im even setting a new workspace incase its not checked on again. Im also looking into the preference incase there is a check mark to turn this feature off.

  • Repeated message "Before proceeding you must first launch Adobe Acrobat and accept the End User

    I am now getting repeated pop-ups of a dialog box that says: Before proceeding you must first launch Adobe Acrobat and accept the End User License Agreement. However, there is no menu command or preference to do so in either Adobe Acrobat Reader X ve

  • The query is performing very very slow, can any one please help me tue this

    SELECT h.ROWID row_id, e.preparer_user_id FROM arsarc.ars_sv_reconciliation e, arsarc.ars_sv_reconciliation_accts a, arsarc.ars_sv_acct_status_history h WHERE e.rec_id = :b1 AND e.rec_id = a.rec_id AND e.ledger_id = h.ledger_id AND a.ccid = h.ccid AN

  • How to call a transaction from ABAP code

    Hi everybody, How do I run a transaction from my ABAP code? For example, through my ABAP code, I want to call the ME24 transaction (Maintain Purchase Order). Thanks for the help, Roy