Primefaces p:fileUpload 在 IE 10 中不起作用 [英] Primefaces p:fileUpload doesnt work in IE 10
问题描述
更新属性和 p:fileUpload 中的 onComplete 在 IE10 中不起作用.在 IE 9 中 sizeLimit 属性被忽略.有没有人遇到过这种情况.
Update attribute and onComplete in p:fileUpload doesnt work in IE10. In IE 9 sizeLimit attribute is ignored. Has anyone came across this situation.
我尝试通过在 p:fileUoload 上使用 onComplete 属性来调用 p:remotecommand,但看起来即使 onComplete 在 IE 10 中也不起作用
I have tried calling p:remotecommand by using onComplete attribute on p:fileUoload but it looks like even onComplete doesn't work in 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的一个bug.
Finally realized that its a bug in primefaces.
http://forum.primefaces.org/viewtopic.php?f=3&t=28860#p94845
http://code.google.com/p/primefaces/问题/详细信息?id=5355
已修复:
TargetVersion-4.0
TargetVersion-3.5.9
TargetVersion-4.0
TargetVersion-3.5.9
这篇关于Primefaces p:fileUpload 在 IE 10 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!