[
https://issues.apache.org/jira/browse/TAPESTRY-1547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505523
]
Norbert Sándor commented on TAPESTRY-1547:
------------------------------------------
Another problem:
@Parameter
public abstract Object getParameter();
@Component(bindings="someParameter=parameter")
public abstract SomeComponent getSomeComponent();
In this case if "parameter" is not bound then the expression "parameter" would
evaluate to null.
If SomeComponent.someParameter has a default value then it is ignored and the
null value is used instead.
This forces the usage of a .jwc file and makes creating xml-less components
impossible.
> no equivalent of <inherited-binding> when using annotations
> -----------------------------------------------------------
>
> Key: TAPESTRY-1547
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1547
> Project: Tapestry
> Issue Type: Bug
> Components: Annotations
> Affects Versions: 4.1.2
> Reporter: Norbert Sándor
>
> The followign workaround works in most cases:
> @Component(binding="element=element")
> public abstract Any getAny();
> I have found that in case of 'updateComponents' parameters (eg. DirectLink's)
> this doesn't work, so I have to fall back using XML specifications.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]