nikhil katoch wrote:I have not made getters and setters of from1 attribute in managed bean as it is calculated automatically when object persist in database
No it isn't.
In JPA, you can do either direct field access OR property get/set access (and I'm too lazy to look up the proper names for those options).
In
JSF you cannot do that. The backing bean properties
must be accessed in accordance with JavaBean standard rules, which means that explicit public get/set methods must be defined for the bean.
Also, beware of attempting to use ORM Domain Model objects directly as JSF UI Model objects. Because of the fundamental architectural differences, there are very few cases where that will work properly. In general, it's better to define a discrete UI Model object and use it as the façade to the Domain Model object.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.