This content has been marked as final.
Show 5 replies
-
1. Re: Hot to refer a factory method from other seam action class
visumagic Dec 17, 2008 9:04 PM (in response to visumagic)I found Contexts.lookupInStatefulContexts
hopefully it should work,this is going to search all the contexts it would be better if the function name is changed to serchInAllContexts , ..thnks
raghu -
2. Re: Hot to refer a factory method from other seam action class
visumagic Dec 17, 2008 9:07 PM (in response to visumagic)But it's not able to refer psydo-componets (factory) ..
how we can refer to factories directly ..thanks
raghu -
3. Re: Hot to refer a factory method from other seam action class
stefanotravelli Dec 17, 2008 10:28 PM (in response to visumagic)I think you are looking for org.jboss.seam.Component.getInstance().
There are various flavors:
Component.getInstance(Class clazz, boolean create) Component.getInstance(Class, ScopeType scope) Component.getInstance(String name)
Regarding expression evaluation I would look at org.jboss.seam.core.Expressions.
Hope this helps.
-
4. Re: Hot to refer a factory method from other seam action class
visumagic Dec 18, 2008 5:38 AM (in response to visumagic)hi Stefano
thanks for your reply .. it helps us a lot
raghu
-
5. Re: Hot to refer a factory method from other seam action class
visumagic Jan 9, 2009 2:16 PM (in response to visumagic)I found a good method to evaluate expressions. using which we can access all scoped components.
Object value = Expressions.instance().createValueExpression("#{parameters.requestParamaters}").getValue();
thanks
raghu