Re: ComponentRequestFilter alert a dialog
lprimak wrote yes. and lots more. when I use the Tapestry-security,there is a exception occur Caused by: java.lang.IllegalArgumentException: Realms collection argument cannot be empty. at org.apache.shiro.mgt.RealmSecurityManager.setRealms(RealmSecurityManager.java:78) at org.apache.shiro.web.mgt.DefaultWebSecurityManager.init(DefaultWebSecurityManager.java:81) at org.tynamo.security.services.TapestryRealmSecurityManager.init(TapestryRealmSecurityManager.java:15) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.tapestry5.ioc.internal.ConstructorServiceCreator.createObject(ConstructorServiceCreator.java:60) ... 35 more -- View this message in context: http://tapestry.1045711.n5.nabble.com/ComponentRequestFilter-alert-a-dialog-tp5093550p5093905.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: ComponentRequestFilter alert a dialog
There are working examples here: http://code.google.com/p/hope-website/ On Dec 22, 2011, at 3:08 AM, dick_hu dickan...@gmail.com wrote: lprimak wrote yes. and lots more. when I use the Tapestry-security,there is a exception occur Caused by: java.lang.IllegalArgumentException: Realms collection argument cannot be empty. at org.apache.shiro.mgt.RealmSecurityManager.setRealms(RealmSecurityManager.java:78) at org.apache.shiro.web.mgt.DefaultWebSecurityManager.init(DefaultWebSecurityManager.java:81) at org.tynamo.security.services.TapestryRealmSecurityManager.init(TapestryRealmSecurityManager.java:15) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.tapestry5.ioc.internal.ConstructorServiceCreator.createObject(ConstructorServiceCreator.java:60) ... 35 more -- View this message in context: http://tapestry.1045711.n5.nabble.com/ComponentRequestFilter-alert-a-dialog-tp5093550p5093905.html Sent from the Tapestry - User mailing list archive at Nabble.com. - 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
ComponentRequestFilter alert a dialog
Now I'm is develop a AuthenticationFilter, If user browse the page when he did not login the web,the filter where alert a dialog in the current page,and then user input his username and password in the dialog form then skip to the page (best the page will not refresh). I know how the filter redirect to the login page when users didn't logined. But I don't know how the filter can alert a dialog. Can anyone help me. Are there any examples for me ,thanks a lot. -- View this message in context: http://tapestry.1045711.n5.nabble.com/ComponentRequestFilter-alert-a-dialog-tp5093550p5093550.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: ComponentRequestFilter alert a dialog
Why don't you use the wonderful Tynamo's Tapestry-security? On Dec 21, 2011, at 10:33 PM, dick_hu wrote: Now I'm is develop a AuthenticationFilter, If user browse the page when he did not login the web,the filter where alert a dialog in the current page,and then user input his username and password in the dialog form then skip to the page (best the page will not refresh). I know how the filter redirect to the login page when users didn't logined. But I don't know how the filter can alert a dialog. Can anyone help me. Are there any examples for me ,thanks a lot. -- View this message in context: http://tapestry.1045711.n5.nabble.com/ComponentRequestFilter-alert-a-dialog-tp5093550p5093550.html Sent from the Tapestry - User mailing list archive at Nabble.com. - 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
Re: ComponentRequestFilter alert a dialog
lprimak wrote Why don't you use the wonderful Tynamo's Tapestry-security? It can alert a dialog when it can't pass the filter? -- View this message in context: http://tapestry.1045711.n5.nabble.com/ComponentRequestFilter-alert-a-dialog-tp5093550p5093561.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: ComponentRequestFilter alert a dialog
yes. and lots more. On Dec 21, 2011, at 10:42 PM, dick_hu wrote: lprimak wrote Why don't you use the wonderful Tynamo's Tapestry-security? It can alert a dialog when it can't pass the filter? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: ComponentRequestFilter alert a dialog
It is too hard to learn about the Tynamo's Tapestry-security for me. In fact I just want to know how can I alert a dialog in the currentPage through the ComponentRequestFilter. Is there any way. -- View this message in context: http://tapestry.1045711.n5.nabble.com/ComponentRequestFilter-alert-a-dialog-tp5093550p5093713.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org