Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-239

Defining a Blossom component with a DynamicFragmentDefinition

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Workaround exists
    • Icon: Neutral Neutral
    • None
    • 3.1.3
    • None

      We are trying to define a component, and we wonder if it would be possible to define the fragmentDefintion as a @Template property, as explained in the docs .

      We checked the Blossom module code and didn't find anything related with the DynamicFragmentDefinition, so maybe it's still not implemented.

      Workaround
      We're using the @PreRegister annotation to define this property:

      @PreRegister
      public void register(BlossomTemplateDefinition templateDefinition) {
        FragmentDefinition fragmentDefinition = new DynamicFragmentDefinition();
        templateDefinition.setFragmentDefinition(fragmentDefinition);
      }
      

        Acceptance criteria

              Unassigned Unassigned
              llozes@hotetec.com Leo Lozes
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD