Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1606

EmbeddedMixin concept

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Incomplete
    • 5.3
    • None
    • tapestry-core

    Description

      The EmbeddedMixin concept allows applying mixins on embedded components of an existing component.

      Usage scenario:
      A mixin can have embedded mixins defined with the new @EmbeddedMixin annotation.

      A motivational demo can be found here http://dragansah.com/demoapp/embeddedmixinexamples

      Usage example:

      <t:grid t:mixins="mixinForGrid" />

      public class MixinForGrid
      {
      // apply the MixinForGridCell mixin to the rows.gridCell subcomponent of the grid
      @EmbeddedMixin(componentId="rows.gridCell")
      private MixinForGridCell mixinForGridcell;

      // render phases on the grid
      void beginRender()
      {
      }
      }

      public class MixinForGridCell
      {
      // render phase on gridCell
      void beginRender()
      {
      }
      }

      Attachments

        1. EmbeddedMixin patch.diff
          18 kB
          Dragan Sahpaski

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dragan.sahpaski Dragan Sahpaski
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: