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

    jboss as/seam problem

    nitzan tomer Newbie

      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" />

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

      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:
      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.