为什么primefaces Fileupload不可见? [英] Why is primefaces Fileupload not Visible?

查看:194
本文介绍了为什么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。



http://www.primefaces.org/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.

http://www.primefaces.org/showcase/ui/file/upload/basic.xhtml

这篇关于为什么primefaces Fileupload不可见?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆