Hi,
How to use PrimeFaces p:fileUpload? javax.faces.SEPARATOR_CHAR is "_"
We will be using the "_" as the delimiter can not be in the future in order to operate the upload of the file?
# Delimiter "-" works fine if to.
Use library:
primefaces-6.0.jar
Reference site:
How to use PrimeFaces p:fileUpload? Listener method is never invoked or UploadedFile is null
http://stackoverflow.com/questions/8875 ... r-uploaded
My Test Code:
ui.xhtml
<h:form id="mainFrm">
<p:fileUpload fileUploadListener="#{testBean.handleFileUpload}" mode="advanced" dragDropSupport="true"
update="commonMessages" allowTypes="/(\.|\/)(gif|jpe?g|png)$/"
/>
<p:growl id="commonMessages" showSummary="false" showDetail="true" autoUpdate="false" sticky="false" life="4000" escape="false" />
</h:form>
web.xml
<context-param>
<param-name>javax.faces.SEPARATOR_CHAR</param-name>
<param-value>_</param-value>
</context-param>
How to use PrimeFaces p:fileUpload? javax.faces.SEPARATOR_CH
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests