T5: Get remote IP address without Request/GlobalRequest?

2009-01-08 Thread Kit Yeung
Hi all, I have some utilities classes (that is not in Page nor Component so I can't @Inject request) and I want to get remote IP from those classes, is there any way to get IP address directly without passing the request/globalrequest object from the Page/Component? Thanks Kit

PageTester and HttpServletRequest error.

2008-09-17 Thread Kit Yeung
Hi all, I am doing a evaluation on Tapestry, I am very new to Tapestry as well as Java and its frameworks. I came across a problem when I try to use the PageTester. I wrote a very simple test case like the one in http://tapestry.apache.org/tapestry5/guide/unit-testing-pages.html. I put