Disable multiple File Select / Choose.

UI Components for JSF
Post Reply
prime2011
Posts: 2
Joined: 16 Dec 2011, 00:32

16 Dec 2011, 09:19

Choose option in the fileupload can select multiple files.... i want to restrict that to only one file.

I have set the multiple to false but dint work for me.

any help is highly appreciated.

Code: Select all

<p:fileUpload id="upload" ajax="false" fileUploadListener="#{filecontroller.handleupload}"
            mode="advanced"  
            update="messages"  
            label="Choose"
            multiple="false"
            sizeLimit="100000"                
            allowTypes="/(\.|\/)(xls|xlsx|csv)$/">
</p:fileUpload> 

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

16 Dec 2011, 10:39


Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 63 guests