Announcement Announcement Module
Collapse
No announcement yet.
scope searching algorithm Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • scope searching algorithm

    I have an autowired component in my servlet context configuration called "sessionUtils". When I reference it from a flow without specifying a scope, like:

    <evaluate expression="sessionUtils.method()"/>

    everything works fine. However when I attach a scope according to the scope searching algorithm in doc section 3.6, it stops working. None of the five scopes listed works for me (requestScope.sessionUtils, flashScope.sessionUtils, viewScope.sessionUtils, flowScope.sessionUtils, and conversationScope.sessionUtils)

    I want to find out where the flow is getting this variable so that I can mock it up for testing purposes. Where on earth does this component live??

    Im using webflow 2.0.5 and OGNL EL jar 2.7.3

    Thanks,
    -Tony

  • #2
    It most likely lives in the BeanFactory for the application--you can confirm by taking a look at the EL Resolver chain that gets setup by the WebFlowELExpressionParser.

    For testing, you can register stub beans... see the example tests in the swf-booking-mvc reference project.

    Keith

    Comment

    Working...
    X