I've researched a little bit more and found BaseURLSource service which is
responsible for URL construction.

But overriding BaseURLSource doesn't work because of circular dependency
during initialization, while trying to alter BaseURLSource using advisors
simply doesn't work at all (advisor never gets called).

I'm stuck.



On Tue, Feb 18, 2014 at 8:34 AM, Ilya Obshadko <ilya.obsha...@gmail.com>wrote:

> I have already implemented it using method advice, so that
> Request.isSecure () returns true when frontend sets appropriate header.
>
> However things turn strange at this point. All links rendered by PageLink
> component now look like:
>
> http://servername:443/context/page
>
> Note plain http instead of https in front. So the port does change, but
> protocol does not. What am I doing wrong? Could you point me in a right
> direction?
>
> This is very strange, because PageLink rendering uses the same mechanisms
> Link.toAbsoluteURI () does, and the latter works, while the former doesn't.
>
>
>
>
> On Tue, Feb 18, 2014 at 8:03 AM, Thiago H de Paula Figueiredo <
> thiag...@gmail.com> wrote:
>
>> On Mon, 17 Feb 2014 17:31:53 -0300, Ilya Obshadko <
>> ilya.obsha...@gmail.com> wrote:
>>
>>  I understand how to do that with service advisors, but decoration remains
>>> unclear. How do I override a single method from the interface using
>>> decoration? Could you provide a brief example?
>>>
>>
>> See http://tapestry.apache.org/tapestry-ioc-decorators.html,
>> AspectDecorator, its method AspectInterceptorBuilder createBuilder(Class<T>
>> serviceInterface, T delegate, String description),
>> AspectInterceptorBuilder, which is a subinterface of MethodAdviceReceiver,
>> which has the adviseMethod(Method, MethodAdvice) method.
>>
>> Summary: in almost the same way as advice.
>>
>> --
>> 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
>>
>>
>
>
> --
> Ilya Obshadko
>
>


-- 
Ilya Obshadko

Reply via email to