[jboss-user] [JBoss Seam] - Re: Serializable is needed
dgallego
do-not-reply at jboss.com
Wed Jan 31 04:30:15 EST 2007
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
More information about the jboss-user
mailing list