a4j:commandButton causes full page reload on IE7
Posted
by Greg Charles
on Stack Overflow
See other posts from Stack Overflow
or by Greg Charles
Published on 2010-05-25T17:09:26Z
Indexed on
2010/05/25
17:11 UTC
Read the original article
Hit count: 309
Our process allows users to activate their account, and then configure e-mail preferences. We're using the tag:
<a4j:commandButton id="activate"
action="#{controller.agreeAction}"
image="/img/ok.png"
styleClass="activate-button"
reRender="mainContent, sideBar"
oncomplete="showEmailDialog();" />
This works fine on Firefox, but on IE, the showEmaiDialog() fires off to display the new dialog, and then the full page reloads, which instantly hides it again. I put in numerous alert() calls to make sure of what was happening. I see the e-mail dialog until I clear the final alert box in in the showEmailDialog() script, and then I see the alerts that I put into jQuery(document).ready(). Why does IE do a full page reload instead of just refreshing the requested sections?
© Stack Overflow or respective owner