Metadata
- Source
- FLUID-5286
- Type
- Improvement
- Priority
- Major
- Status
- Closed
- Resolution
- Fixed
- Assignee
- Antranig Basman
- Reporter
- Antranig Basman
- Created
2014-03-11T16:49:30.840-0400 - Updated
2016-08-18T11:39:20.619-0400 - Versions
- N/A
- Fixed Versions
-
- 2.0
- Component
-
- Data Binder
- IoC System
Description
The "currency converter" sample at http://wiki.fluidproject.org/display/docs/Evented+Components could be written with one less coded invoker if it were possible to specify IoC-resolved arrays of path segments as parts of "changePath" records - for example, we could have written the invoker definition for "updateRate" as
updateRate: {
changePath: ["rates", "{arguments}.0"],
value: "{arguments}.1"
}
this would be rather easy to implement and quite helpful. Currently changePath must be a string which is interpreted by fluid.parseValidModelReference.
We should take the opportunity to support some kind of top-level option such as "targetModel" so that we can easily express references to foreign components without some kind of painful ambiguity in the interpretation of the first path segment.
Comments
-
Antranig Basman commented
2016-08-18T11:39:06.915-0400 This was resolved with the merge of https://github.com/fluid-project/infusion/pull/671 for FLUID-5586, FLUID-5695 etc.