Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-354

Using autoSubmit on a text field suppresses the ActionEvent on a button

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 1.0.1-incubating-core-SNAPSHOT, 2.0.0-core
    • None
    • None
    • None

    Description

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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              adamwiner Adam Winer
              Votes:
              7 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated: