Hello there. Im with problems injecting a form information that is stored in a java bean.
The Bean:
@Scope(ScopeType.SESSION)
@Name("userBean")
public class UserBean {
private String userName;
private String password;
private String retypedPassword;
private String email;
private String fullName;
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
....... The rest of the setters and getters
}The seam action class:
@Scope(ScopeType.SESSION)
@Name("manageUsers")
public class ManageUsersAction implements ManageUsers
{
@Logger private Log log;
@In StatusMessages statusMessages;
@In
private UserBean userBean;
public void manageUsers() {
// implement your business logic here
log.info("manageUsers.manageUsers() action called #{userBean.userName} + #{userBean}");
statusMessages.add("manageUsers");
}
}
on the logger instruction the
#{userBean.userName}I believe that is a roockie mistake. Does any one can spot what am i missing?
Thanx a lot
i already discovery the problem. I had a proxy to the object, so all the fields were null. after invoking one of the getters, the all object is loaded.
Thank you any way