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
            Reporter: Dragan Sahpaski
            Priority: Minor


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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to