[jboss-user] [JBoss Seam] - Re: @In(create=true) throws exception when variable is null?
SmokingAPipe
do-not-reply at jboss.com
Wed Dec 13 05:35:17 EST 2006
I thought that if you had:
@In(create=true) Foo createFoo
that would look at the variable name, which is createFoo, and use that as the Seam variable name?
Anyway, I tried:
@In(create=true,value="createFoo") Foo createFoo
and that still gave the same exception. The only time it doesn't give an exception is when I put in required=false, like:
@In(create=true,required=false) Foo createFoo
but then it looks like createFoo is never created. This makes no sense!
Note that I don't have a "createFoo" role attached to the Foo class. Do I need that also?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993329#3993329
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993329
More information about the jboss-user
mailing list