[jboss-user] [JBoss Seam] - Re: Graceful logout and friendly login ? How to?

Basel do-not-reply at jboss.com
Fri Aug 11 02:28:29 EDT 2006


Injecting UIViewRoot does not work.

  | Caused by: org.jboss.seam.RequiredException: In attribute requires value for component: loginAction.view
  |         at org.jboss.seam.Component.getInstanceToInject(Component.java:1382)
  |         at org.jboss.seam.Component.injectFields(Component.java:1024)
  |         at org.jboss.seam.Component.inject(Component.java:795)
  |         at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:30)
  | 

I also tried injecting the conversation object hoping that conversation.getViewId() would return the view name but without luck. I got the same RequiredException as with the UIViewRoot.


  | @Stateless
  | @Name("loginAction")
  | public class LoginActionBean implements LoginAction{	
  | 	@In
  | 	private UIViewRoot view;
  | 
  | 	@In
  | 	private Conversation conversation;
  | 	
  | 	@In(value="#{facesContext.externalContext.requestParameterMap}")
  | 	private Map reqParam;
  | }
  | 
How can I get the UIViewRoot injected?

Okay, I will use the "You've logged out" page for the logout action.

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

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



More information about the jboss-user mailing list