开发者

Why is primefaces Fileupload not Visible?

开发者 https://www.devze.com 2023-02-14 22:55 出处:网络
The fileupload Control foris not visible in the browser(rendered though). When I viewed the source code from the browser, it was rendered like this..

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',fileD开发者_开发技巧ataName:'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

0

精彩评论

暂无评论...
验证码 换一张
取 消