[jboss-user] [JBoss Seam] - Re: Session context variable missing
petemuir
do-not-reply at jboss.com
Mon Jun 11 18:41:10 EDT 2007
"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
More information about the jboss-user
mailing list