Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-9722

a4j:status - error handling - lifecycle broken (MyFaces)

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.Milestone4
    • Fix Version/s: 4.0.0.Milestone6
    • Component/s: compatibility
    • Labels:
      None
    • Environment:

      RichFaces 4.0.0.20101107-M4 r.19981
      Metamer 4.0.0.20101107-M4 r.19986
      Mojarra 2.0.2-FCS
      Apache Tomcat 6.0.28
      OpenJDK Runtime Environment 1.6.0_20-b20 @ Linux
      Chrome 7.0.517.44@ Win32, Firefox 3.6.12 @ Linux

    • Steps to Reproduce:
      Hide

      1. open http://localhost:8080/metamer/faces/components/a4jStatus/simple.xhtml
      2. set onerror=alert('error')
      3. set onstart=alert('start')
      4. set onsuccess=alert('success')
      5. set onstop=alert('stop')
      6. click "Sed Ajax Requests Causing Error" button

      Show
      1. open http://localhost:8080/metamer/faces/components/a4jStatus/simple.xhtml 2. set onerror=alert('error') 3. set onstart=alert('start') 4. set onsuccess=alert('success') 5. set onstop=alert('stop') 6. click "Sed Ajax Requests Causing Error" button

      Description

      When binding event handlers to status, you can see following lifecycle using Mojarra:
      1. start
      2. success
      3. stop

      But using MyFaces, you will see:
      1. start
      2. error
      3. stop
      4. success
      5. stop

      but only one request was actually done.

      Also the status are showing STOP facet instead of ERROR.

        Gliffy Diagrams

          Issue Links

            Activity

            Show
            nbelaevski Nick Belaevski added a comment - http://java.net/jira/browse/JAVASERVERFACES-1887
            Hide
            nbelaevski Nick Belaevski added a comment -

            Need to add 'onsuccess' event?

            Show
            nbelaevski Nick Belaevski added a comment - Need to add 'onsuccess' event?

              People

              • Assignee:
                pyaschenko Pavel Yaschenko
                Reporter:
                lfryc Lukáš Fryč
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development