Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-1160

Apache Trinidad ajax requests (PPR) don't work.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Deferred
    • Affects Version/s: 2.0.7
    • Fix Version/s: 2.0.8
    • Component/s: None
    • Labels:
      None

      Description

      In doResume method (ViewState.class), isAjaxRequest always returns false, SWF executes an incorrect redirect and PPR requests fail.

      To solve this we need to create and configure a new AjaxHandler. This is not explained in the reference documentation.

      1. ApacheTrinidadAjaxHandler.java
        1 kB
        Miguel Angel Sosvilla Luis
      2. config.xml
        0.3 kB
        Miguel Angel Sosvilla Luis

        Activity

        Hide
        kdonald Keith Donald added a comment -

        Jeremy,
        A note about AjaxHandler in the Web Flow docs would be helpful to the community.

        Show
        kdonald Keith Donald added a comment - Jeremy, A note about AjaxHandler in the Web Flow docs would be helpful to the community.
        Hide
        jeremyg484 Jeremy Grelle added a comment -

        The attached implementation is somewhat incomplete, though it is a good start. It handles the detection of an Ajax request correctly, but still uses the Spring JavaScript-specific headers for handling a redirect. The proper way to handle a redirect with Trinidad still needs to be determined before this could be included in Spring Faces.

        That said, I have added a brief explanation of the AjaxHandler interface to the documentation as well as a note in the section on Trinidad linking to this issue.

        Show
        jeremyg484 Jeremy Grelle added a comment - The attached implementation is somewhat incomplete, though it is a good start. It handles the detection of an Ajax request correctly, but still uses the Spring JavaScript-specific headers for handling a redirect. The proper way to handle a redirect with Trinidad still needs to be determined before this could be included in Spring Faces. That said, I have added a brief explanation of the AjaxHandler interface to the documentation as well as a note in the section on Trinidad linking to this issue.

          People

          • Assignee:
            jeremyg484 Jeremy Grelle
            Reporter:
            msosvi Miguel Angel Sosvilla Luis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development