wiki's ControlAccess sample NPE

2008-10-08 Thread lyifan
Hi all, I've been trying to run the ControlAccess sample on the Tapestry5Howtos site during these 2 days. But I haven't got any luck When Component page = componentSource.getPage(pageName) is called, a NPE is thrown. I'm using Tapestry5.0.15 and tomcat 6.0.18 on windowsXp sp3 Any comment is

T5.0.6 about Tapestry ioc

2007-11-16 Thread lyifan
I want to implement a service: public interface Transport { public void send(); } public class HttpTransport implement Transport { private String _address; private int _port; private boolean _ssl; public HttpTransport (String address, int port,

Re: T5.0.6 about Tapestry ioc

2007-11-16 Thread lyifan
insist on the parameters currently listed, then you'll need to have a service builder method, and inject HttpRequest as an argument into that method. lyifan wrote: I want to implement a service: public interface Transport { public void send(); } public class HttpTransport

Re: T5 how to control login state

2007-11-04 Thread lyifan
Thanks a lot everyone. Finally the BasePase way works But the dispatcher way still doesn't work. lyifan wrote: I am a 100% new user for tapestry. Currently I'm working on 5.0.5, but I got stuck from the just beginning. I want to implement a kind of user access controller. All the pages

Re: T5 how to control login state

2007-11-03 Thread lyifan
Thank you Marcus. But I can't understand where to add getters and setters. Do you mean put getters and setters to ASO class or to a certain class where declares an ASO? Marcus-11 wrote: Add getters and setters ASO. - To

Re: T5 how to control login state

2007-11-03 Thread lyifan
It still doesn't work, Marcus I've changed the onActivate method to public Marcus-11 wrote: Add getters and setters ASO. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]