Uploaded image for project: 'MyFaces Tobago'
  1. MyFaces Tobago
  2. TOBAGO-2223

No submit from button if ajax input field is focused

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.7.0
    • 5.7.1
    • Core
    • None

    Description

      To reproduce the issue see the following example and steps:

      <tc:in id="inputAjax" label="On Change" value="#{inController.changeValue}">
        <f:facet name="before">AJAX</f:facet>
        <f:facet name="after">on change</f:facet>
        <f:ajax render="outputAjax" listener="#{inController.update}"/>
      </tc:in>
      <tc:out id="outputAjax" label="On Server" value="#{inController.changeValue}"/>
      <tc:button label="Submit" defaultCommand="true"/>

      Steps:
      1. focus input field
      2. change input to "123"
      3. klick on button

      Expected result:
      An ajax event should be triggered, because of the ajax "change" event. After that, a submit is executed.

      Actual behavior:
      Only the ajax event is triggered. To execute the submit, you have to klick a second time on the button or press the button a bit longer.

      Attachments

        Activity

          People

            hnoeth Henning Nöth
            hnoeth Henning Nöth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: