Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-1444

Improvements to handling of Ajax Requests in Seam

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.3.0.GA_CP03_FP01
    • 4.3.0.GA_CP02_FP01
    • Seam
    • None
    • Release Notes

      Backporting of the fix for JBSEAM-1832:

      To reproduce the bug, try the following :
      Create some seam-gen based project and generate-entities.
      Go to an edit page, fill some data, and click on the submit button, without clicking elsewhere (the focus must be on an edited field just before submit). Instead of validation error, or adding the new data, you should get the "The conversation ended, timed out or was processing another request" message. It seems that the validation triggered by the onblur event messes up with the validation.

      I have also seen the bug occuring while I was switching from one field to another quite fast (fast enough to have many validation on queue in ajax4jsf). It seems that adding <s:conversationId/> to the a:support solves this part.

      Here is the snippet I currently use
      <a:support event="onblur" bypassUpdates="true" reRender="cityCodeDecoration">
      <s:conversationId/>
      </a:support>

            mnovotny@redhat.com Marek Novotny
            mnovotny@redhat.com Marek Novotny
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: