Announcement Announcement Module
Collapse
No announcement yet.
Feature request for webflow Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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

      Comment


      • #4
        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

        Comment


        • #5
          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?

          Comment


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

            I created a JIRA component for SpringWEBFLOW.

            Comment

            Working...
            X