Giter VIP home page Giter VIP logo

Comments (4)

spring-operator avatar spring-operator commented on September 13, 2024

Keith Donald commented

Also the following inconsistency exists (in 1.0 M1 nightly)

<action-state id="book">
<action bean="bookingAgent" method="book(${flowScope.reservation})" resultName="confirmation" resultScope="request"/>
</action-state>
"book(${flowScope.reservation})" is not an OGNL expression: it's a specific string-encoding of a spring-binding MethodKey, used by the spring-binding method-binding subsystem. This might be confusing to users?

from spring-webflow.

spring-operator avatar spring-operator commented on September 13, 2024

Erwin Vervaet commented

There's probably a case to be made for just having ${...} in any string interpreted as an expression that should evaluate agains the RequestContext, at least in those places where it makes sense.

I know users have already been asking for things like this:

<end-state id="..." view="redirect:${requestScope.viewName}?id=${requestScope.obj.id}"/>

Which is not currently supported afaik.

It might also be usefull to have an 'evaluateExpression(String)' method on the RequestContext. That would make it easy for actions to accept expressions as properties, e.g. something like:

<action bean="...">
<property name="foo" value="${flowScope.bar}"/>
</action>

from spring-webflow.

spring-operator avatar spring-operator commented on September 13, 2024

Keith Donald commented

We've discussed the method binding expression usage, and view the current support to be adequate: a specialized method binding expression specific to SWF, and not OGNL. It's makes it much simpler / concise to users in their specification of a string-encoded method binding expression, and reduces our dependency on OGNL.

Keith

from spring-webflow.

spring-operator avatar spring-operator commented on September 13, 2024

Keith Donald commented

Fixed all known inconsistencies.

from spring-webflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.