I have a slight problem with @Factory (again) ... maybe factory is not meant to 
be used this way but anyhow;

I have a 'data' component in the EVENT scope that have a @Factory method. I 
want the factory to be called when no other component has outjected the 'data' 
component. This works great  as long as 'data' is null.

The problem is that if a call an action in any component that is outjecting 
'data' and 'data' was outjected in the previous action (by the factory or in 
another way) the factory method gets called in the APPLY_REQUEST_VALUES phase. 
If I call an action in a component that is not going to outject 'data' 
everything works as I want and the factory gets called in the RENDER_RESPONSE 
phase.

Setting the 'data' component to CONVERSATION (or PAGE) removed the call to the 
factory during the APPLY_REQUEST_VALUES phase but since the data '"dead" after 
the EVENT I really would like to keep 'data' as an EVENT component.

Is there any way to prevent the call in APPLY_REQUEST_VALUES or do I have to 
use CONVERSATION here?


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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to