Thanks Thiago, but I think I'm even more confused now lol It looks
like I confused HOSTPORT_SECURE with SECURE_ENABLED. Anyhow should I
not be using PageRenderLinkSouce? You said to take a look at
ComponentEventLinkEncoder, are you suggesting to take a look at it to
build my own link building method or is there a public interface that
uses ComponentEventLinkEncoder I should be using? If those
configurations are set properly in the appmodule, are you saying it
PageRenderLink source, or ComponentEventLinkENcoder won't use the
Request?

Thanks.

On Tue, Jan 20, 2015 at 4:24 PM, Thiago H de Paula Figueiredo
<thiag...@gmail.com> wrote:
> On Tue, 20 Jan 2015 19:13:30 -0200, Thiago H de Paula Figueiredo
> <thiag...@gmail.com> wrote:
>
>> On Tue, 20 Jan 2015 19:03:30 -0200, George Christman
>> <gchrist...@cardaddy.com> wrote:
>>
>>> So I just took a look at the tapestry code and I'm not seeing anyway
>>> to work around it unless I want to build my own links which I'd rather
>>> not do because of my use of the url rewriter.
>>>
>>> Tap code line 113
>>>
>>>
>>> https://github.com/apache/tapestry-5/blob/5.4-beta-26/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/LinkSourceImpl.java
>>
>>
>> You should take a look at ComponentEventLinkEncoder.createPageRenderLink,
>> which the Link itself is created.
>
>
> Which actually uses the BaseURLSource service (default implementation source
> at
> https://github.com/apache/tapestry-5/blob/5.4-beta-26/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/BaseURLSourceImpl.java).
> If you correctly set the SymbolConstants.HOSTNAME, SymbolConstants.HOSTPORT
> and SymbolConstants.HOSTPORT_SECURE symbols, it won't use the Request, so
> it'll work.
>
>>> On Tue, Jan 20, 2015 at 11:14 AM, George Christman
>>> <gchrist...@cardaddy.com> wrote:
>>>>
>>>>
>>>> configuration.add(SymbolConstants.HOSTNAME, "localhost");
>>>>         configuration.add(SymbolConstants.HOSTPORT, "8080");
>>>>         configuration.add(SymbolConstants.HOSTPORT_SECURE, "false");
>
>
> SymbolConstants.HOSTPORT_SECURE receives the HTTPS port number, not whether
> you're using HTTPS or not. I don't think you've actually run your webapp or
> your tests with the configuration above applied, because Tapestry-IoC
> wouldn't be able to coerce "false" into an int.
>
>
> --
> 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
>



-- 
George Christman
CEO
www.CarDaddy.com
P.O. Box 735
Johnstown, New York

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to