On Mon, 05 Jan 2015 12:59:16 -0200, George Christman
<gchrist...@cardaddy.com> wrote:
I'm not sure why
I ended up finding an alternative to your simplelink approach that I
seem to like much better. I'd be curious as to your thoughts.
private Link buildLink(String basePath, PageRenderRequestParameters
parameters, String target, String replacement, String concat) {
Link link =
componentEventLinkEncoder.createPageRenderLink(parameters);
return link.copyWithBasePath(basePath.replace(target, replacement));
}
Hmmm, that code I wrote was written a long time ago, probably before Link
had the copyWithBasePath() method.
This was the example found of mapper at the bottom of this nabble
link. I'm not sure what mapper is used for.
In that example, Mapper isn't a service. Instead, it's the class used as
the distributed configuration of the PageRenderLinkTransformer
implementation, which is also defined as a service. This way, you don't
need to write code for simple x -> y URL rewrites.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org