[ http://issues.apache.org/jira/browse/MYFACES-870?page=all ]
Bruno Aranda closed MYFACES-870:
--------------------------------
Fix Version: Nightly
Resolution: Fixed
I've fixed that in the sources following your solution. Thanks Roland! I cannot
try it since I only have a linux box here, but the fix seems harmless. Report
back if it is not fixed and in that case I would reopen the issue,
> IE6: NPE in JavaScript when using <t:calendarInput>
> ---------------------------------------------------
>
> Key: MYFACES-870
> URL: http://issues.apache.org/jira/browse/MYFACES-870
> Project: MyFaces
> Type: Bug
> Versions: 1.1.1
> Environment: Windows XP SP2
> IE6
> Reporter: Roland Huss
> Assignee: Bruno Aranda
> Fix For: Nightly
>
> This Javascript error occurs in
> do {
> aTag = aTag.offsetParent;
> leftpos += aTag.offsetLeft;
> toppos += aTag.offsetTop;
> } while(aTag.tagName!="BODY");
> when offsetParent is null. This seems to occur on occasion in IE (e.g. within
> a div with absolute positioning).
> The same problem is described in TAPESTRY-173 and TAPESTRY-222.
> A similar problems occurs at
> while(objParent.tagName.toUpperCase() != "BODY" ){
> objLeft += objParent.offsetLeft;
> objTop += objParent.offsetTop;
> objParent = objParent.offsetParent;
> }
> Again, offsetParent can be null in IE6. An additional condition in the while
> loop prevents this gotcha.
> These problems doesn't occur on firefox 1.0.x
> My temporary solution is to catch the NPE and simply ignore it.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira