Getting the application path

2010-12-31 Thread Josh Kamau
Hi, I am having a little headache here, How do i get the complete path of the application root from withing a wicket page. i would like to get something like c:\tomcat\webapps\wicketapp\resources\file.pdf Kind regards. Josh.

AW: Getting the application path

2010-12-31 Thread Stefan Lindner
Use something like Applicatiion.get().getServletContext().getRealPath(.); Stefan -Ursprüngliche Nachricht- Von: Josh Kamau [mailto:joshnet2...@gmail.com] Gesendet: Freitag, 31. Dezember 2010 09:12 An: users@wicket.apache.org Betreff: Getting the application path Hi, I am having a

Re: Getting the application path

2010-12-31 Thread Josh Kamau
Thanks Stefan, Am trying but Application instance doesnt have getServletContext() am using wicket 1.4.14 Josh On Fri, Dec 31, 2010 at 12:00 PM, Stefan Lindner lind...@visionet.dewrote: Use something like Applicatiion.get().getServletContext().getRealPath(.); Stefan -Ursprüngliche

Re: TreeTabel and file download

2010-12-31 Thread Anton Bessonov
I solved it. new PropertyTreeColumn(new ColumnLocation(Alignment.MIDDLE, 8, Unit.PROPORTIONAL), , userObject.name) { @Override public IRenderable newCell(TreeNode node, int level) {

Re: Getting the application path

2010-12-31 Thread James Carman
WebApplication On Dec 31, 2010 4:10 AM, Josh Kamau joshnet2...@gmail.com wrote: Thanks Stefan, Am trying but Application instance doesnt have getServletContext() am using wicket 1.4.14 Josh On Fri, Dec 31, 2010 at 12:00 PM, Stefan Lindner lind...@visionet.de wrote: Use something like

Re: Getting the application path

2010-12-31 Thread Josh Kamau
Thanks James. That worked. On Fri, Dec 31, 2010 at 4:15 PM, James Carman ja...@carmanconsulting.comwrote: WebApplication On Dec 31, 2010 4:10 AM, Josh Kamau joshnet2...@gmail.com wrote: Thanks Stefan, Am trying but Application instance doesnt have getServletContext() am using wicket

Re: Adding openid-authentication to spring/wicket-auth-roles?

2010-12-31 Thread Zilvinas Vilutis
In Spring you have to implement your own AuthenticationProvider ( e.g. extend AbstractUserDetailsAuthenticationProvider ) which supports() your own, e.g. OpenIDAuthenticationDetails which extend AuthenticationDetails. Implement your authentication logic here. Register it as a bean and add it to

[Announce] Migration of wicketstuff from sourceforge to github is now complete

2010-12-31 Thread Michael O'Cleirigh
Hello, I am pleased to announce that the migration of the wicketstuff project from sourceforge to github is now complete. Developers will again be able to commit their changes (pending registration as a committer); Users will be able to report their issues and new documentation can start to