Hi all,
I'm using rich:fileUpload component in my app.
To restrict file size for upload, I have setting into web.xml the maxRequestSize param in the filter tag. It's works.
When I use for upload a file with size greater than maxRequestSize param, it is display out "File size restricted".
Now I have a properties file with internalization and in my bean (that uses rich:fileUpload component) I use a resourceBundle to change all label in fileUpload component:
<rich:fileUpload ... sizeErrorLabel="#{resourceBundle.msgSizeLimited}" .... />
Can I modify this message (msgSizeLimited) using maxRequestSize param?
I wish to get: "Use file size smaller than '
maxRequestSize param'".
If it is possibile, how can I do it?
Also I can to use my bean to format sizeErrorLabel:
<rich:fileUpload ... sizeErrorLabel="#{bean.stringSizeLimited}" .... />
but I don't know how to read a maxRequestSize param into web.xml.
Finally, only for info, can I to use a label as "Use file size smaller than {0}", and to use a <f:param ... /> into rich:fileUpload component?
Thanks
Pasquy