spring-projects / spring-webflow

Spring Web Flow
https://spring.io/projects/spring-webflow
Apache License 2.0
324 stars 231 forks source link

Apache Trinidad ajax requests (PPR) don't work. [SWF-1160] #1762

Closed spring-operator closed 15 years ago

spring-operator commented 15 years ago

Miguel Angel Sosvilla Luis opened SWF-1160 and commented

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.


Affects: 2.0.7

Reference URL: http://forum.springsource.org/showthread.php?t=74388

Attachments:

spring-operator commented 15 years ago

Keith Donald commented

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

spring-operator commented 15 years ago

Jeremy Grelle commented

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.