Hi,
this is unfortunate and I have a fix for it, but a hackish one. The injected
Request is a proxy, so you can do this:
create empty container service, and inject it to the baseurlresource (just
like the request earlier.) Add setter to your container service for the
request, and contribute
Thanks!
Multiple simple an efficient options, just what Tapestry is all about ;)
Ville
-Alkuperäinen viesti-
Lähettäjä: Lance Java [mailto:lance.j...@googlemail.com]
Lähetetty: 23. syyskuuta 2013 12:21
Vastaanottaja: Tapestry users
Aihe: Re: BaseURLSource with access to current request
If that is not enough, you can also inject the request and us it in the
contributed BaseUrlSource to sniff the host.
public static void contributeServiceOverride(final
MappedConfigurationClass,Object configuration, final Request request) {
BaseURLSource source = new BaseURLSource()