tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristian Marinkovic (JIRA)" <...@tapestry.apache.org>
Subject [jira] Created: (TAPESTRY-2230) add a contructor with page class as parameter to BeanBlockContribution
Date Tue, 04 Mar 2008 11:58:40 GMT
add a contructor with page class as parameter to BeanBlockContribution
----------------------------------------------------------------------

                 Key: TAPESTRY-2230
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2230
             Project: Tapestry
          Issue Type: Improvement
          Components: tapestry-core
    Affects Versions: 5.0.11
            Reporter: Kristian Marinkovic


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.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message