[jboss-user] [JBoss Seam] - bijection fundamentals

nicolasb do-not-reply at jboss.com
Sun May 20 15:17:40 EDT 2007


i have a stateless bean scoped Event


  | @Name("mybean")
  | @Scope(ScopeType.EVENT)
  | 

i want to use the pages.xml file to include a parameter and execute a method


  | <param name="option" value="#{mybean.option}"/>
  | <action execute="#{mybean.dowork}"/>
  | 

the do work uses the option field in the bean to fill the values of a field which is to be outjected for use in a facelet

everytime i try to do this i get following exception:

  | 21:08:56,531 ERROR [DebugPageHandler] redirecting to debug page
  | org.jboss.seam.RequiredException: @Out attribute requires non-null value: mybean.outVariable
  | 

if i set the scope to session or i fill the outVariable in the setter method of the option field it works. i wonder why in the event scope the bean tries to outject the value.

is it maybe the case that in/outjection happens after every single method call, regardless of the used scope ?

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

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



More information about the jboss-user mailing list