jsf - Unable to close modalpanel popup window after file download JSF1.2? -


i using jsf1.2, below code in xhtml file, code popup on click of save hit respective bean method , file downloaded. requirement if validation error occurs error should displayed in popup , if no validation error there file should downloaded , popup should closed automatically. know oncomplete event not work <a4j:htmlcommandlink> or <h:commandlink> tag. tried googling lot not find optimal solution. helpful if helps me. file getting downloaded popup not getting closed automatically, , if validation error there getting displayed in mainpage popup called. in advance.

<ui:composition xmlns="http://www.w3.org/1999/xhtml"     xmlns:ui="http://java.sun.com/jsf/facelets"     xmlns:h="http://java.sun.com/jsf/html"     xmlns:f="http://java.sun.com/jsf/core"     xmlns:a4j="http://richfaces.org/a4j"     xmlns:rich="http://richfaces.org/rich">     <rich:modalpanel id="strategymodalpanelid"         resizeable="true" style="text-align:left">         <h:form id="dummyform">             <rich:panel styleclass="">                 <a4j:htmlcommandlink styleclass="button color"                     id="copystratgyid"                     value="save"                     action="{backingbean.savestrategy}"                     style="width: 48px;"                     oncomplete="oncompletepopup('strategymodalpanelid');">                     <i class="icon-ok-sign button-icon"></i>                 </a4j:htmlcommandlink>             </rich:panel>         </h:form>     </rich:modalpanel> </ui:composition> 


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -