[jboss-user] [JBoss Seam] - Inject messages into JavaBean

monkeyden do-not-reply at jboss.com
Thu Mar 8 10:38:11 EST 2007


Trying to inject a map (messages) into my JavaBean (not a SB).  Is this code possible?  For that matter, @Logger doesn't work either.

@Name("paginator")
  | @Scope(SESSION)
  | public class DefaultPaginator implements Paginator {
  |     @Logger
  |     private Log log;
  |     
  |     @In private Map<String, String> messages;
  |     
  |     @In("#{messages['paginator.linktext.prev']}") 
  |     private String previous;
  |     
  |     @In("#{messages['paginator.linktext.next']}") 
  |     private String next;
  | 
  | ...    
  |    
  | }
  | 

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

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



More information about the jboss-user mailing list