FLUID-5193: The matching form '*' in IoCSS doesn't match any subcomponents

Metadata

Source
FLUID-5193
Type
Bug
Priority
Minor
Status
Reopened
Resolution
N/A
Assignee
Antranig Basman
Reporter
Cindy Li
Created
2013-10-28T12:04:17.897-0400
Updated
2021-07-29T01:37:59.758-0400
Versions
  1. 1.4
  2. 1.5
  3. 2.0
  4. 3.0
Fixed Versions
  1. 5.0
Component
  1. Framework

Description

When the star sign :yellow_star: is used in the target to match and pass down options to any sub-compnents, for example:

distributeOptions: {
source: "{that}.options.userOption",
removeSource: true,
target: "{that > *}.options.userOption"
}

The specified option doesn't get passed down to all direct subcomponents in this example.

A test case has been created @ https://github.com/cindyli/infusion/blob/FLUID-5193/src/tests/framework-tests/core/js/FluidIoCTests.js#L3575-L3599

Comments

  • Antranig Basman commented 2013-11-19T12:23:56.466-0500

    Hi - this is indeed a bug in the framework which we should fix, but I think it is of low priority since the use case for matching all subcomponents without qualification is quite weak - in fact, it could be seen to be positively harmful since it prohibits the "openness" of the subcomponent set, in that we do usually expect that subcomponents can be freely contributed by 5th parties without penalties. In the medium term we suggested a workaround based on the use of grade qualification in the IoCSS expression to {that > fluid.prefs.enactor} - see recent IRC discussion at http://wiki.fluidproject.org/display/fluid/fluid-work+IRC+Logs-2013-11-19