separating application and business layer
from struts I was used to have a formbean and a corresponding bean e.g.
UserInfoFormBean and UserInfoBean. The formbean contains all instance variables the bean has and additionally some elements concerning the UI.
With BeanUtils.copyProperties I was able to copy the proberties between the two.
With jsf I don磘 see any approach like the one described. The backingBean does not only hold the instance variables representing the input field on a form it also has action Methods that can be called directly from the jsp. With this approach I do not have a bean that only has variables and getters/setters.
So I would like to do the following:
class UserInfoFormBean {
//instance varibales
...
private UserInfoBean = new UserInfoBean();
// methods setters and getters AND other methods
}
class UserInfoBean {
// instance variables
...
// setters and getters ONLY
}
UserInfoformBean should be a managed Bean defined in faces-config
What do you think of this approach?
Thanks in Advance
Ferudun

