voyent
InputFile: the message for wrong file extension doesn't show  XML
Forum Index -> Components
Author Message
edykory


Joined: 27/Nov/2006 00:00:00
Messages: 332
Offline


Hi there,
I have this inputFile control
Code:
 <ice:inputFile id="inputFile" actionListener="#{uploadController.fileUploaded}" fileNamePattern=".+\.xml"
 	progressListener="#{fileUploadProgressListener.progressMade}" progressRender="true" />
 <ice:outputProgress value="#{fileUploadProgressListener.percent}" />
 

Nothing fancy ...
The problem is that all messages related to the inputFile get printed by the ice:messages control (invalid file, file too big, etc), except the one for the wrong file pattern
(The file name Xxxxxx does not match with the file name pattern xxxxx).
It does show in JBoss's log as

12:29:18,453 INFO [javax.enterprise.resource.webcontainer.jsf.lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=inputFile[severity=(INFO 0), summary=(The file name Xxxxxx does not match with the file name pattern xxxxx), detail=(The file name Xxxxxx does not match with the file name pattern xxxxx)]
 


Any ideas?

Eduard
javaninja72


Joined: 12/Sep/2007 00:00:00
Messages: 13
Offline


I'm having the same problem. Did you ever find a solution?
aleamoro

Joined: 23/Jan/2010 00:00:00
Messages: 2
Offline


Same problem :(
akrabu

Joined: 17/Aug/2009 00:00:00
Messages: 12
Offline


got the same problem before, i just restart my server and it displayed.
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team