"gmarcus" wrote : Is it true that during injection, SEAM will lookup a named 
component in all scopes based on the well known precedence (STATELESS, EVENT, 
PAGE, ...)?

Yes



anonymous wrote : I thought that by default, SEAM will outject to the same 
scope that it injected from.   My thinking was that for every function call on 
my SFSB, SEAM would inject currentCategory from the SESSION, let it be changed 
by the SFSB and outject it back to the SESSION.

No, it outjects into the specified scope, or if unspecified, the scope of the 
parent component.  @In and @Out have no effect on the operation of each other.

anonymous wrote : 
  |   | ...
  |   |     @DataModel
  |   |     private List<Category> categories;
  |   | 
  |   |     @DataModelSelection
  |   |     private Category selectedCategory;
  |   | 
  |   | ...
  |   | 
  |   |     @Create
  |   |     public String init()
  |   |     {
  |   |         if (currentCategory == null)
  |   |         {
  |   |         currentCategory = (Category) 
em.createNamedQuery("Category.findRoot").getSingleResult();
  |   |         }
  |   |         return "success";
  |   |     }
  |   | 
  |   | ...
  |   | 
  |   |     public void select()
  |   |     {
  |   |         currentCategory = selectedCategory;
  |   |         return;
  |   |     }
  |   | 
  |   | ...
  |   | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053297
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to