Vote count: 0 I would like to create a simple page that would diplay a user information For instance if I reach ../profile.xhtml?id=10 I would like to get the page of the user with id=10. Thus I would like to have an instance of this User in my profile.xhtml page. I have tried : with @ManagedBean @RequestScoped public class UserConverter implements Converter { @EJB UserDAO userDao; @Override public Object getAsObject(FacesContext context, UIComponent component, String value) { User u = userDao.findFromId(value); retu u; } @Override public String getAsString(FacesContext context, UIComponent component, Object obj) { User u = (User) obj; retu u.getId().toString(); } I expect to have my user as...
ادامه مطلب