I'm trying to outject a new "Category" instance from a method markes as a 
factory method.

"Category" is my entity POJO.


  | @Out(scope=ScopeType.CONVERSATION,required=false)   
  | Category selectedCategory;
  | 

This is my factory method:


  | @Factory("categoryArticles")
  | public void CategoryViewer() {
  | selectedCategory = (Category)em.createQuery("from Category c where id = 
:categoryId").setParameter("categoryId", categoryId).getSingleResult();
  | }
  | 


So whenever I want to write an object to a Seam context, it has to be 
Serializable... 

 Thanks Norman!


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008704
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to