thats exactly how you do it, the piece you are missing is that you
need to tell wicket to pull your application object out of spring
context rather then create a new instance. see
SpringWebApplicationFactory and its javadoc.

-igor


On 10/20/07, auron <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
>
> On this page:
>
> http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html
>
> there is a section that w/ the following code:
>
> public class WicketApplication extends AuthenticatedWebApplication {
>         //to be injected by Spting
>         private AuthenticationManager authenticationManager;
>
> [...]
>
> I am new to both wicket, spring, and acegi, so please forgive me if the
> answer is obvious, but how do I inject authenticationManager into
> WicketApplication? I have a setAuthenticationManager method and in my
> applicationContext.xml I have the following:
>
> <bean id="webApplication" class="edu.ucsd.acp.web.WicketApplication">
>         <property name="authenticationManager" ref="authenticationManager"/>
> </bean>
> <bean id="authenticationManager"
> class="org.springframework.security.providers.ProviderManager">
>         <property name="providers">
>                 <list>
>                         <ref bean="daoAuthenticationProvider"/>
>                 </list>
>         </property>
> </bean>
>
> Any help is greatly appreciated, thank you!
>
> Jin
> --
> View this message in context: 
> http://www.nabble.com/spring-acegi-injection-question-tf4658329.html#a13310889
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to