[
https://issues.jboss.org/browse/RF-12603?page=com.atlassian.jira.plugin.s...
]
Ken H edited comment on RF-12603 at 11/8/12 11:48 AM:
------------------------------------------------------
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}
This outputs immediately before the generated RichFaces script block.
was (Author: steeltomato):
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