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
Brad Kroeger
created issue -
Brad Kroeger
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Ken Fyten [ ken.fyten ] |
Ken Fyten
made changes -
Assignee | Ken Fyten [ ken.fyten ] | Mircea Toma [ mircea.toma ] |
Fix Version/s | EE-3.3.0.GA [ 10572 ] | |
Fix Version/s | 3.4 [ 10770 ] | |
Assignee Priority | P1 [ 10010 ] |
Mircea Toma
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Link | This issue blocks ICE-9202 [ ICE-9202 ] |
Ken Fyten
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Mircea Toma
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Fix Version/s | 4.0 [ 11382 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |