You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Kristian Marinkovic (JIRA)" <de...@tapestry.apache.org> on 2008/01/09 12:59:34 UTC

[jira] Created: (TAPESTRY-2030) creating a service for contribution services to the Environment service

creating a service for contribution services to the Environment service
-----------------------------------------------------------------------

                 Key: TAPESTRY-2030
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2030
             Project: Tapestry
          Issue Type: New Feature
    Affects Versions: 5.0.8
            Reporter: Kristian Marinkovic
            Priority: Trivial


each time a new (global for one page rendering) service is needed i have to implement MarkupRendererFilter and contributed it to the MarkupRenderer service. it would be more convenient to have a service that adds contributed services directly to the environment.

now:
    public void contributeMarkupRenderer(OrderedConfiguration<MarkupRendererFilter> configuration,
            final MenuManager menuManager, final Environment environment) {
        configuration.add("menuManager", new MarkupRendererFilter() {
            public void renderMarkup(MarkupWriter writer, MarkupRenderer renderer) {
                
                environment.push(MenuManager.class, menuManager);
                
                renderer.renderMarkup(writer);
                
                environment.pop(MenuManager.class);
                
            }}, "after:heartbeat");
    }

more convenient:
contributeEnvironment(Configuration conf,MenuManager menuManager) {
     conf.add(MenuManager.class,menuManager);
}

-- 
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


[jira] Closed: (TAPESTRY-2030) creating a service for contribution services to the Environment service

Posted by "Kristian Marinkovic (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Marinkovic closed TAPESTRY-2030.
-----------------------------------------

    Resolution: Fixed

i consider this jira closed through the advent of the EnvironmentalShadowBuilder. 

> creating a service for contribution services to the Environment service
> -----------------------------------------------------------------------
>
>                 Key: TAPESTRY-2030
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2030
>             Project: Tapestry
>          Issue Type: New Feature
>    Affects Versions: 5.0.8
>            Reporter: Kristian Marinkovic
>            Priority: Trivial
>
> each time a new (global for one page rendering) service is needed i have to implement MarkupRendererFilter and contributed it to the MarkupRenderer service. it would be more convenient to have a service that adds contributed services directly to the environment.
> now:
>     public void contributeMarkupRenderer(OrderedConfiguration<MarkupRendererFilter> configuration,
>             final MenuManager menuManager, final Environment environment) {
>         configuration.add("menuManager", new MarkupRendererFilter() {
>             public void renderMarkup(MarkupWriter writer, MarkupRenderer renderer) {
>                 
>                 environment.push(MenuManager.class, menuManager);
>                 
>                 renderer.renderMarkup(writer);
>                 
>                 environment.pop(MenuManager.class);
>                 
>             }}, "after:heartbeat");
>     }
> more convenient:
> contributeEnvironment(Configuration conf,MenuManager menuManager) {
>      conf.add(MenuManager.class,menuManager);
> }

-- 
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