Answer found:
I searched in Google and I find some solutions, so I adapt the answers I find to my problem.
Following is my lastest code:
<h:form id="inserirDisciplina">
<h:inputText id="disciplina" value="#{disciplinaMBean.nome}" />
<h:commandButton value="Adicionar" action="#{disciplinaMBean.cadastrar}">
<f:ajax event="click" listener="#{disciplinaMBean.cadastrar}"/>
</h:commandButton>
</h:form>
If you have the same problem, probably what you need is the tag f:ajax
with #{yourBean.yourMethod}
inside the listener
attribute.