Yes, you can. JSF has Action methods that handle user commands, such as clicking on a button or
a hyperlink. These Actions can be any methods in a backing JavaBean have a specific method signature. Your user interface
components can reference them via method binding expressions.
They can easily invoke EJBs, connect to databases, invoke plain old Java objects (POJOs), and so on.