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

Similar Messages

  • 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?

  • 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..

  • 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

  • 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

  • Glitches in address fill-ins with nicknames; default font problem; plus other glitches in Thunderbird 31.3.0 and 31.4.0; can I roll back to an earlier version?

    I am unhappy with the recent upgrade to Thunderbird 31.3.0 and now 31.4.0. My bottom line question is whether I can roll back to the previous version, which was working well for me.
    The problems I have encountered include:
    1. I used to be able to enter a single letter in many cases in the address field, and the autocomplete would fill in the entry that I always use with that single letter. That function has been lost, as has auto fill-in based on the nicknames I have entered in my Address Book. I see there is another thread on this problem (https://support.mozilla.org/en-US/questions/1036962), but no satisfactory answer so far. Entering a single letter now pulls up completely unrelated address entries that may not even have that letter as part of the name, address or nickname for that unrelated address. I have created new nicknames to try to adapt to this problem, but even these new nicknames no longer work with the 31.4.0 upgrade yesterday, forcing me to create yet more complex and hard-to-remember nicknames to pull up my frequent addressees. This is all very frustrating to me, as I depend on speed and ease when creating messages.
    2. Also, I used to be able to enter a single letter in the address field and then use the mouse to click on the "To:" symbol to the left of the next address line to change the next entry to "Cc:"; doing so would then cause the complete address to fill in in the "To:" address field, and make the next field ready for an entry. That no longer works. If I use that technique, the shortcut that I entered in the first field gets included along with the address (if I'm lucky enough to have the address itself selected now, given the problems I've mentioned above). I now have to press "Enter" in order to get the address in the first field to "take" correctly, and then have to click on the "To:" symbol for the next line as a separate action. Just another inconvenience with the new version.
    3. While still on the subject of addresses, personally I see no reason why the address and subject fields should now be colored blue by default rather than appearing as blank, white fields. I far prefer the old look. And I suspect that changing from the blue color to a nice, clean, white field takes time and computer resources that slow things down.
    4. The default font (Times in my case) no longer "takes" when replying to or forwarding messages. I've checked Tools/Options/Composition, and Times is still shown as my default font. However, when I start to type (in a reply with the original message quoted or in a forwarded message), the result is "Variable Width". In order to get Times, I need to highlight the block of text after typing, including the lead-in to the quoted message or the header of the forwarded message, and select "Times" when "(mixed)" shows up. This is a big pain; I often forget to do so and end up having to edit the Unsent Message (which I check before sending) as New and correct the font.
    5. A minor problem: I rely on the reminder to attach a message which shows up when an "attachment-related" word is entered in the body of the message. It has been a wonderful feature of Thunderbird that has prevented me on many occasions from sending off messages without the attachments. However, in the new versions, even if I have indeed added the attachment, a pop-up comes up on sending the message saying there has been no attachment and asking if I want to add one. It's easy enough to just click "No", but it's yet one more unnecessary and distracting step that this new version is requiring of the user.
    I'm really sad to see these various changes/glitches. I love Thunderbird and it bothers me deeply to find myself mired in so many new problems that slow down my work. I would be grateful for any suggestions and advice, and, particularly, for any information as whether I can roll back to the version prior to 31.3.0 that was working well for me.

    Thank you, Zenos. I tried rolling back to v31.2.0, since I had not encountered problems prior to December. However, that didn't help. So I followed your valuable suggestion to revert to v24.6; that seems to have done the trick.
    I would like to mark this problem as "Solved" -- the rollback seems to have worked. However, since my original post was a complex mix of things, before I do that, should I post the individual problem sets that I had noted (address fields/nicknames problems -- numbers 1-3; default font problem -- number 4; attachment reminder problem -- number 5) as separate issues which have not been solved?
    Do you know if these various issues are being worked on? I'm glad to have the temporary fix of rolling back to an earlier version, but I'd like to get back on the current update schedule at some point if and when these problems have been corrected.
    Thank you again!

  • 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?

  • Default printer problems with adobe 10.1.2

    I was having problems printing PDFs since upgrading to 10.1.2.  After reading and trying many recommendations, I happened to notice that my default printer(I have only one printer) was listed twice on the print window.  The first (default) printer is spelled "HP PSC 2350 series" (upper case 'PSC')  The second is "HP psc 2350 series" (lower case 'psc') .  The printer is named 'HP psc 2350 series' in my printers and devices, and if I select this printer, the page will print perfectly.  Now that I have solved my printing issue,  I would like to change the default setting on the adobe print window to come up as the active link, so I don't have to continue to select a different printer everytime I wish to print a document.  The printer by the lower case "psc" name is set as the default printer in printers and devices, and I cannot figure out why it doesn't come up as the default printer on the adobe reader print window.  I also cannot figure out how to change the default in the print window.   An added interesting fact is that I get no response in the print window when I try to select "preferences' or 'advanced' for the upper case 'PSC' printer.
    My computer runs in Windows 7 (64-bit).  The printer is HP psc 2355xi all-in-one.  Any suggestions are much appreciated

    I have not been able to select a different default printer for Adobe,  but I can print if I manually select the correct link everytime.
    Date: Tue, 6 Mar 2012 13:16:52 -0700
    From: [email protected]
    To: [email protected]
    Subject: default printer problems with adobe 10.1.2
        Re: default printer problems with adobe 10.1.2
        created by AMG13 in Adobe Reader - View the full discussion
    I am having the same issue.The correct printer is selected as the default printer on the control panel and there is no driver with the lowercase convention.However, the first printer option that appears is the lowercase convention. Is there any way to select a default printer for specifically for Adobe, as opossed to the PC itself?
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4248912#4248912
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4248912#4248912. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Binding default action of JTextComponent  with JDK1.2 & 1.3

    Hello,
    I have a specific text component who extends JTextField. This component must work on JDK1.3 & 1.2.
    I catch certain key events in the method processComponentKeyEvent to have the control over my component (in particular VK_BACK_SPACE, VK_LEFT and VK_RIGHT) and I don't want the default action inherit from JTextComponent to be exectued. With JDK1.2 this problem doesn't appear because I think the event is consume when it is thread by the processComponentKeyEvent and the operation of searching in the default key actions is not executed. But, with JDK1.3 they change the model of mapping key to event and the default actions are executed although the event is passing by the processComponentKeyEvent and e.consume was call. I find something who work on JDK1.3 by binding the default actions of key events with a "null" action. I do something like :
    myField.getInputMap().put(myKeyStroke, "none");
    My problem is that my components must work both with JDK1.3 & 1.2 without having two different versions of the component but the solution doesn't compile because getInputMap(KeyStroke, objectKeyToAction) doesn't exist on JDK1.2.
    I try to removeActionFromKeyStroke method but it doesn't work and in plus, the change going to apply to all text component in the application.
    There is a solution who can compile on both JDK1.3 & 1.2 ?
    Is it a good idee to use reflection to test the presence of the method and apply the correction or you have a better idee.
    Tanks a lot
    Fred

    Try using a KeyListener instead. It allows you to consume the KeyEvent, at least it does on JDK1.3.
    keyListener = new KeyAdapter()
         public void keyPressed(KeyEvent e)
              switch (e.getKeyCode())
                   case KeyEvent.VK_RIGHT:
                        e.consume();
                        // add your code here
                        break;
                   case KeyEvent.VK_LEFT:
                        e.consume();
                        // add your code here
                        break;
    };

  • SAP QM Issues regarding follow-up action after Usage Decision

    Dear Gurus -
    Kindly need your expertise to resolve these issues regarding follow-up action.
    1. After taking the UD i need to trigger the follow-up action to send an email with the long text to a group of people. As per standard SAP the email goes to the person taking the UD. Kindly can some one explain what & where do i need to make the changes. Also please let me know what is the customized Email ID table where mail ID's will be stored which fuction module can extract.
    2. Can i also use the same functionality for partial lots during inprocess inspection. I need to send an email to a group in case the valuation is rejected for that operation.
    Any response is highly appreciated.
    Thank You.
    Edited by: sunil t on Jan 6, 2010 7:03 PM

    Hi
    Please go through my recent thread
    Incomming Inspection Auto mail if Rejected
    Regards
    Sujit

  • 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/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.

Maybe you are looking for

  • JAVA for BI with Netweaver 7.1

    Hello Collegues We have a Netweaver 7.1 Installation, and BI. Does anyone knows how to configure Integrated Planning with this new plataform (7.1). The BI Java Stack is not "available" on the instalation wizard, so de Basis Team, couldn't set up a Ja

  • Macbook vs. Macbook Pro Video output to a projector which is better?

    OK, so I am having an argument with another guy about this. He swears that a macbook doesnt look as good as a macbook pro when being displayed on a projector. My argument is: if you have and dvd, it will look the same when projected because the resol

  • Can I hyperlink to an EXE file?

    Cp7, Windows 7(64) I want to create a CD-ROM for customers. I want to link to several projects. One of the projects has its own loader and directory structure. I want to link to this non-Captivate EXE file, I have published all "my" projects as EXE f

  • Missing connection panel version 1.5.4 - 5940.

    On Win XP with latest updates installed. at startup no connection panel is visible, not able to find. if pressing the SQL run icon a error dialog pops up showing: java.lang.NullPointerException      at oracle.dbtools.raptor.controls.ConnectionPanelUI

  • Error in Oracle Apex 4.2:GET_STMT error. ORA-56720: I/O data limit exceeded

    Dear Experts I have a workspace on apex.oracle.com I tried to copy an application. It gives me GET_STMT error. ORA-56720: I/O data limit exceeded - call aborted:281:0 ORA-56720: I/O data limit exceeded - call aborted How to solve this? Best Regards M