... but if you define no port then the browser automatically connects to 443 if 
it sees a leading https:// so that should work in production, or am I wrong?

Or does T4 always include the port number in the links?

-----Original Message-----
From: Fernando Padilla [mailto:[EMAIL PROTECTED] 
Sent: 05 April 2006 16:32
To: Tapestry users
Subject: Re: AW: https

Just a warning.  The 'scheme' parameter under 4.0 doesn't really work by 
its self.  You need to use the 'scheme' and 'port' parameters exposed 
under 4.0.1.

If you have a url "http:80" and you just change the 'scheme' it turns 
into an invalid url "https:80", since you can't have one web server with 
both http and https on one port.


more babble:

You might then say, well can't it just assume the port?  Well, no to be 
exact, it can't.  Under developement we use all kinds of ports, and 
maybe for weird deployments ( hosted facilities, etc ), the ports might 
be every which way too... So there is no way for the application to know 
what port pairs you care about.  And sadly there is no way through J2EE 
for you to give the webapp that information, in a standard way.  So you 
have to manage the desired http/https ports through your application 
configuration, and call them up whenever you want to have a particular 
link explicitly jump through the http/https boundary.

Filip S. Adamsen wrote:
> Natürlich. ; D
> 
> Check out the component reference for DirectLink, ExternalLink, PageLink 
> and ServiceLink - all these components have a "scheme" parameter. Set it 
> to "https" to enable https - this will force the creation of an absolute 
> URL if that scheme does not match that of the current request.
> 
> The scheme support is actually part of AbstractLinkComponent (because it 
> implements ILinkComponent), so if you have any application-specific link 
> components you can take advantage of this.
> 
> You might want to create a custom link component for your application to 
> handle whether a link should be secure or not.
> 
> Component Reference links:
> http://jakarta.apache.org/tapestry/tapestry/ComponentReference/DirectLink.html
>  
> 
> http://jakarta.apache.org/tapestry/tapestry/ComponentReference/ExternalLink.html
>  
> 
> http://jakarta.apache.org/tapestry/tapestry/ComponentReference/PageLink.html 
> 
> http://jakarta.apache.org/tapestry/tapestry/ComponentReference/ServiceLink.html
>  
> 
> 
> API Doc links:
> http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/link/AbstractLinkComponent.html
>  
> 
> http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/components/ILinkComponent.html
>  
> 
> 
> -Filip
> 
> Korbinian Bachl skrev:
> 
>> Hi Filip,
>>
>> could you point me and others to the doc regarding https in T4 ?
>>
>> Thanks and Regards,
>>
>> Korbinian
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to