P. 1
Spring Webflow Reference

Spring Webflow Reference

4.8

|Views: 5,911|Likes:
Published by vips141
Its define all Step by Step Spring Configuration.
Its define all Step by Step Spring Configuration.

More info:

Published by: vips141 on May 26, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

10/14/2011

pdf

text

original

The easiest and most natural way to declare and manage the model is through the use of flow variables .
You can declare these variables at the beginning of the flow:

and then reference this variable in one of the flow's JSF view templates through EL:

please define productname in your docbook file!

Version 2.0.1

Spring Web Flow 2 Reference

64

Note that you do not need to prefix the variable with its scope when referencing it from the template
(though you can do so if you need to be more specific). As with standard JSF beans, all available scopes
will be searched for a matching variable, so you could change the scope of the variable in your flow
definition without having to modify the EL expressions that reference it.

You can also define view instance variables that are scoped to the current view and get cleaned up
automatically upon transitioning to another view. This is quite useful with JSF as views are often
constructed to handle multiple in-page events across many requests before transitioning to another view.

To define a view instance variable, you can use the var element inside a view-state definition:


You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->