2 Replies Latest reply on Mar 4, 2008 10:41 AM by leandro sabin

    injection in page action

    leandro sabin Newbie

      Hi.


      I guess this is a newbie question. Are the @In objects available in a action invoked before a page it is render?


      <page view-id="/mypage.xhtml" action=#{bean.someMethod()}">
      </page>
      



      I found that the injected objects have a null value inside the bean.someMethod(). But if i reference this objects using EL in mypage.xhtml the values are displayed.


      The @In object is created in the previous page and it is in the EVENT scope.


      <page view-id="/previous.xhtml">
               <navigation from-action="#{bean1.createObject()}">
                   <redirect view-id="/mypage.xhtml" /> 
              </navigation>
      </page>
      




      My guess is that this has something to do with the moment the Seam PhaseListener makes its job.


      Thanks