5 Replies Latest reply on Mar 20, 2007 9:28 AM by Pete Muir

    How to Inject app properties to bean transient method

    Stateless Bean Novice

      I have collection of Entity Beans in my Statefull Bean loaded from DB, and iterated in page in <h:dataTable, like:

      List listOfMyBeans;

      And here is my problem: i need to load some text from app properties, if some field in bean is true/false, nevermind.
      I have two ideas:
      1. get this text from app properties when iterating my collection on page.
      2. When load my collection in Statefull Bean, here text is injected into my entity bean.

      What way is better?
      if first, here i got problem, how to get into my messages map from Entity Bean when iterating directly on page?

      protected Map<String, String> messages;