Hi,

Use @Secure annotation and add this to your appmodule: (Also use whatever
ports you wish.)

public void contributeAlias(Configuration<AliasContribution> configuration)
    {
        BaseURLSource source = new BaseURLSource()
        {
            public String getBaseURL(boolean secure)
            {
                String protocol = secure ? "https" : "http";

                int port = secure ? 443 : 80;

                if(port == 80 || port == 443){
                    return String.format("%s://localhost", protocol);
                }
                
                return String.format("%s://localhost:%d", protocol, port);
            }
        };

        configuration.add(AliasContribution.create(BaseURLSource.class,
source));
    }



Argo Vilberg wrote:
> 
> hi,
> 
> 
> I want use pagelink with port 8443 and https protocol.
> 
> If i use:
>     <t:pagelink page="Start" context="currentRole.roleId">
>                         ${currentRole.roleName}
>     </t:pagelink>
> 
> then tapestry generate
> http://localhost/app/start/4
> 
> 
> But i want
> https://localhost:8443/app/start4
> 
> 
> Argo
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-pagelink-tp18796163p18809513.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to