You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Lance (JIRA)" <ji...@apache.org> on 2012/11/07 17:59:12 UTC

[jira] [Commented] (TAP5-1606) EmbeddedMixin concept

    [ https://issues.apache.org/jira/browse/TAP5-1606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13492500#comment-13492500 ] 

Lance commented on TAP5-1606:
-----------------------------

Another discussion on this issue here (again related to grid): http://tapestry.1045711.n5.nabble.com/Can-I-attach-an-instance-mixin-to-a-nested-component-td5717741.html
                
> EmbeddedMixin concept
> ---------------------
>
>                 Key: TAP5-1606
>                 URL: https://issues.apache.org/jira/browse/TAP5-1606
>             Project: Tapestry 5
>          Issue Type: New Feature
>          Components: tapestry-core
>    Affects Versions: 5.3
>            Reporter: Dragan Sahpaski
>            Priority: Minor
>              Labels: mixin
>         Attachments: EmbeddedMixin patch.diff
>
>
> 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()
>         {
>         }
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira