Yes, this is a bug I have seen too, I hacked together my own fix for this, but 
somehow in 5.3 is working correctly again.

----- Original Message -----
From: "Brian Long" <bl...@annadaletech.com>
To: "Tapestry users" <users@tapestry.apache.org>
Sent: Monday, 3 October, 2011 12:20:33 GMT +02:00 Athens, Bucharest, Istanbul
Subject: pageRenderLinkSource.toAbsoluteURI() returns relative URL

Hi all,

I want determine the URL of my tapestry page, and rather that build
the path from the request, I thought I'd use the PageRenderLinkSource
service similar to the example posted here
http://blog.markwshead.com/825/get-the-url-of-page-in-tapestry-5/,
however when I call the method toAbsoluteURI() I get a relative path
/myserver/en/receipts/kioskreceipt instead of
http://localhost:8080/myserver/en/receipts/kioskreceipt?


I'm using Tapestry 5.1.0.5.

Regards, Brian.

        @Inject
        private PageRenderLinkSource linkSource;


        
logger.info(linkSource.createPageRenderLink(kioskReceipt.getClass()).toAbsoluteURI());

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


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

Reply via email to