diff --git a/spring-webflow-samples/sellitem-jsf/src/main/webapp/categoryForm.jsp b/spring-webflow-samples/sellitem-jsf/src/main/webapp/categoryForm.jsp index 693902f5..4b434db2 100644 --- a/spring-webflow-samples/sellitem-jsf/src/main/webapp/categoryForm.jsp +++ b/spring-webflow-samples/sellitem-jsf/src/main/webapp/categoryForm.jsp @@ -1,7 +1,21 @@ -<%@ include file="includeTop.jsp" %> +<%@ page contentType="text/html" %> +<%@ page session="false" %> +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> + + + +Sell Item - Select Category + + + + + + -

Select category

@@ -39,7 +53,10 @@
-
-<%@ include file="includeBottom.jsp" %> \ No newline at end of file + + + \ No newline at end of file diff --git a/spring-webflow-samples/sellitem-jsf/src/main/webapp/costOverview.jsp b/spring-webflow-samples/sellitem-jsf/src/main/webapp/costOverview.jsp index 55d6678d..6e54868b 100644 --- a/spring-webflow-samples/sellitem-jsf/src/main/webapp/costOverview.jsp +++ b/spring-webflow-samples/sellitem-jsf/src/main/webapp/costOverview.jsp @@ -1,6 +1,18 @@ -<%@ include file="includeTop.jsp" %> +<%@ page contentType="text/html" %> +<%@ page session="false" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - + + +Sell Item - Enter Shipping Information + + + + + +
@@ -52,8 +64,10 @@ -
+ -
- -<%@ include file="includeBottom.jsp" %> + + + \ No newline at end of file diff --git a/spring-webflow-samples/sellitem-jsf/src/main/webapp/index.jsp b/spring-webflow-samples/sellitem-jsf/src/main/webapp/index.jsp index 91083c0e..62f04a2c 100644 --- a/spring-webflow-samples/sellitem-jsf/src/main/webapp/index.jsp +++ b/spring-webflow-samples/sellitem-jsf/src/main/webapp/index.jsp @@ -3,8 +3,6 @@ - - diff --git a/spring-webflow-samples/sellitem-jsf/src/main/webapp/intro.jsp b/spring-webflow-samples/sellitem-jsf/src/main/webapp/intro.jsp index a145fe49..c3e20e8f 100644 --- a/spring-webflow-samples/sellitem-jsf/src/main/webapp/intro.jsp +++ b/spring-webflow-samples/sellitem-jsf/src/main/webapp/intro.jsp @@ -1,52 +1,35 @@ -<%@ page session="true" %> <%-- make sure we have a session --%> + <%-- make sure we have a session --%> +<%@ page session="true" %> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> - - - - - -
Sell Item - A Spring Web Flow Sample (JSF Version)
- -
- -
-

- - - -

- -

- This Spring web flow sample application implements the example application - discussed in the article - - Use continuations to develop complex Web applications. It illustrates - the following concepts: -

    -
  • - Spring Web Flow's JSF integration. -
  • -
  • - Using the flowId: command link prefix to let the view tell the web - flow controller which flow needs to be started. -
  • -
  • - Implementing a wizard using web flows. -
  • -
  • - Using OGNL based conditional expressions. -
  • -
-

-
- -
+ + -
- - + +
+

+ + + +

+

+ This Spring Web Flow sample application is the JSF-based version of the familiar "Sell item" sample. + It illustrates the following concepts: +

+
    +
  • Using Spring Web Flow with JSF
  • +
  • Implementing a wizard using web flows.
  • +
  • Using continuations to make the flow completely stable, no matter how browser navigation buttons are used.
  • +
  • + Using "conversation invalidation after completion" to prevent duplicate submits of the same sale + while taking advantage of continuations to allow back button usage while the application transaction is in process.
  • +
  • "Always redirect on pause" to benefit from the POST+REDIRECT+GET pattern with no special coding.
  • +
  • Using OGNL based conditional expressions.
  • +
  • Use of subflows to compose a multi-step business process from independently reusable modules.
  • +
+
- - \ No newline at end of file + + + \ No newline at end of file diff --git a/spring-webflow-samples/sellitem-jsf/src/main/webapp/priceAndItemCountForm.jsp b/spring-webflow-samples/sellitem-jsf/src/main/webapp/priceAndItemCountForm.jsp index 005d2de6..9a785246 100644 --- a/spring-webflow-samples/sellitem-jsf/src/main/webapp/priceAndItemCountForm.jsp +++ b/spring-webflow-samples/sellitem-jsf/src/main/webapp/priceAndItemCountForm.jsp @@ -1,54 +1,61 @@ <%@ page contentType="text/html" %> -<%@ include file="includeTop.jsp"%> +<%@ page session="false" %> +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> + + + +Sell Item - Enter Price and Item Count + + + + + + - -
+
- - - - -
${curError}
-
-
-
-

Enter price and item count


- - + +
Price: + +    - +
Item count: - + +    - +
-
-
- +
-<%@ include file="includeBottom.jsp"%> + + + \ No newline at end of file diff --git a/spring-webflow-samples/sellitem-jsf/src/main/webapp/shippingDetailsForm.jsp b/spring-webflow-samples/sellitem-jsf/src/main/webapp/shippingDetailsForm.jsp index 64765688..dcef9724 100644 --- a/spring-webflow-samples/sellitem-jsf/src/main/webapp/shippingDetailsForm.jsp +++ b/spring-webflow-samples/sellitem-jsf/src/main/webapp/shippingDetailsForm.jsp @@ -1,8 +1,22 @@ -<%@ include file="includeTop.jsp" %> +<%@ page contentType="text/html" %> +<%@ page session="false" %> +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> + + + +Sell Item - Enter Shipping Information + + + + + + - -
+

Enter shipping information


@@ -37,8 +51,11 @@ -
- +
-<%@ include file="includeBottom.jsp" %> \ No newline at end of file + + + \ No newline at end of file diff --git a/spring-webflow-samples/sellitem/src/main/webapp/index.jsp b/spring-webflow-samples/sellitem/src/main/webapp/index.jsp index 0b72e6a5..3de6e42d 100644 --- a/spring-webflow-samples/sellitem/src/main/webapp/index.jsp +++ b/spring-webflow-samples/sellitem/src/main/webapp/index.jsp @@ -11,20 +11,22 @@

This Spring Web Flow sample application implements the example application discussed in the article - Use continuations to develop complex Web applications. - It illustrates the following concepts: + Use continuations to develop complex Web applications. It illustrates the following concepts: