diff --git a/spring-webflow-reference/src/actions.xml b/spring-webflow-reference/src/actions.xml index ee9157c3..33e885e1 100644 --- a/spring-webflow-reference/src/actions.xml +++ b/spring-webflow-reference/src/actions.xml @@ -369,6 +369,36 @@ public class BookingAction extends MultiAction { In this example, the flow will transition to showResults when thingTwo completes successfully. - + + + Streaming actions + + Sometimes an Action needs to stream a custom response back to the client. + An example might be a flow that renders a PDF document when handling a print event. + This can be achieved by having the action stream the content then record "Response Complete" status on the ExternalContext. + The responseComplete flag tells the pausing view-state not to render the response because another object has taken care of it. + + + + + +]]> + + + + + In this example, when the print event is raised the flow will call the printBoardingPassAction. + The action will render the PDF then mark the response as complete. + + \ No newline at end of file