You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Robert Zeigler (Closed) (JIRA)" <ji...@apache.org> on 2011/10/25 15:44:32 UTC
[jira] [Closed] (TAP5-1663) The @BindParameter annotation should
support inherited parameters
[ https://issues.apache.org/jira/browse/TAP5-1663?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Zeigler closed TAP5-1663.
--------------------------------
Resolution: Fixed
Fix Version/s: 5.3
Thanks for the patch by Dragan.
> The @BindParameter annotation should support inherited parameters
> -----------------------------------------------------------------
>
> Key: TAP5-1663
> URL: https://issues.apache.org/jira/browse/TAP5-1663
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Reporter: Dragan Sahpaski
> Assignee: Robert Zeigler
> Priority: Minor
> Labels: mixin
> Fix For: 5.3
>
> Attachments: TAP5-1663.patch
>
>
> Hi,
> Currently the @BindParameter annotation (that binds a parameter of a mixin to a parameter in the component the mixin is applied to),
> can be applied only to formal parameters of the containing component and not to parameters that are inherited by the containing component by embedded components.
> I think it is natural that inherited parameters are included in the search for parameters to bind to with the @BindParameter annotation.
> Here is a motivating example:
> public class MyComponent{
> @Component(parameters = "blankOption=inherit:blankOption", publishParameters="blankOption")
> private Select select;
> }
> public class MyMixin{
> @BindParameter
> private BlankOption blankOption;
> }
> And we get:
> org.apache.tapestry5.ioc.util.UnknownValueException
> Containing component MyComponent does not contain a formal parameter matching any of (blank), blankOption.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira