Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.3
-
Component/s: ICE-Components
-
Labels:None
-
Environment:any
-
ICEsoft Forum Reference:
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration
Description
All of the user messaging in the InputFile component are hard-coded and can't be customized. We need to keep the defaults but allow users to set these messages in a ReourceBundle.
Exception processing updates
File info is null
the request was rejected because it's size is unknown
the request was rejected because it's size exceeds allowed range
File not found
Input File File Info is null
This is not a valid file
the request was rejected because no multipart boundary was found
and on iceupload.html:
Please wait file is uploading to the server
Exception processing updates
File info is null
the request was rejected because it's size is unknown
the request was rejected because it's size exceeds allowed range
File not found
Input File File Info is null
This is not a valid file
the request was rejected because no multipart boundary was found
and on iceupload.html:
Please wait file is uploading to the server
The ability of defining facesMessages using icefaces' resourseBundle and overriding these messages by an application has been added to the icefaces. So now messages of the custom components can be I18N and overridden by the application developers. The inputFile component defines the following messages, that can be overridden by the application as well:
com.icesoft.faces.component.inputfile.INVALID_FILE=''
{0}'' is not a valid filecom.icesoft.faces.component.inputfile.INVALID_NAME_PATTERN=The file name ''{0}
'' does not match with the file name pattern ''
{1}''
com.icesoft.faces.component.inputfile.SIZE_LIMIT_EXCEEDED=the request was rejected because it's size exceeds allowed range
com.icesoft.faces.component.inputfile.UNKNOWN_SIZE=the request was rejected because it's size is unknown