[jboss-user] [JBoss Seam] - Re: Conversation versus Session Context

quilleashm do-not-reply at jboss.com
Fri Feb 16 05:28:48 EST 2007


This is because you have a component binding into a conversation scoped component.  The conversation context is only available AFTER the restore view phase, but control bindings like this are executed in the restore view phase.

To work around this have a event scoped component that hold your ui component bindings and inject it into your conversation component.


  | @Name( "componentBindings" )
  | @Scope( ScopeType.EVENT )
  | public class ComponentBindings
  | {
  |    private HtmlPanelGrid selectedItemPreview;
  | 
  |    // getters and setters
  | }
  | 

and then


  |     @In
  |     private ComponentBindings componentBindings;
  | 

in your conversation component.

HTH.

Mike.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017528#4017528

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017528



More information about the jboss-user mailing list