Change fileLimit error message in p:fileUpload
What version of PF are you using?
At least in current version (PF 5) there's a property in <p:fileUpload/> tag called "fileLimitMessage" that can be used with properties message ("#{msg['foo.message']}").
At least in current version (PF 5) there's a property in <p:fileUpload/> tag called "fileLimitMessage" that can be used with properties message ("#{msg['foo.message']}").
PrimeFaces 5.0
PrimeFaces Extensions 2.0.0
JSF 2.0
Mojarra 2.2.0
Glassfish 4.0.1
PrimeFaces Extensions 2.0.0
JSF 2.0
Mojarra 2.2.0
Glassfish 4.0.1
What version of PF are you using?
At least in current version (PF 5) there's a property in <p:fileUpload/> tag called "fileLimitMessage" that can be used with properties message ("#{msg['foo.message']}").
At least in current version (PF 5) there's a property in <p:fileUpload/> tag called "fileLimitMessage" that can be used with properties message ("#{msg['foo.message']}").
PrimeFaces 5.0
PrimeFaces Extensions 2.0.0
JSF 2.0
Mojarra 2.2.0
Glassfish 4.0.1
PrimeFaces Extensions 2.0.0
JSF 2.0
Mojarra 2.2.0
Glassfish 4.0.1
-
- Posts: 45
- Joined: 03 Jul 2014, 19:04
- Location: Biarritz, France
There is an properties for the p:fileUpload component.
Here's a snippet of one of my component:
Code: Select all
invalidSizeMessage
Page 203 - Primefaces user guide (5.0)invalidSizeMessage null String Message to display when size limit exceeds.
Here's a snippet of one of my component:
Code: Select all
<p:fileUpload fileUploadListener="#{fileController.handleSingleFileUpload}" mode="advanced" auto="true" sizeLimit="#{app['MAX_FILE_SIZE']}" allowTypes="/(\.|\/)(pdf|doc|docx|jpe?g|png)$/" label="#{msg['file.choose']}" update="tempFile, :growl" invalidSizeMessage="#{msg['file.doc.size']}" invalidFileMessage="#{msg['file.doc.invalid']}" uploadLabel="#{msg['file.new']}" />
PrimeFaces 5.3 - PF Extensions 4.0.0 - OmniFaces 2.2 - Mojara 2.2.12 - GlassFish 4.1.1 - Java 7 - Netbeans 8.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 30 guests