Good morning, I have a login screen, and when the user clicks the Enter button, I want to be an incone showing "loading" while the java method is executed.
Follow my xhtml code:
<?xml version="1.0" encoding="UTF-8"?>
<title >Awake - Login Administrador</title>
<h:panelGrid columns="2" >
<h:outputText value="Login: " />
<h:inputText value="#{loginAdmController.usuarioAdm.login}"></h:inputText>
<h:outputText value="Senha: " />
<h:inputSecret value="#{loginAdmController.usuarioAdm.senha}" />
</h:panelGrid>
<center>
<p:commandButton action="#{loginAdmController.login}" update="pagLogin" oncomplete="excluirManualDialog.hide()"
value="Entrar" style=" margin-top: 10px;" />
</center>
</p:panel>
</div>
</h:form>
Can anyone help me?