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.
Please review and add a comment that indicates what the example code snippet should look like so I can add it to the Rel. Notes, if necessary.