I have this piece of code for render a popup, using f:ajax:
<h:commandButton id ="botonAcceso"
value="#{msg['login.enter']}"
styleClass="botonPeque"
action="#{usuarioAuditoriaLogBean.entraAplicacion}">
<f:ajax disabled="true"
render=":login:errorAcceso"/>
</h:commandButton>
<h:panelGroup rendered="#{usuarioAuditoriaLogBean.popup}" id="errorAcceso">
<ui:fragment>
<script>window.open('#{usuarioAuditoriaLogBean.url}');</script>
</ui:fragment>
</h:panelGroup>
I want the person, who is trying to log, must first close the popup if the logging process fails, to try to log again. How can I do that?
Many thanks.