1
Good morning, I have a login screen, and when the user clicks the Sign in button, I want it to be an incone showing "loading" while the java method is running.
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>
Someone can help me?