Hi
I need to initialise a backing bean with values from a db table - I know the
username of my logged in user from:
FacesContext facesContext = FacesContext.getCurrentInstance();
String owner = facesContext.getExternalContext().getRemoteUser();
I want to set the user details on the bean - name, address - so that when
you go to the account details page the values for the logged in user are
displayed.
i.e. What I want is an initialisation method - so that when the bean is
created it gets the values it needs using the username and sets the other
properties.
As I understand it Backing Beans do not have a constructor - so how I get it
to go off and set the values.
Many thanks
Chris
--
View this message in context: http://www.nabble.com/Initialise-Backing-Bean-from-database-tf3653138.html#a10205355
Sent from the javaserverfaces users mailing list archive at Nabble.com.