Jsf Primefaces文件上载未打开“;“文件选择对话框”;关于IE9
我在IE9上看到fileUpload组件的异常行为(它在Chrome和Mozilla上运行良好)。当p:fileUpload被放入p:dialog时,除非用户双击该按钮,否则文件选择器对话框不会打开,IETry上的这种行为会迫使浏览器处于不兼容模式!!!我已经在IE8和IE9中测试了你的代码。我只需点击一下“浏览”按钮就可以了。Jsf Primefaces文件上载未打开“;“文件选择对话框”;关于IE9,jsf,file-upload,primefaces,Jsf,File Upload,Primefaces,我在IE9上看到fileUpload组件的异常行为(它在Chrome和Mozilla上运行良好)。当p:fileUpload被放入p:dialog时,除非用户双击该按钮,否则文件选择器对话框不会打开,IETry上的这种行为会迫使浏览器处于不兼容模式!!!我已经在IE8和IE9中测试了你的代码。我只需点击一下“浏览”按钮就可以了。 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/h
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head></h:head>
<h:body>
<p:commandButton onclick="PF('dlg').show()" value="open"></p:commandButton>
<h:form enctype="multipart/form-data">
<p:dialog widgetVar="dlg">
<p:growl id="messages" showDetail="true" />
<p:fileUpload value="#{UtilityView.file}" mode="simple" skinSimple="true" />
</p:dialog>
</h:form>
</h:body>
</html>