开发者

Primefaces fileUpload it isn't rendered as it should

开发者 https://www.devze.com 2023-04-12 07:22 出处:网络
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 wh

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=开发者_C百科"true"/>

</h:form>

Has anyone encountered this problem?


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!

0

精彩评论

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

关注公众号