Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E2D0DDC51 for ; Thu, 26 Jul 2012 15:37:36 +0000 (UTC) Received: (qmail 56677 invoked by uid 500); 26 Jul 2012 15:37:35 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 56572 invoked by uid 500); 26 Jul 2012 15:37:35 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 56232 invoked by uid 99); 26 Jul 2012 15:37:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 15:37:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 1799C142860 for ; Thu, 26 Jul 2012 15:37:35 +0000 (UTC) Date: Thu, 26 Jul 2012 15:37:35 +0000 (UTC) From: "jenny dai (JIRA)" To: dev@myfaces.apache.org Message-ID: <1242775918.106372.1343317055100.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (TRINIDAD-354) Using autoSubmit on a text field suppresses the ActionEvent on a button MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TRINIDAD-354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423157#comment-13423157 ] jenny dai commented on TRINIDAD-354: ------------------------------------ It is found that we always have this problem in IE but not in Firefox. Our workaround in IE: If the input field has onblur, onchange and onchange is a partial submit, then delay onchange 100ms. var _this=curEle; curEle.onchange=function(){ setTimeout( function(){_this.onchange();}, 100);} > Using autoSubmit on a text field suppresses the ActionEvent on a button > ----------------------------------------------------------------------- > > Key: TRINIDAD-354 > URL: https://issues.apache.org/jira/browse/TRINIDAD-354 > Project: MyFaces Trinidad > Issue Type: Bug > Affects Versions: 1.0.1-incubating-core-SNAPSHOT, 2.0.0-core > Reporter: Adam Winer > > First reported on OTN for ADF Faces: > http://forums.oracle.com/forums/thread.jspa?threadID=390427&tstart=0 > ... but presumably applies to Trinidad too. The report: > "Adding an InputText component on the page that has autosubmit set to true and > a value change listener attached will suppress a button action event if the > user directly clicks onto the button when leaving the field > To reproduce: > - Create ADF Faces page with backing bean > - Add InputText components to ADF Faces page > - Set autosubmit property in the InputText to true > - Add CommanButton to ADF Faces page > - Create action method for command button (double click on the button to > create the method > - Add System.out.println("Action event fired"); into the method > - create a ValueChange listener for the textfield and put > System.out.println("Value Change Listener fired"); into it > - Run the ADF Faces page > - Type hello into teh textfield and hit the button > The output you see is "Value Change Listener fired". Pressing the button > twice shows "Action event fired" as well. Obviously an event on a autosubmit > InputText overrides the event on the component that is clicked on." -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira