[seam-commits] Seam SVN: r13276 - examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Sat Jun 19 18:57:13 EDT 2010


Author: pete.muir at jboss.org
Date: 2010-06-19 18:57:13 -0400 (Sat, 19 Jun 2010)
New Revision: 13276

Modified:
   examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account/CurrentPasswordValidator.java
Log:
Instance is not needed

Modified: examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account/CurrentPasswordValidator.java
===================================================================
--- examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account/CurrentPasswordValidator.java	2010-06-19 22:56:06 UTC (rev 13275)
+++ examples/trunk/booking-simplified/src/main/java/org/jboss/seam/examples/booking/account/CurrentPasswordValidator.java	2010-06-19 22:57:13 UTC (rev 13276)
@@ -21,7 +21,6 @@
  */
 package org.jboss.seam.examples.booking.account;
 
-import javax.enterprise.inject.Instance;
 import javax.faces.application.FacesMessage;
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
@@ -41,7 +40,7 @@
 public class CurrentPasswordValidator implements Validator
 {
    @Inject
-   private Instance<BundleTemplateMessage> msg;
+   private BundleTemplateMessage messageBuilder;
 
    @Inject
    @Authenticated
@@ -56,7 +55,7 @@
          /*
           * This is an ugly way to put i18n in FacesMessages: https://jira.jboss.org/browse/SEAMFACES-24
           */
-         throw new ValidatorException(new FacesMessage(msg.get().text(
+         throw new ValidatorException(new FacesMessage(messageBuilder.text(
                   new DefaultBundleKey("account_passwordNotConfirmed")).build()
                   .getText()));
       }



More information about the seam-commits mailing list