Hint: use the "Code" button to format your
Java code for readability.
You don't "call" a backing bean method.
JSF Views are not supposed to contain logic, so the idea of a View "calling" anything is meaningless. However, you
can set up a JSF action method to be invoked when you click on a commandButton. Yes, I know. Sounds pedantic, but the fundamental differences are considerable, which is why I pick the nits.
Speaking of nits, backing beans are
not Controllers, they are
Models. In JSF, most of the Controllers are pre-coded and supplied to you, not user-written.
Note that I've altered "conferma" to return a boolean value. The onclick attribute will suppress the action if its value is false. Also, conferma has parentheses since it defines a JavaScript function call (instead of something like a JavaScript boolean variable). However, the action does not, since the call is implied.