Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/jsf/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf Primefaces文件上载未打开“;“文件选择对话框”;关于IE9_Jsf_File Upload_Primefaces - Fatal编程技术网

Jsf Primefaces文件上载未打开“;“文件选择对话框”;关于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

我在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/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>