You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2012/12/12 22:17:30 UTC

[Tapestry Wiki] Update of "Tapestry5HowToXhtml" by NikkFolts

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.

The "Tapestry5HowToXhtml" page has been changed by NikkFolts:
http://wiki.apache.org/tapestry/Tapestry5HowToXhtml?action=diff&rev1=9&rev2=10

  	}
  }}}
  
+ ----
+ 
+ In response to the ''"NOTE : This currently isn't working as overriding the service is failing"'':
+ 
+ I had the problem of a recursive dependency on Alias service... Though, I was able to get it working by injecting the services explicitly using the @InjectService annotation in the following way.
+ {{{
+ 
+     public static void contributeAlias(
+ 	        final Configuration<AliasContribution<MarkupWriterFactory>> configuration, 
+ 	        @InjectService("PageContentTypeAnalyzer") final PageContentTypeAnalyzer analyzer,
+ 	        @InjectService("RequestPageCache") final RequestPageCache cache) {
+     	
+     		configuration.add(AliasContribution.create(MarkupWriterFactory.class, new XhtmlMarkupWriterFactory(analyzer, cache)));
+     }
+ }}}
+ 

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