[
https://issues.apache.org/jira/browse/TAP5-103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12726411#action_12726411
]
Alfie Kirkpatrick commented on TAP5-103:
----------------------------------------
I have voted for this issue because I also think Howard's idea of somehow
linking parameters together would be really elegant if achievable.
But isn't there a simple workaround where we just duplicate the parameter
between the mixin and the container? I have a zone parameter on my overlay
mixin so if I mix it with another component that also has a zone parameter I
need:
<t:actionlink zone="zone1" overlay.zone="zone1">...</t:actionlink>
In my case it is a literal but if it was a property binding, wouldn't changes
to the property be propogated between the component and the mixin?
> provide access to component parameters from within mixins
> ---------------------------------------------------------
>
> Key: TAP5-103
> URL: https://issues.apache.org/jira/browse/TAP5-103
> Project: Tapestry 5
> Issue Type: New Feature
> Affects Versions: 5.0.15
> Reporter: Kristian Marinkovic
>
> A mixin can't access the parameters of a component because the Bindings
> property of the InternalComponentResourcesImpl class is private and the
> respective interface does not provide a access method.
> I was trying to create a mixin that would render only the value of a form
> element (without the tags) when it was in a certain state. There also might
> be use cases where mixins are used to collect data from the components they
> are attached and therefore also needs access to the components parameters.
> see threads:
> http://www.nabble.com/Antwort%3A--T5--how-to-read-the-value-of-a-component-parameter-within-a-mixin-tf4487995.html
> http://www.nabble.com/-T5--how-to-read-the-value-of-a-component-parameter-within-a-mixin-tf4487597.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.