Hello,
Following a suggestion from a fellow T5 user (cheers Nicolas!) I've
changed my page name injecting strategy. I now have a
ComponentClassTransformWorker which adds a Mixin to every Page
component. This Page Mixin (in the afterRender() method) then injects
the page name as a comment in the
Le 11/05/2010 18:48, Steve Eynon a écrit :
Hello,
Following a suggestion from a fellow T5 user (cheers Nicolas!) I've
changed my page name injecting strategy. I now have a
ComponentClassTransformWorker which adds a Mixin to every Page
component. This Page Mixin (in the afterRender() method)
Yeah, exceptions are expensive to create and throw and never should
really be caught as part of the normal flow code (*). The example was
really just an ineffective way of pointing out I know the
ComponentClassResolver exists and I know it holds map of page names to
page class names.
The thing
Hello,
I'm looking at ways to automatically insert the name of the page being
rendered into each page (so my selenium tests can check the correct
page was finally rendered). This was done using a component I placed
on each page but I'm looking for a more elegant solution.
I've tried contributing
public void
contributeMarkupRenderer(OrderedConfigurationMarkupRendererFilter
configuration,
final MetaDataLocator
metaDataLocator,
final ComponentEventLinkEncoder
linkEncoder,
On Fri, 07 May 2010 11:05:56 -0300, Dmitry Gusev dmitry.gu...@gmail.com
wrote:
public void
contributeMarkupRenderer(OrderedConfigurationMarkupRendererFilter
configuration,
final MetaDataLocator
metaDataLocator,
Thanks for the help and a quick response! The following gives me what
I need inside a MarkupRendererFilter:
@Inject
private Request request;
@Inject
private ComponentEventLinkEncoder linkEncoder;
@Inject
private ComponentClassResolver classResolver;
String logicalPageName =