[jboss-user] [JBoss Seam] - Re: problem using entityqueries

jamesjmp do-not-reply at jboss.com
Fri Sep 7 08:41:41 EDT 2007


Thank you, but the same error keeps on happenning


14:31:45,765 ERROR [DebugPageHandler] redirecting to debug page
org.jboss.seam.RequiredException: In attribute requires non-null value: rstReportHome.repTemp


The code is now:

  | @Name("rstReportHome")
  | public class RstReportHome extends EntityHome<RstReport> {
  | ...
  |   @In(create = true) 
  |     RstReportTemplate repTemp;
  | ...
  | public void wire() {
  | ..
  | repTemp.processTemplate(rep);
  | ...

This behaviour, with create=true, doesn´t seem to conform to what is said in the seam reference  anonymous wrote : 
  | @In
  | Specifies that a component attribute is to be injected from a context variable at the beginning of each component
  | invocation. If the context variable is null, an exception will be thrown
  | @In(create=true)
  | Specifies that a component attribute is to be injected from a context variable at the beginning of each component
  | invocation. If the context variable is null, an instance of the component is instantiated by Seam.

I guess I´m still doing something wrong, but I´ve no idea what it is. ;-(



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

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




More information about the jboss-user mailing list