back soft

مطالب مرتبط با «convert getdate to string» در back soft | نویسنده: استخدام کار

Convert a GET parameter with JSF

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

ادامه مطلب

برچسب‌های مرتبط

convert gettext a int | convert getdate | convert getdate to date | convert getdate to string | convert getdate to varchar | convert getdate to yyyymmdd | convert get to post | convert getdate to smalldatetime | convert getdate to string in ssis expression | convert getdate() to (dd/mm/yyyy) format in sql