Oops!

It works now, but I did not change any code... This all seems to be just a 
Netbeans Run problem....

Thanks for all the help,



"Cosmin Marginean" <[email protected]> wrote 
in message news:[email protected]...
> As far as I know, once you have your @SpringBean setup you should be good 
> in any stage of lifecycle.
>
> Please make sure you also have the Spring interceptor setup correctly in 
> web.xml:
>
>    <filter>
>        <filter-name>StripesFilter</filter-name>
> 
> <filter-class>net.sourceforge.stripes.controller.StripesFilter</filter-class>
>           ......
>        <init-param>
>            <param-name>Interceptor.Classes</param-name>
>            <param-value>
> 
> net.sourceforge.stripes.integration.spring.SpringInterceptor
>            </param-value>
>        </init-param>
>      ...
>
> Regards,
> Cosmin
>
> Marcus thanks for you're response.
>
> The DAO class is normaly correcty injected and can be used in the event
> handlers. But @SpringBean annotated DAO class is still NULL in a method
> annotated with:
> @After(stages = LifecycleStage.BindingAndValidation). But as event 
> handlers
> are not executed during validation errors, I can't properly initialize my
> action bean with those.
>
> How should I change the debug level, so I can see the spring debug 
> messages?
>
> thanks,
> Karen
>
> "M.C.S." <[email protected]> wrote in message
> news:[email protected]...
>  Hi Karen,
>    I put this initialization code in a separate init method
> and annotated the method by:
>
> @After(stages = LifecycleStage.BindingAndValidation)
>
> This works as expected, the parameters are bound and does also execute
> when
> I have an validation error (when no event handler is executed). The
> problem:
> the @Springbean annotated DAO class is not yet injected at this stage.
>
>      the SpringInterceptor is executed before BindingAndValidation. If 
> your
> DAO has not been injected, the reason is probably somewhere else. Is it
> really injected in other cases? Did you annotate the DAO field in your
> ActionBean? Does Spring know your DAO class? Changing the log level to
> DEBUG may help in finding the reason for your problem.
>
> Good luck and best wishes,
> Marcus
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus 
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>


--------------------------------------------------------------------------------


> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 
> 30-Day
> trial. Simplify your report design, integration and deployment - and focus 
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july


--------------------------------------------------------------------------------


> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> 




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to