Details
- 
        Type:
 Bug
            
         - 
        Status: Closed
 - 
            Priority:
 Major
                
             - 
            Resolution: Fixed
 - 
            Affects Version/s: EE-3.2.0.GA
 - 
            Fix Version/s: EE-3.3.0.GA, 4.0.BETA, 4.0
 - 
            Component/s: Bridge
 - 
            Labels:None
 - 
            Environment:JBoss EAP6
 
- 
                        Assignee Priority:P1
 
Description
                    I am sending warnings to the the user via an alert sent with JavaScriptRunner:
JavaScriptRunner.runScript(FacesContext.getCurrentInstance(), "alert('" +
warningString.toString() + "');");
This works, except for when I add a line break '\n' to the alert text. When I do that I don't see the alert and get a js error in the browser (this is the Chrome output):
[window] Error [status: malformedXML code: 200]: Unexpected token ILLEGAL bridge.uncompressed.js.jsf:1310
ConsoleLogHandler.errorPrimitive
JavaScriptRunner.runScript(FacesContext.getCurrentInstance(), "alert('" +
warningString.toString() + "');");
This works, except for when I add a line break '\n' to the alert text. When I do that I don't see the alert and get a js error in the browser (this is the Chrome output):
[window] Error [status: malformedXML code: 200]: Unexpected token ILLEGAL bridge.uncompressed.js.jsf:1310
ConsoleLogHandler.errorPrimitive
Activity
- All
 - Comments
 - History
 - Activity
 - Remote Attachments
 - Subversion
 
| Repository | Revision | Date | User | Message | 
| ICEsoft Public SVN Repository | #34490 | Mon Apr 22 05:59:03 MDT 2013 | mircea.toma |      | 
| Files Changed | ||||
            					
			 
                            MODIFY
            				/icefaces3/trunk/icefaces/licenses/NOTICE.txt
            
             
                            MODIFY
            				/icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/util/JavaScriptRunner.java
            
             | 
| Repository | Revision | Date | User | Message | 
| ICEsoft Public SVN Repository | #34472 | Fri Apr 19 13:31:28 MDT 2013 | ken.fyten |      | 
| Files Changed | ||||
            					
			 
                            MODIFY
            				/icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/util/JavaScriptRunner.java
            
             | 
| Repository | Revision | Date | User | Message | 
| ICEsoft Public SVN Repository | #34462 | Thu Apr 18 16:37:01 MDT 2013 | mircea.toma |      | 
| Files Changed | ||||
            					
			 
                            MODIFY
            				/icefaces3/trunk/icefaces/licenses/NOTICE.txt
            
             
                            MODIFY
            				/icefaces3/trunk/icefaces/core/src/main/java/org/icefaces/util/JavaScriptRunner.java
            
             | 
