<gs <at> smm.de> writes:

> My local server (Tomcat) ist running on port 8080, https is listening on
> port 8443.
> 
> In the border-component there is the following definition:
> 
>     <component id="loginpage" type="PageLink">
>           <binding name="page" value="'Login'"/>
>           <binding name="scheme" value="'https'"/>
>     </component>
> 
> The generated link looks like https://localhost:8080/... .

I'd suggest that you submit a feature request or bug report at 
http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10573.

To workaround the problem at hand, try creating a LinkRenderer that
extends the DefaultLinkRenderer and change its constructLink() to
something like:

    protected String constructURL(ILinkComponent component, IRequestCycle cycle)
    {
        ILink link = component.getLink(cycle);

        String scheme = component.getScheme();
        String anchor = component.getAnchor();
        int port = scheme != null && scheme.equals("https") ? 80 : 0;
        return link.getURL(scheme, null, port, anchor, true);
    }

Then of course use that LinkRenderer for your PageLink.

--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)



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

Reply via email to