Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8
-
Fix Version/s: 1.8.1
-
Component/s: Documentation
-
Labels:None
-
Environment:Using: ff 3.0.10 and ie7.0.6001.18000
Server: Tomcat 6.0.18
ICEFaces: 1.8.0
IDE: MyEclipse Enterprise 7.1.1-20090310
-
ICEsoft Forum Reference:
-
Workaround Exists:Yes
-
Workaround Description:
Description
I think there is a bug in the documentation:
"IceFacesDeveloperGuide.pdf" v1.8
In the Javascript section on page 28.
The example code does not work. It throws an exception: javax.faces.FacesException: java.lang.IllegalArgumentException: document:body
Here is the code:
<body id="document:body">
<script type="text/javascript">
Ice.onSessionExpired('document:body', function() {
alert('Session has expired!');
});
</script>
When I remove the whole id tag from the body element it works:
<body>
<script type="text/javascript">
Ice.onSessionExpired('document:body', function() {
alert('Session has expired!');
});
</script>
Just removing the colon (:) from body id tag will also NOT work, because then you will get an JavaScript error:
Error: H.asElement() is null
Source File: http://localhost/xmlhttp/1241601129027/icefaces-d2d.js
Line: 36
Maybe You should adjust your documentation.
But maybe I'm wrong.
"IceFacesDeveloperGuide.pdf" v1.8
In the Javascript section on page 28.
The example code does not work. It throws an exception: javax.faces.FacesException: java.lang.IllegalArgumentException: document:body
Here is the code:
<body id="document:body">
<script type="text/javascript">
Ice.onSessionExpired('document:body', function() {
alert('Session has expired!');
});
</script>
When I remove the whole id tag from the body element it works:
<body>
<script type="text/javascript">
Ice.onSessionExpired('document:body', function() {
alert('Session has expired!');
});
</script>
Just removing the colon (:) from body id tag will also NOT work, because then you will get an JavaScript error:
Error: H.asElement() is null
Source File: http://localhost/xmlhttp/1241601129027/icefaces-d2d.js
Line: 36
Maybe You should adjust your documentation.
But maybe I'm wrong.
Activity
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P3 |
Mircea Toma
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Fix Version/s | 1.8.1 [ 10170 ] | |
Assignee Priority | P3 | |
Assignee | Mircea Toma [ mircea.toma ] |
Uei Liece
created issue -
The example in previous comment (from Uei Liece) is the correct one. The <body> tag will always have id="document:body" set by DOMResponseWriter.