Comments (4)
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.
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.
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.
Keith Donald commented
Fixed all known inconsistencies.
from spring-webflow.
Related Issues (20)
- Spring Faces migration to Jakarta EE HOT 7
- Update JSF samples to Jakarta EE HOT 1
- How accept a enum value in post method? HOT 1
- No documentation published yet for SWF 3.0.0 GA HOT 6
- Running with Framework 6.2.0-SNAPSHOT gives NoSuchMethodException for parameterless action HOT 1
- Springboot Version 2.5.12 [SWF-1754] HOT 1
- spring ws security vulnerability [SWF-1758] HOT 1
- Transition between view in a web flow [SWF-1746] HOT 1
- It is not possible to store a flow's messages external to the app's jar [SWF-1747]
- Not possible to find out how to change the location of the message bundle used by a flow [SWF-1748] HOT 1
- SWF makes JSF's ViewState lose CSRF token characteristics [SWF-1749]
- Plans to port to Jakarta EE 9? [SWF-1750] HOT 1
- Spring boot microservice not falling back to default [SWF-1751] HOT 1
- Spring does not Throw Exception if duplicate property [SWF-1752] HOT 1
- Redundant default security when spring-security-core in the classpath [SWF-1753] HOT 2
- Spring rsocket not works properly in request Channel mode from version 2.5 of the spring framework onwards [SWF-1755] HOT 1
- Loading document with Map<String,Object> as one of field giving Basic type must not be null! [SWF-1756] HOT 1
- Compatibility with Spring Framework 6, Java 17, and Jakarta EE [SWF-1757] HOT 3
- Spring Data Redis -2.7.3 [SWF-1759] HOT 1
- Maximum cursor exceeds ORA-01000: maximum open cursors exceeded [SWF-1760] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-webflow.