RichFaces
  1. RichFaces
  2. RF-9722

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

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.Milestone4
    • Fix Version/s: 4.0.0.Milestone6
    • Component/s: compatibility
    • Security Level: Public (Everyone can see)
    • 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
    • Similar Issues:
      Show 10 results 

      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.

        Issue Links

          Activity

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

          Need to add 'onsuccess' event?

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: