Window.open not working with IE7
I am facing when i am opening a popup with IE 7..is there any way around for this
<h:form>
<h:commandButton value="Submit" action="#{bean.submit}">
<f:ajax render="popup" />
</h:commandButton>
<h:panelGroup id="popup">
<ui:fragment rendered="#{not empty bean.url}">
<script>windo开发者_如何转开发w.open('#{bean.url}');</script>
</ui:fragment>
</h:panelGroup>
</h:form>
Then your IE7 is configured to block (certain) popups or has a popup blocker installed. Often it will block popups which points to external sites. Reconfigure IE or disable the blocker.
An alternative is to use a HTML/JS/CSS div-with-overlay approach or a 3rd party JSF component library like PrimeFaces/RichFaces which have components for this. For example, PrimeFaces with <p:dialog>
.
精彩评论