[jboss-user] [JBoss Seam] - Re: How to Inject app properties to bean transient method

Stateless Bean do-not-reply at jboss.com
Mon Mar 19 09:38:49 EDT 2007


That's not exacly i want to...
look:
My Entity Bean looks like this:

private int howOld;
private boolean sex;


  | @Transient
  | public String getPersonName() {
  | 
  |       if(sex) {
  |            switch(howOld) {
  |                  case(20) :
  |                   //And here i want to get some text from app properties like                 example:
  |                  messages.get('sex.youngMane'); <-----here i want to Inject some string
  |                  break:
  |                  .....
  |            }
  |       }
  | }
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029303#4029303

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029303



More information about the jboss-user mailing list