file-upload - 素面 p :fileUpload doesnt work in IE 10

标签 file-upload primefaces

p:fileUpload 中的更新属性和 onComplete 在 IE10 中不起作用。在 IE 9 中 sizeLimit 属性被忽略。有没有人遇到过这种情况。

我尝试通过在 p:fileUoload 上使用 onComplete 属性来调用 p:remotecommand 但看起来即使 onComplete 在 IE 10 中也不起作用

<h:form id="file" enctype="multipart/form-data">
        <p:outputLabel value="Test........"></p:outputLabel>
        <p:fileUpload label="Browse..." description="Select PDF file"
            auto="true" sizeLimit="500000"
            oncomplete="refreshData()"
            onstart="alert('test');" mode="advanced"
            fileUploadListener="#{fileUpload.handleFileUpload}"
            allowTypes="/(\.|\/)(pdf|png)$/">

        </p:fileUpload>
        <p:inputText value="#{fileUpload.test}" id="test" />
        <p:remoteCommand name="refreshData" action="#{fileUpload.setData}"
            update="test"></p:remoteCommand>
    </h:form>

最佳答案

终于意识到它是primefaces中的一个错误。

http://forum.primefaces.org/viewtopic.php?f=3&t=28860#p94845

http://code.google.com/p/primefaces/issues/detail?id=5355

固定在:

TargetVersion-4.0
TargetVersion-3.5.9

关于file-upload - 素面 p :fileUpload doesnt work in IE 10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16036655/

相关文章:

使用适用于 Windows 10+ Mobile 的 UPLOAD 进行视频捕获

javascript - jQuery 的 "uploadProgress"未在 "$.ajax"中触发

asp.net - 如何防止 FileUpload 控件在回发时清除?

css - 使用 Primefaces 在 Internet Explorer 8/9 上长时间拉伸(stretch)页面

unit-testing - JSFUnit 是否测试 Web 应用程序的所有方面?

java - 在primefaces自动完成组件上制作示例时遇到麻烦

java - Ajax 文件上传存储字节直到保存 java.lang.

spring - 文件上传在 Primefaces 中不起作用

primefaces - 如何通过 id 在 Primefaces tabview 中设置事件选项卡?

jsf - 使用图像作为 p :selectOneRadio 的标签