[richfaces-issues] [JBoss JIRA] Commented: (RF-3566) Can't use messages with fileUpload

Anton Lisovenko (JIRA) jira-events at lists.jboss.org
Tue Dec 29 10:49:31 EST 2009


    [ https://jira.jboss.org/jira/browse/RF-3566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12501743#action_12501743 ] 

Anton Lisovenko commented on RF-3566:
-------------------------------------

Here is a kind of workaround:

public void uploadFileListener(UploadEvent event) {
...
// in validateInputFileName() we put message to context if exception occurs
if (!validateInputFileName(uploaded.getFileName())) {

                        // This what helps to render message
			super.getFacesContext().responseComplete();
			
			return;
		}
}

But this works in 4 times from 5. Sometimes the UIRichMessages is not rendered. RF team, could you give please the workaround for this problem!

> Can't use messages with fileUpload
> ----------------------------------
>
>                 Key: RF-3566
>                 URL: https://jira.jboss.org/jira/browse/RF-3566
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 3.2.1
>            Reporter: Ilya Shaikovsky
>            Assignee: Nick Belaevski
>             Fix For: 4.0.0.BETA1
>
>
> http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4153840#4153840
> Using his code in demosite listener I'm getting next behaviour.
> "Transfer error occuried" error in file upload status.
> But rich:messages which added to the page doesn't show anything.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list