I am new to JSF and managed beans. I have a managed bean with some private property with public setter and getter methods. Now when I add the managed bean's properties to JSF forms, should I add the private methods directly or should I use call the property by getter methods?
For example:
<h:inputText value="#{BeanName.userName}"/>
<h:inputText value="#{BeanName.getUserName()}"/>
Which one is correct in above?