没有flash插件的FileUploadComponent是什么?
我使用 mojarra 2.0.2 开发了一个 JSF 项目。使用facelets作为视图描述语言。
我使用了 primefaces 2.2.1 Fileupload 组件,它使用某种 flash 插件作为浏览按钮。
该项目是在windows机器上开发的,浏览器支持flash插件。但我需要在不支持 flash 插件的 Linux 机器(fedora core 3)中部署该项目。我尝试使用 Firefox 2.0 和 Opera 10.11 进行部署。
两者都无法显示浏览按钮,因为它使用了一些 Flash 内容。我尝试在该机器上安装 Flash 插件,但 Linux 版本与最新的 Flash 播放器不兼容(无法在网络中找到 Linux 操作系统的旧存档)。它需要无限的依赖项来安装,这将导致整个操作系统升级。
由于我不被允许升级操作系统,我需要为 PrimeFaces 组件找到替代 FileUpload 组件。(我不喜欢使用 PF 3.0 SNAPSHOT,直到它有一个稳定的版本。它可能有很多尽管如此,我还是敢用 I)。
所以我的问题是“有人可以向我指出一个不使用 Flash 插件的 FileUpload 组件(具有 Ajax 功能)吗?”
谢谢...
ps
新库不应与 PrimeFaces 2.2.1 库冲突。 也欢迎针对此问题的其他解决方案。我对各种想法持开放态度。
I developed a JSF project using mojarra 2.0.2. with facelets as View Description Language.
I used primefaces 2.2.1 Fileupload Component which uses some kind of flash plugin for the browse button.
That project was developed in windows machine and the browsers supports the flash plugin. But I need to deploy the project in a Linux machine(fedora core 3) which doesn't support the flash plugin. I tried deploying with both firefox 2.0 and opera 10.11.
Both failed to display the browse button Because it uses some flash content. I tried to install the Flash plugin in that machine, but the Linux version is not compatible for the latest flash player(older archives for Linux os Could not be found in the web). It requires infinite dependencies to install which would result in Entire OS Upgrade.
Since I am not permitted to upgrade the OS, I need to find alternative FileUpload Component for PrimeFaces component.(I don't prefer to use PF 3.0 SNAPSHOT until it has a stable release. It may have lot of bugs. Despite that, dare I use I).
So my question is " can someone kindly point me towards a FileUpload Component that does not use Flash Plugin
(with Ajax Functionality) ?"
Thanks...
p.s
The new library should not conflict with PrimeFaces 2.2.1 library.
Other solutions to this problem also are welcome. I am open to ideas.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
上传文件和ajax不能并存,这正是使用Flash的主要原因之一。如果您可以忍受在没有 ajax 功能的情况下上传文件,那么您可以使用 Tomahawk 的
t:inputFileUpload
或创建自定义组件。您可以在此处< /a> 基于 JSF 2.0 和 Servlet 3.0(Glassfish 3、Tomcat 7 等)的示例。Uploading files and ajax doesn't go together, that's exactly one of the main reasons why Flash was used. If you can live with uploading files without ajax functionality, then you could grab Tomahawk's
t:inputFileUpload
or create a custom component.You can find here an example based on JSF 2.0 and Servlet 3.0 (Glassfish 3, Tomcat 7, etc).我建议您检查这个
编辑:抱歉没有注意到您不需要 3.0 版本
i recommend you to check this out
edit: sorry didnt notice that you dont want the 3.0 version