@@ -4,8 +4,8 @@ title=The billpayment Example: Using Events and Interceptors
44next=cdi-adv-examples006.html
55prev=cdi-adv-examples004.html
66~~~~~~
7- The billpayment Example: Using Events and Interceptors
8- ======================================================
7+ = The billpayment Example: Using Events and Interceptors
8+
99
1010[[GKHPA]]
1111
@@ -16,7 +16,7 @@ The billpayment Example: Using Events and Interceptors
1616The `billpayment` example shows how to use both events and interceptors.
1717
1818The source files are located in the
19- tut-install ` /examples/cdi/billpayment/src/main/java/javaeetutorial/billpayment/`
19+ `_tut-install_ /examples/cdi/billpayment/src/main/java/javaeetutorial/billpayment/`
2020directory.
2121
2222The following topics are addressed here:
@@ -106,7 +106,7 @@ public class PaymentHandler implements Serializable {
106106 public void debitPayment(@Observes @Debit PaymentEvent event) {
107107 logger.log(Level.INFO, "PaymentHandler - Debit Handler: {0}",
108108 event.toString());
109-
109+
110110 // call a specific Debit handler class...
111111 }
112112}
@@ -137,7 +137,7 @@ this:
137137----
138138 <h:body>
139139 <h3>Bill Payment Options</h3>
140- <p>Enter an amount, select Debit Card or Credit Card,
140+ <p>Enter an amount, select Debit Card or Credit Card,
141141 then click Pay.</p>
142142 <h:form>
143143 <p>
@@ -156,7 +156,7 @@ this:
156156 </h:selectOneRadio>
157157 <p><h:commandButton id="submit" value="Pay"
158158 action="#{paymentBean.pay}" /></p>
159- <p><h:commandButton value="Reset"
159+ <p><h:commandButton value="Reset"
160160 action="#{paymentBean.reset}" /></p>
161161 </h:form>
162162 ...
@@ -199,7 +199,7 @@ Facelets page and will pass on to the event:
199199 public static final int DEBIT = 1;
200200 public static final int CREDIT = 2;
201201 private int paymentOption = DEBIT;
202-
202+
203203 @Digits(integer = 10, fraction = 2, message = "Invalid value")
204204 private BigDecimal value;
205205
@@ -466,5 +466,3 @@ INFO: PaymentHandler created.
466466INFO: Entering method: debitPayment in class billpayment.listener.PaymentHandler
467467INFO: PaymentHandler - Debit Handler: Debit = $1234.56 at Tue Dec 14 14:50:28 EST 2010
468468----
469-
470-
0 commit comments