[jboss-user] [JBoss Seam] - @In @Out @In(create=true) confusion

dreuzel do-not-reply at jboss.com
Thu Jun 14 05:13:11 EDT 2007


The problem 


with annotation is that one does not understand what happens  behind the screen.

I'm using  a ejb3-hibernate entity definition(simply defined)


in the pojo      
@In tableclass   xyz   is used

I'm sometimes receving  exceptions  the  xyz nullpointer exception
because (i think)  I conditionaly use XYZ   IN MY FACELET  xhtml definition

depending on some other pojo variable i render the variables pointing to XYZ,  conditionaly


as  in some cases xyz.variables(the prime key) are not rendered the @in initialized xyz is not initialised...   ====> exception

the exception occurs during page initialisation, during the rendering, prior to calling  @begin   so there is very little i can do to solve the bug
it does not help using @out nor @in(create=true)

can anyone confirm my  theory ???  (seam 1.2.1)
any chance for improvement with 1.3 ?
 

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

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



More information about the jboss-user mailing list