I have question regarding Converter class getAsObject
method
I have a service called EmployeeService employeeService
public List<Employees> getEmployees(Employees employees);
If I want to call the above method from getAsObject of Converter class which as arguments
public Object getAsObject(FacesContext facesContext, UIComponent component,
String value)
employeeService.getEmployees(<?>)
How do I pass employees
object to getEmployees
method from getAsObject
?
Any help is highly appreciated.
Update 1
@Entity
public class Employees implements Serializable {
private String employeeNumber;
private String employeeName;