Griffon
  1. Griffon
  2. GRIFFON-616

Enhance MetaComponentFactory to allow callbacks in generated controller - to enable children of metaComponent()

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.3.0
    • Component/s: rt
    • Labels:
      None
    • Environment:
      all
    • Patch Submitted:
      Yes
    • Number of attachments :
      0

      Description

      metaComponent() currently does not allow children, so a MetaComponent cannot be a container of any kind.

      After the patch, the MetaComponents-controller will be notified with callbacks while the MetaComponentFactory creates and configures the component, so configuration can be done in the usual way - and adding children can be handled.

      The callbacks are named like the Factory-Methods:

      boolean onHandleNodeAttributes(FactoryBuilderSupport builder, Object node, Map attributes)
      void setChild(FactoryBuilderSupport builder, Object parent, Object child)
      void setParent(FactoryBuilderSupport builder, Object parent, Object child)
      void onNodeCompleted(FactoryBuilderSupport builder, Object parent, Object node)
      

        Activity

        Show
        Alexander Klein added a comment - Fixed with https://github.com/griffon/griffon/commit/3624ce5a4984c2620fbf9a3951c9bb63c2f7a1eb

          People

          • Assignee:
            Alexander Klein
            Reporter:
            Alexander Klein
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved: