Hmm. I wonder why there wasn't implemented something like a "secured" attribute 
on the page. Would be much simpler if the page knows that it should be secured 
an all links to it automagically use https.


-----Original Message-----
From: Filip S. Adamsen [mailto:[EMAIL PROTECTED] 
Sent: 05 April 2006 13:58
To: Tapestry users
Subject: Re: AW: https

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]

Reply via email to