I haven't got the "contextual components" right.

If I read the documentation, it tells me that a SLSB (Seam Component, because 
annotated with @Name) is being put in the stateless context. A non-Seam 
Component is being put in the context which I annotated with @Out (scope=...), 
eg the EVENT-Context, or alternatively in the context to which the parent 
component belongs. The EVENT-Context should be flushed after the request. So 
all components in this context have to be deleted. 
So, I've created a SLSB, which outjects a LinkedList into the EVENT-Context. 
This LinkedList represents my menu, which is read from the database. So I would 
think, if I refresh my page the menu has to be assembled once again, since the 
old request has ended, and a new one has to look for my menu-component, using 
it's @Factory-method to create it once again. But my page shows the doubled 
menu. Where does this data come from? 
I could "null" my LinkedList before I fill it again, but then I'm far from 
understanding what the contexts are "doing".

My Problem described in the entry above belongs to the same "unknowing". 
I populate a DataModel on a page, every entry has a link to a page for editing 
the entry. The actionmethod behind this link starts a long running 
conversation. So I think that I can simply outject the DataModelSelection into 
the started long running conversation and Inject it into the component 
responsible for editing, which is also conversation scoped. But there it won't 
be found. If I look onto the debugpage, I find it! 
 
After editing, the "Save"-actionmethod should end the conversation.

Can anybody tell me what I have missed?


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

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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to