You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2012/06/19 15:25:43 UTC

[jira] [Created] (TRINIDAD-2277) input date popup does not open when using IE 9

Leonardo Uribe created TRINIDAD-2277:
----------------------------------------

             Summary: input date popup does not open when using IE 9
                 Key: TRINIDAD-2277
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2277
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
            Reporter: Leonardo Uribe


Checking the showcase:

http://example.irian.at/trinidad-components-showcase/component-demo/inputDate-Detailed

also with the latest build I can see this error using IE 9  (9.0.8112.16421)

SCRIPT5007: Für die Eigenschaft "body" kann kein Wert abgerufen werden: Das Objekt ist Null oder undefiniert 
DebugCommon1_2_15.js, Zeile 15623 Zeichen 7

Related js:

  if (!dialog._fixedSize)
  {
    if (_agent.isIE)
    {
      dialog._resizeIFrame(
        dialog._iframe.Document.body.scrollWidth+40, 
        dialog._iframe.Document.body.scrollHeight+40);
    }
    else

The popup does not open. Using firefox or chrome it works as expected.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (TRINIDAD-2277) input date popup does not open when using IE 9

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13398198#comment-13398198 ] 

Leonardo Uribe commented on TRINIDAD-2277:
------------------------------------------

I think is the latest one in trunk, because the bug is also in the examples every day are recompiled automatically.
                
> input date popup does not open when using IE 9
> ----------------------------------------------
>
>                 Key: TRINIDAD-2277
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2277
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>            Reporter: Leonardo Uribe
>
> Checking the showcase:
> http://example.irian.at/trinidad-components-showcase/component-demo/inputDate-Detailed
> also with the latest build I can see this error using IE 9  (9.0.8112.16421)
> SCRIPT5007: Für die Eigenschaft "body" kann kein Wert abgerufen werden: Das Objekt ist Null oder undefiniert 
> DebugCommon1_2_15.js, Zeile 15623 Zeichen 7
> Related js:
>   if (!dialog._fixedSize)
>   {
>     if (_agent.isIE)
>     {
>       dialog._resizeIFrame(
>         dialog._iframe.Document.body.scrollWidth+40, 
>         dialog._iframe.Document.body.scrollHeight+40);
>     }
>     else
> The popup does not open. Using firefox or chrome it works as expected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (TRINIDAD-2277) input date popup does not open when using IE 9

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400539#comment-13400539 ] 

Leonardo Uribe commented on TRINIDAD-2277:
------------------------------------------

Investigating this issue, it seems something change in IE 9.

The debugger bundled with that browser shows that dialog._iframe.Document was renamed to dialog._iframe.document. I tried to do something like this:

  if (!dialog._fixedSize)
  {
    if (_agent.isIE)
    {
      var documentField = dialog._iframe.Document;
      if (typeof dialog._iframe.Document != "undefined")
      {
          dialog._resizeIFrame(
                    dialog._iframe.Document.body.scrollWidth+40, 
                    dialog._iframe.Document.body.scrollHeight+40);
      }
      else
      {
          dialog._resizeIFrame(
                  dialog._iframe.document.body.scrollWidth+40, 
                  dialog._iframe.document.body.scrollHeight+40);
      }
    }

but it does not work (fixes the problem, but does not open a new window and instead it opens the calendar in the same window. 

I tried to enable compatibility mode and it works again!. 
                
> input date popup does not open when using IE 9
> ----------------------------------------------
>
>                 Key: TRINIDAD-2277
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2277
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>            Reporter: Leonardo Uribe
>
> Checking the showcase:
> http://example.irian.at/trinidad-components-showcase/component-demo/inputDate-Detailed
> also with the latest build I can see this error using IE 9  (9.0.8112.16421)
> SCRIPT5007: Für die Eigenschaft "body" kann kein Wert abgerufen werden: Das Objekt ist Null oder undefiniert 
> DebugCommon1_2_15.js, Zeile 15623 Zeichen 7
> Related js:
>   if (!dialog._fixedSize)
>   {
>     if (_agent.isIE)
>     {
>       dialog._resizeIFrame(
>         dialog._iframe.Document.body.scrollWidth+40, 
>         dialog._iframe.Document.body.scrollHeight+40);
>     }
>     else
> The popup does not open. Using firefox or chrome it works as expected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (TRINIDAD-2277) input date popup does not open when using IE 9

Posted by "Scott O'Bryan (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400678#comment-13400678 ] 

Scott O'Bryan commented on TRINIDAD-2277:
-----------------------------------------

Sounds like a legitimate bug to me, likely caused by IE9..
                
> input date popup does not open when using IE 9
> ----------------------------------------------
>
>                 Key: TRINIDAD-2277
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2277
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>            Reporter: Leonardo Uribe
>
> Checking the showcase:
> http://example.irian.at/trinidad-components-showcase/component-demo/inputDate-Detailed
> also with the latest build I can see this error using IE 9  (9.0.8112.16421)
> SCRIPT5007: Für die Eigenschaft "body" kann kein Wert abgerufen werden: Das Objekt ist Null oder undefiniert 
> DebugCommon1_2_15.js, Zeile 15623 Zeichen 7
> Related js:
>   if (!dialog._fixedSize)
>   {
>     if (_agent.isIE)
>     {
>       dialog._resizeIFrame(
>         dialog._iframe.Document.body.scrollWidth+40, 
>         dialog._iframe.Document.body.scrollHeight+40);
>     }
>     else
> The popup does not open. Using firefox or chrome it works as expected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (TRINIDAD-2277) input date popup does not open when using IE 9

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13402071#comment-13402071 ] 

Leonardo Uribe commented on TRINIDAD-2277:
------------------------------------------

Yes it is legitimate. I'm able to reproduce it and debug it. I found a simple solution to this one. Just set fixed dimensions in DateField.js _ldp function, when IE9 is used. 

Obviously that's not a complete patch, because anyway a more general culprit should be done in PopupDialog.js 

But I notice that the reason why in IE9 the popup fills the whole screen is because dialog._iframe.document.body.scrollWidth and dialog._iframe.Document.body.scrollHeight returns too big values (maybe related to the window size). So, the question is if we can use something else to set the default dimensions for a popup in IE9. 

Anyway, the fix suggested sounds reasonable. 
                
> input date popup does not open when using IE 9
> ----------------------------------------------
>
>                 Key: TRINIDAD-2277
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2277
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>            Reporter: Leonardo Uribe
>
> Checking the showcase:
> http://example.irian.at/trinidad-components-showcase/component-demo/inputDate-Detailed
> also with the latest build I can see this error using IE 9  (9.0.8112.16421)
> SCRIPT5007: Für die Eigenschaft "body" kann kein Wert abgerufen werden: Das Objekt ist Null oder undefiniert 
> DebugCommon1_2_15.js, Zeile 15623 Zeichen 7
> Related js:
>   if (!dialog._fixedSize)
>   {
>     if (_agent.isIE)
>     {
>       dialog._resizeIFrame(
>         dialog._iframe.Document.body.scrollWidth+40, 
>         dialog._iframe.Document.body.scrollHeight+40);
>     }
>     else
> The popup does not open. Using firefox or chrome it works as expected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (TRINIDAD-2277) input date popup does not open when using IE 9

Posted by "Scott O'Bryan (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397979#comment-13397979 ] 

Scott O'Bryan commented on TRINIDAD-2277:
-----------------------------------------

IE9..  @((#*#$(%@@)@@#(*!!!!!

Why does that browser have to change every darn release...  

Leonardo, which version of Trinidad are you using?
                
> input date popup does not open when using IE 9
> ----------------------------------------------
>
>                 Key: TRINIDAD-2277
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2277
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>            Reporter: Leonardo Uribe
>
> Checking the showcase:
> http://example.irian.at/trinidad-components-showcase/component-demo/inputDate-Detailed
> also with the latest build I can see this error using IE 9  (9.0.8112.16421)
> SCRIPT5007: Für die Eigenschaft "body" kann kein Wert abgerufen werden: Das Objekt ist Null oder undefiniert 
> DebugCommon1_2_15.js, Zeile 15623 Zeichen 7
> Related js:
>   if (!dialog._fixedSize)
>   {
>     if (_agent.isIE)
>     {
>       dialog._resizeIFrame(
>         dialog._iframe.Document.body.scrollWidth+40, 
>         dialog._iframe.Document.body.scrollHeight+40);
>     }
>     else
> The popup does not open. Using firefox or chrome it works as expected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (TRINIDAD-2277) input date popup does not open when using IE 9

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe updated TRINIDAD-2277:
-------------------------------------

    Status: Patch Available  (was: Open)
    
> input date popup does not open when using IE 9
> ----------------------------------------------
>
>                 Key: TRINIDAD-2277
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2277
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>            Reporter: Leonardo Uribe
>         Attachments: TRINIDAD-2277-1.patch
>
>
> Checking the showcase:
> http://example.irian.at/trinidad-components-showcase/component-demo/inputDate-Detailed
> also with the latest build I can see this error using IE 9  (9.0.8112.16421)
> SCRIPT5007: Für die Eigenschaft "body" kann kein Wert abgerufen werden: Das Objekt ist Null oder undefiniert 
> DebugCommon1_2_15.js, Zeile 15623 Zeichen 7
> Related js:
>   if (!dialog._fixedSize)
>   {
>     if (_agent.isIE)
>     {
>       dialog._resizeIFrame(
>         dialog._iframe.Document.body.scrollWidth+40, 
>         dialog._iframe.Document.body.scrollHeight+40);
>     }
>     else
> The popup does not open. Using firefox or chrome it works as expected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (TRINIDAD-2277) input date popup does not open when using IE 9

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13400588#comment-13400588 ] 

Leonardo Uribe commented on TRINIDAD-2277:
------------------------------------------

Just as reference it seems it is related to the buggy behavior of IE9 related to iframe. There is one description that suggest a possible fix:

http://stackoverflow.com/questions/8389261/ie9-throws-exceptions-when-loading-scripts-in-iframe-why

"... Further investigation revealed that the solution is to add the offending iframe to it's dom location BEFORE setting the 'src' attribute. Once the 'src' has been set, changing location of the iframe within the DOM stack forces IE9 to garbage collect it. Once 'src' has been set, iframe can be resized and changed via css positioning, but cannot change the relative location in the DOM stack.Often times, plugins like dialogs and lightboxes will stuff an iframe with src already set into the dom, then append / prepend or whatever, triggering the GC to take place. ..."
                
> input date popup does not open when using IE 9
> ----------------------------------------------
>
>                 Key: TRINIDAD-2277
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2277
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>            Reporter: Leonardo Uribe
>
> Checking the showcase:
> http://example.irian.at/trinidad-components-showcase/component-demo/inputDate-Detailed
> also with the latest build I can see this error using IE 9  (9.0.8112.16421)
> SCRIPT5007: Für die Eigenschaft "body" kann kein Wert abgerufen werden: Das Objekt ist Null oder undefiniert 
> DebugCommon1_2_15.js, Zeile 15623 Zeichen 7
> Related js:
>   if (!dialog._fixedSize)
>   {
>     if (_agent.isIE)
>     {
>       dialog._resizeIFrame(
>         dialog._iframe.Document.body.scrollWidth+40, 
>         dialog._iframe.Document.body.scrollHeight+40);
>     }
>     else
> The popup does not open. Using firefox or chrome it works as expected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira