Hey all,
I finally got around to updating my local copy of wicket 1.2 to the latest subversion HEAD snapshots and notice a problem with SimplePageAuthorizationStrategy.
Looking at:
http://papernapkin.org/pastebin/app/view/202
I see a default IUnauthorizedComponentInstantiationListener is added, however this is blindly using Application.get() which for me is null at the time I construct my AuthorisationStrategy due to wireing it up with Spring.
I can easily repeat the content of the SimplePageAuthorizationStrategy class in my own (theres not much code to SPAS itself), but if one could lower reuse it'd be good.
Easiest quick-fix is to check if Application.get
() returns null before adding the default listener and if not, carry on without leaving me to assign the/my listener as normal.
--
i like my video games - mamma said they are gonna melt my brains
i like my video games - i don't care what daddy said; they're my reality
- henning pauly
- [Wicket-user] SimplePageAuthorizationStrategy broken when ... Mark Derricutt
- Re: [Wicket-user] SimplePageAuthorizationStrategy bro... Johan Compagner
- Re: [Wicket-user] SimplePageAuthorizationStrategy... Mark Derricutt
- Re: [Wicket-user] SimplePageAuthorizationStra... Johan Compagner
- Re: [Wicket-user] SimplePageAuthorization... Igor Vaynberg
