You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Massimo Lusetti (JIRA)" <ji...@apache.org> on 2011/08/11 23:46:27 UTC

[jira] [Closed] (TAP5-83) add a contructor with page class as parameter to BeanBlockContribution

     [ https://issues.apache.org/jira/browse/TAP5-83?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Massimo Lusetti closed TAP5-83.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 5.3

Is this a left over?

> add a contructor with page class as parameter to BeanBlockContribution
> ----------------------------------------------------------------------
>
>                 Key: TAP5-83
>                 URL: https://issues.apache.org/jira/browse/TAP5-83
>             Project: Tapestry 5
>          Issue Type: Improvement
>    Affects Versions: 5.0.15
>            Reporter: Kristian Marinkovic
>            Priority: Trivial
>             Fix For: 5.3
>
>
> this would enable type safe programming:
> instead of:
>         configuration.add(new BeanBlockContribution("dealerType","DealerTypePropertyBlock","dealerType",true));
> or
>         configuration.add(new BeanBlockContribution("dealerType",  
>                     resolver.resolvePageClassNameToPageName(DealerTypePropertyBlock.class.getName()),"dealerType",true));
> this would be better and shorter (also in case of refactoring):
>  configuration.add(new BeanBlockContribution("dealerType",DealerTypePropertyBlock.class,"dealerType",true));

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira