[richfaces-issues] [JBoss JIRA] (RF-12603) JS TypeError exception from RichFaces.csv.addMessage line added to page source

Ken H (JIRA) jira-events at lists.jboss.org
Thu Nov 8 11:48:18 EST 2012


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

Ken H commented on RF-12603:
----------------------------

Temp workaround was to add the method to the end of my main layout.xhtml

{code}
if (!RichFaces.csv.addMessage) {
  RichFaces.csv.addMessage = function(msgObj) {}
}
{code}
                
> JS TypeError exception from RichFaces.csv.addMessage line added to page source
> ------------------------------------------------------------------------------
>
>                 Key: RF-12603
>                 URL: https://issues.jboss.org/browse/RF-12603
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.3.0.M2
>            Reporter: Ken H
>
> The JS line:
> {code}if (RichFaces.csv) { RichFaces.csv.addMessage({ 'UISELECTONE_INVALID': {detail:'{0}: Validation Error: Value is not valid',summary:'{0}: Validation Error: Value is not valid',severity:2} }); }{code}
> That was added to my pages causes:
> {code}Uncaught TypeError: Object #<Object> has no method 'addMessage'{code}
> RichFaces.csv does appear to not have an addMessage method. I am not sure what caused this line to be added to the generated script block on the page.
> This does not break the initial page load but the same error is appearing on AJAX responses and does break the processing of the response.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list