2 Replies Latest reply on Nov 19, 2006 5:04 PM by nitm

    jboss as/seam problem

    nitm

      hi.
      in my project i have the front page (home.xhtml) and in it i have this:

      <ui:include src="/WEB-INF/includes/login.xhtml">
       <ui:param name="funk" value="loginLink" />
      </ui:include>
      

      in the login.xhtml i have this:
      <c:when test="#{currentUser == null}">
       <h:form>
       <li><h:commandLink action="#{editUser.register}">register</h:commandLink></li>
       </h:form>
      </c:when>

      and currentUser is null.
      the page is working just as it should but when i click the link i get this error:
      javax.faces.FacesException: Error calling action method of component with id _id4:_id6

      and in the jboss server tab i get this:
      Caused by: javax.faces.el.EvaluationException: /WEB-INF/includes/login.xhtml @10,56 action="#{editUser.register}": javax.ejb.EJBException: org.jboss.seam.RequiredException: In attribute requires value for component: editUser.user


      now, in the editUser i have this:
      ....
      @Name("editUser")
      ....
      @In(create=true)
      @Out
      User user;
      ....
      


      and in the User object i have a default constructer.
      any idea of why i get this error?? why can't it find the editUser.user ?
      i took the seam-dvd example and i'm trying to do exactly the same thing and it looks the same to me but the dvd example works just fine and my project generates the above error....

      i'm using jboss as version 4.0.5.GA and jboss seam version 1.0.1.GA.

      thanks!