[jboss-user] [JBoss Seam] - Re: specific @SelectItem Question -

mrohad do-not-reply at jboss.com
Mon Aug 14 18:08:53 EDT 2006


no it doesn't get called what do you recommend?!

this is my code

  | @Stateless
  | @Scope(ScopeType.APPLICATION)
  | @Name("login")
  | public class LoginAction 
  |     implements Login,Serializable
  | {
  | 
  | 	private static final long serialVersionUID = 1L;
  | 
  | 	private static final String USER_VAR = "loggedIn";
  | 
  |     @PersistenceContext
  |     private EntityManager em;
  | 
  |     @In
  |     private Context sessionContext;
  | 
  |     
  |     @SelectItems(labelMethod="getLabel",disabledMethod="getDisabled")
  |     private List<Codes> cLang;
  |     
  |     @Factory("cLang")
  |     public void getLanguages() 
  |     {
  |     	List resultList = em.createQuery("select c from Codes c where c.table = :table")
  |     	.setParameter("table","languages")
  |     	.getResultList();
  |     	this.cLang = resultList;
  |   
  |     }
  |     
  | 
  | 
  | 
  | 
  |  	
  |     }
  | 

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

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



More information about the jboss-user mailing list