[jboss-user] [JBoss Seam] - @DataModelSelection in stateful bean

kaviarasu do-not-reply at jboss.com
Fri Jul 13 08:31:19 EDT 2007


Code:
  | @Stateful
  | @Scope(SESSION)
  | @Name("usermessage2")
  | public class UserComments implements Serializable, UserDisplay1 {
  | 	private static final long serialVersionUID = 1L;
  | 	@DataModel
  | 	private List userList2;
  | 	
  |  @DataModelSelection                                                                   
  |  @Out(required=false)                                  
  | private TblComments1 message;
  | 
  | 	@PersistenceContext
  | 	private EntityManager em;
  | 	long productid=1001;
  | 	@Factory("userList2")
  | 	  

im using the above code 
but it giving me error Could not create Component: usermessage2 
can any one give me suggestion 

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

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



More information about the jboss-user mailing list