1 Reply Latest reply on Jul 29, 2010 1:04 PM by Wang Liyu

    Question about the EL expression of @Produces obj

    Wang Liyu Apprentice
      I have a bean that has @Produces method to create the immutable object instance, for example (see login sample in the Weld)

      @Produces @LoggedIn
          public User getCurrentUser() {
              return user;
          }

      so in the JSF page the el mapping to the User is #{login.currentUser}, is there a way to just mapping it to #{currentUser}?

      And will the @Produces cause any extra operations other than normal JSF operations?