Results 1 to 6 of 6

Thread: Feature request for webflow

  1. #1
    Join Date
    Sep 2004
    Posts
    346

    Default Feature request for webflow

    Just like you can do below I would like to be able to do equivalent for request or session attribute in a webflow.

    i.e something like:
    <action-state id="criteria.view">
    <export scope="request"
    bean="productTypeActions"
    method="loadAll"/>


    Code:
    You could use a MethodInvokingFactoryBean for this&#58; 
    
    <bean class="org.springframework.web.context.support.ServletContextAttributeExporter"> 
      <property name="attributes"> 
        <map> 
          <entry key="myScAttr"> 
            <bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> 
              <property name="targetObject"><ref bean="objectDao/></property> 
              <property name="targetMethod"><value>getProperty</value></property> 
            </bean> 
          </entry> 
        </map> 
      </property> 
    </bean>

  2. #2
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    I'm not sure I completely understand what you want to do. Do you want to take a bean from the Spring application context and put it in request scope or flow scope?

    Erwin

  3. #3
    Join Date
    Sep 2004
    Posts
    346

    Default yes that's right. Either bean or bean method call result

    yes that's right. Either bean or bean method call result.

    Similar to what happens here for servlet context attribute:
    http://opensource.atlassian.com/proj...browse/SPR-566

  4. #4
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    Not sure if we want to put this in the XML or not.

    In any case,yes, I agree a method invoking action that can go out and put the result of some method in some scope of the flow would be a good feature.

    Keith
    Keith Donald
    Core Spring Development Team

  5. #5
    Join Date
    Sep 2004
    Posts
    346

    Default Please let me know when the functionalilty is addressed.

    Please let me know when the functionalilty is addressed. By the way is there a JIRA for webflow?

  6. #6
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    Just follow our change log for information about changes in future webflow releases.

    I created a JIRA component for SpringWEBFLOW.
    Keith Donald
    Core Spring Development Team

Similar Threads

  1. Replies: 17
    Last Post: Jan 2nd, 2007, 01:43 PM
  2. Hibernate Long Session Per Flow?
    By akw in forum Web Flow
    Replies: 21
    Last Post: Dec 12th, 2005, 08:06 PM
  3. Replies: 9
    Last Post: Nov 1st, 2005, 10:36 PM
  4. Feature request: PropertiesBeanDefRdr constuctor args
    By Colin Yates in forum Container
    Replies: 2
    Last Post: Aug 4th, 2005, 08:03 AM
  5. Loosing my SecureContext
    By sklakken in forum Security
    Replies: 3
    Last Post: Jul 21st, 2005, 01:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •