On 8/9/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> i have recently deprecated springannotwebapp so this no longer should be a
> problem. now to get spring injection going you do this:
>
> class myapplication extends webapplication {
>    init() {
>      addComponentInstantiationListener(new
> SpringComponentInjector(this));
>    }
> }
>
> thats it, no need for extending any spring related application object.

Ok, is this in version 1.2.1 or only in 2.0?

/Mats

>
> -Igor
>
>
>
> On 7/21/06, Mats Norén < [EMAIL PROTECTED]> wrote:
> >
> Has there been any progress in merging AuthenticatedWebApplication and
> the spring-stuff lately or is there a best praktice out there
> somewhere?
>
> Best regards Mats
>
> On 6/8/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> > The problem is that the wicket-auth-roles package assumes you subclass
> > AuthenticatedWebApplication as your application class. If you want to
> reuse
> > that, you'll have to subclass the AuthenticatedWebApplication and the
> > AuthenticatedSession.
> >
> > No spring can fix that.
> >
> > Martijn
> >
> >
> > On 6/8/06, Mark Derricutt <[EMAIL PROTECTED]> wrote:
> > >
> >
> > On 6/7/06, Martijn Dashorst <[EMAIL PROTECTED] > wrote:
> >
> > >
> > > I suggest (tried and tested at my company) to use the Auth application
> as
> > your base class and merge the spring related stuff into your subclass. The
> > spring integration is agnostic for sessions and such, so you'll be up and
> > running much quicker.
> > >
> >
> > Personally I'm using the
> > wicket.spring.SpringWebApplicationFactory mentioned in
> > web.xml then and nice and cleanly inject my authentication strategy into
> my
> > Application via normal spring IoC:
> >
> >     <bean id="wicketApplication"
> >
> class="com.theoryinpractice.timetrackr.TimeTrackrApplication">
> >         <property name="timeTrackrAuthorizationStrategy"
> > ref="authorizationStrategy"/>
> >     </bean>
> >
> >     <bean id="authorizationStrategy"
> >
> class="com.theoryinpractice.timetrackr.TimeTrackrAuthorizationStrategy">
> >         <property name="userManager" ref="userManager"/>
> >     </bean>
> >
> > The authorization strategy also has injected into it my hibernate DAO's so
> > have full access to everything they need, cleanly and springy, without
> > touching any of those odd little convience classes (actually I never knew
> > they existed either).
> >
> > Doing spring+wicket this way is much much nicer I find.
> >
> >
> >
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
> >
> >
> >
> > --
> > Download Wicket 1.2 now! Write Ajax applications without touching
> > JavaScript!
> > -- http://wicketframework.org
> >
> >
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
>  Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to