Why is primefaces Fileupload not Visible?
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&v=2.2.1',script:'/jsfscrb/home.xhtml',cancelImg:'/jsfscrb/javax.faces.resource/fileupload/cancel.png.xhtml?ln=primefaces&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
精彩评论