[jboss-user] [JBoss Seam] - Re: Event scoped component accessing Conversion scope
quilleashm
do-not-reply at jboss.com
Wed Dec 13 08:42:56 EST 2006
In this function in Component
private Object getInstanceToInject(In in, String name, Object bean, boolean enforceRequired)
The if condition at the bottom evals to true
| if ( result==null && enforceRequired && in.required() )
| {
| throw new RequiredException(
| "In attribute requires value for component: " +
| getAttributeMessage(name)
| );
| }
|
Having said that, it seems theres a small bug in the DebugPageHandler.handle( Exception e ) method as the exception above gets thrown and trapped by this handler but then you get a null pointer on the first call to the conversation context.
| conversationContext.set("org.jboss.seam.debug.lastException", e);
|
As the conversation context isn't created yet. Probably just needs an if null check wrapping round this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993386#3993386
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993386
More information about the jboss-user
mailing list