Hi i'm new to jsf/el and i'm looking for a solution to pass a class ex : "Student.class" as a method parameter to my method defined in my backing bean. By the way i tested the same overloaded method using a string parameter without any issues but i prefer a Class parameter over a String parameter for my use case.
MyBean.java:
public void createPersonType(Class className) {
// Person factory code goes here
}
person.xhtml:
<... actionListener="#{myBean.createPersonType(Student.class)}" />
Any suggestions are welcome. Thank you.