3 Replies Latest reply on Feb 28, 2007 11:28 AM by littlewing1112

    In attribute requires value for component: index.facesMessag

    littlewing1112

      Hello,
      i m trying to integrate the booking sample of SEAM 1.1.6GA with tomahawk.
      I followed this topic on the myfaces wiki in order to integrate tomahawk with facelets.
      I changed the JSF dataTables to the tomahawk datatables.
      Unfortunately, I always have the following error when the interceptor is called

      Exception during request processing: In attribute requires value for component: hotelSearch.facesMessages
      
      org.jboss.seam.Component.getInstanceToInject(Component.java:1920)
      org.jboss.seam.Component.injectFields(Component.java:1386)
      org.jboss.seam.Component.inject(Component.java:1156)
      org.jboss.seam.interceptors.BijectionInterceptor.bijectNonreentrantComponent(BijectionInterceptor.java:76)
      org.jboss.seam.interceptors.BijectionInterceptor.bijectComponent(BijectionInterceptor.java:58)
      sun.reflect.GeneratedMethodAccessor239.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:585)
      org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
      org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
      org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
      org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
      sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      java.lang.reflect.Method.invoke(Method.java:585)
      org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
      org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
      org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
      org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:52)
      sun.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


      My code

      @In
      private FacesMessages facesMessages ;


      I also tried to inject mannualy the facesMessages instance by the following code:
      private FacesMessages facesMessages = FacesMessages.instance();

      and it works fine.

      Then I tried to call this component in other EJBS and I still have the same errors.

      How can I solve this problem ?

      Thanks for your help

      Alexandre