I'm really new to JSF, and I'm trying to understand something yet I failed doing so using the oracle documentation,
Let's say I have this class as a managed bean
import javax.annotation.ManagedBean;
@ManagedBean
public class Test {
public void Trying()
{
System.out.println("Testing");
}
}
how can I call the Trying() function from within my html view page?
<!DOCTYPE html>
<html lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html">
<h:body>
<b style="font-family:arial;font-size:15px"> #{---CALL FUNCTION---}</b>
</h:body>
</html>
Also, when using JSF which part calls the "Model" part of the MVC architecture? the view or the controller?, and how is that implemented behind the scenes? when is my java code compiled?