为什么primefaces Fileupload不可见?

编程入门 行业动态 更新时间:2024-10-27 19:16:45
本文介绍了为什么primefaces Fileupload不可见?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 文件上载控制在浏览器中不可见(通过渲染)。

当我从浏览器中查看源代码时,它就像这样呈现出来。

< script type =text / javascript> jQuery(function(){widget_exeupload1 = new PrimeFaces.widget.Uploader('exeupload1',{uploader:'/ jsfscrb / javax.faces.resource / fileupload / uploadify.swf.xhtml?ln = primefaces& amp; amp; amp; amp; v = 2.2.1' ,脚本: '/ jsfscrb / home.xhtml',cancelImg: '/ jsfscrb / javax.faces.resource /文件上传/ cancel.png.xhtml LN = primefaces&放大器;放大器; v = 2.2.1'? ,formId:'j_idt225',fileDataName:'exeupload1_file',multi:false,auto:true,inputFileId:'exeupload1_file',jsessionid:'f99f510153df31f57a310fb8de8e',update:'dlist1 resmsg',fileDesc:'Resource Files'});} ); < / script>

我使用的是Fedora Core 3,NetBeans 6.8,Mojarra 2.0.4以及glassfish server v3。以上所说的行为在Firefox 2.0.0.20和Opera 10.11中都有观察到。

我想知道问题出在哪里,老老实实地猜不出来。每一个小小的帮助,以确定和/或解决这个问题,是非常欢迎,请问!!!

在哪里可以解决问题呢?

  • FedoraCore 3图形包
  • Primefaces
  • Firefox或Opera
$ PrimeFaces 2.2.x文件上传使用闪光,所以根据Flash插件,它可能有问题。尝试3.0的新的文件上传,使用HTML5优雅退化。 3.0不需要flash。

www.primefaces/showcase/ui/file/upload/basic.xhtml

The fileupload Control for is not visible in the browser(rendered though).

When I viewed the source code from the browser, it was rendered like this..

<script type="text/javascript"> jQuery(function() {widget_exeupload1 = new PrimeFaces.widget.Uploader('exeupload1', {uploader:'/jsfscrb/javax.faces.resource/fileupload/uploadify.swf.xhtml?ln=primefaces&amp;v=2.2.1',script:'/jsfscrb/home.xhtml',cancelImg:'/jsfscrb/javax.faces.resource/fileupload/cancel.png.xhtml?ln=primefaces&amp;v=2.2.1',formId:'j_idt225',fileDataName:'exeupload1_file',multi:false,auto:true,inputFileId:'exeupload1_file',jsessionid:'f99f510153df31f57a310fb8de8e',update:'dlist1 resmsg',fileDesc:'Resource Files'});}); </script>

I use the Fedora Core 3, NetBeans 6.8, Mojarra 2.0.4 with glassfish server v3. Above said behavior was observed with Firefox 2.0.0.20 and also with Opera 10.11.

I am wondering where might the problem be and honestly couldn't guess it. Every little help to identify and/or solve the problem is very welcome please!!!

Where could the problem be?

  • FedoraCore 3 graphic packages
  • Primefaces
  • Firefox or Opera

解决方案

PrimeFaces 2.2.x fileupload uses flash so depending on flash plugin, it might have issues. Try 3.0's new fileupload which uses HTML5 with graceful degradation. No flash is required with 3.0.

www.primefaces/showcase/ui/file/upload/basic.xhtml

更多推荐

为什么primefaces Fileupload不可见?

本文发布于:2023-11-15 05:04:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1591393.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:primefaces   Fileupload

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!