开发者

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>.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜