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

oncomplete documentation in richfaces_userguide.pdf wrong

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.1.5
    • Fix Version/s: 3.3.0
    • Component/s: doc
    • Labels:
      None

      Description

      I assume there is a bug in the current richfaces-userguide.pdf, section 5.4.5. JavaScript Interactions:
      It says:
      "oncomplete" attribute allows to invoke the JavaScript code right after the Ajax Response is returned back and the DOM tree of the browser is updated. Richfaces registers the code for further invocation of XMLHTTP request object before an Ajax request is sent. This means the code will not be changed during processing of the request on the server if you use JSF EL value binding. Also, you cannot use "this'" inside the code, because it will not point the component where Ajax request was initiated.

      Is this description deprecated or is the implementation in richfaces 3.1.5 wrong?

      sample:
      actionListener="#

      {mybean.al}

      "
      oncomplete="#

      {!empty requestScope['someVar']?'doA();':'doB();'}

      "
      depending on what I do in my actionListener doA or doB is called.

      Therefore I think the documentation has to be updated.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                nbelaevski Nick Belaevski
                Reporter:
                mhn Michael Heinen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: