Primefaces fileUpload 未按应有的方式呈现
我正在使用 Primefaces 3.0.M4-Snapshot,并且正在尝试集成新的 fileUpload 组件: http://www.primefaces.org/showcase-labs/ui/fileUploadSingle.jsf (它看起来像工具栏更好),但是当我运行时fileUpload 的页面看起来与旧页面完全一样: http://www.primefaces.org/展示/ui/fileUploadSingle.jsf... 我正在使用最新的命名空间:xmlns:p="http://primefaces.org/ui"
这是我的 primefaces 代码:
<h:form enctype="multipart/form-data">
<p:fileUpload fileUploadListener="#{fileUploadController.handleFileUpload}" mode="advanced"
update="messages" sizeLimit="100000" allowTypes="/(\.|\/)(gif|jpe?g|png)$/" />
<p:growl id="messages" showDetail="true"/>
</h:form>
有人遇到过这个问题吗?
I'm using Primefaces 3.0.M4-Snapshot and I'm trying to integrate the new fileUpload component: http://www.primefaces.org/showcase-labs/ui/fileUploadSingle.jsf (it looks nicer like a toolbar), but when I run the page the fileUpload looks exactly like the old one: http://www.primefaces.org/showcase/ui/fileUploadSingle.jsf...
I'm using the latest namespace: xmlns:p="http://primefaces.org/ui"
This is my primefaces code:
<h:form enctype="multipart/form-data">
<p:fileUpload fileUploadListener="#{fileUploadController.handleFileUpload}" mode="advanced"
update="messages" sizeLimit="100000" allowTypes="/(\.|\/)(gif|jpe?g|png)$/" />
<p:growl id="messages" showDetail="true"/>
</h:form>
Has anyone encountered this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后,我解决了这个问题:我正在使用集成了 Primefaces 2.2.1 的 Netbeans 7,这是我从项目开始就一直使用的库......看来 Primefaces 2.2.1 库仍然在Ant 部署。经过重命名、清理项目和部署后,我的项目运行得很好!
谢谢大家!
At last, I have resolved the problem: I'm using Netbeans 7 which integrates Primefaces 2.2.1, the library that I have been using from the begging of my project... It seems that the library Primefaces 2.2.1 was still in the Ant-Deploy. After a rename, a clean project and a deploy, my project works great!
Thank you all!