FLUID-5912: "{arguments}" IoC references in dynamicComponents model block are incorrectly interpreted as implicit model relays

Metadata

Source
FLUID-5912
Type
Bug
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
Antranig Basman
Reporter
Alan Harnum
Created
2016-05-31T14:32:10.729-0400
Updated
2024-07-22T10:35:27.809-0400
Versions
N/A
Fixed Versions
  1. 4.0
Component
  1. Framework

Description

Based on the example at http://docs.fluidproject.org/infusion/development/SubcomponentDeclaration.html#dynamic-subcomponents-with-a-source-event, it should be possible to use the context name "{arguments}" to refer to "the argument list that was used to fire the event which triggered the creation of the particular dynamic subcomponent".

This currently fails within a model options block because the framework interprets {arguments} as an implicit model relay to a nonexistent component if found within model options.

The recommended workaround at this time is to put any {arguments} references in a plain options area and then refer to that from the model.

IRC conversation about the issue: https://botbot.me/freenode/fluid-work/2016-05-31/?msg=67028698&page=2

Gist with example code at https://gist.github.com/waharnum/8c1abcbec3f9786c899f9e6637564c8c

Comments