I need help, in understanding the way JSF connects with Java Class files. In the project i am currently into, it connects JSF with Java class using class objects. but i dont know where the object initialized. In Struts we connect JSP with action through Struts.xml. But here i dont see any mapping, it just calls the class name using
#{classNameObject.methodName}
here classNameObject
is an Object not a Class Name.
My question is how this #{classNameObject.methodName}
connects exactly to CLASSNAME?
Here is the Code sample
<p:dataTable id="dataTable" value="#{employeeList.empVarList}"
var="employee" emptyMessage="No Employees found" rows="15"
paginator="true"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
rowsPerPageTemplate="10,15,20" rowIndexVar="rowIndex"
dynamic="false" cache="false" lazy="false"
style="display:block;overflow-y:none;overflow-x:auto;">
Here the dataTable connects to class EmployeeList
It uses JSF, primefaces, Spring, Hibernate
There is no initialization as employeeList
except this
private List<Employee> employeeList = new ArrayList<Employee>();
I am just a week experienced in all the above except hibernate. Please help me with all the anything you got. Thanks in advance.