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:
anonymous wrote : javax.faces.FacesException: Error calling action method of 
component with id _id4:_id6
and in the jboss server tab i get this:
anonymous wrote : 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!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987138
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to