How to change the size(width) of p:fileupload in prime faces

别来无恙 提交于 2019-12-23 04:59:11

问题


I have a p:fileupload but its size can not be reduced. I checked the primefaces3.1 user manual but could not find an attribute to reduce the size of the component.Because of this my fileUpload componenet cut crosses the panel.Please help.I tried to width= but it did not succeed.Below is the code that i use:

<p:fileUpload fileUploadListener="#{editBean.editFileUpload}" width="10px"
                        process="studyPlanEditForm:displayname1"
                        update=":studyPlanEditForm">
                    </p:fileUpload>

回答1:


You can use the attribute styleClass with your own css class and redefine the width inside the CSS.



来源:https://stackoverflow.com/questions/10981560/how-to-change-the-sizewidth-of-pfileupload-in-prime-faces

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!