ICEfaces
  1. ICEfaces
  2. ICE-8003

IE browsers display "undefined" tooltip after doing a forward navigation

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      All

      Description

      After doing a forward navigation the body tag that is rendered gets its values set as "undefined". This causes a default browser tooltip to be displayed on the page. The body tag is rendered as the following:

      Before:
      <body>

      After:
      <body class="undefined" lang="undefined" style="" title="undefined" dir="">

      This does not happen in a basic JSF (2.1.1 and 2.1.6 tested) test case.

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case [5007000000LGFUA]
        Description After doing a forward navigation the body tag that is rendered gets its values set as "undefined". This causes a default browser tooltip to be displayed on the page. The body tag is rendered as the following:

        Before:
        <body>

        After:
        <body class="undefined" lang="undefined" style="" title="undefined" dir="">

        After doing a forward navigation the body tag that is rendered gets its values set as "undefined". This causes a default browser tooltip to be displayed on the page. The body tag is rendered as the following:

        Before:
        <body>

        After:
        <body class="undefined" lang="undefined" style="" title="undefined" dir="">

        This does not happen in a basic JSF (2.1.1 and 2.1.6 tested) test case.
        Arran Mccullough made changes -
        Attachment undefined-tooltip-firebug.jpg [ 14289 ]
        Attachment Case11108Example.zip [ 14290 ]
        Attachment Case11108Example.war [ 14291 ]
        Ken Fyten made changes -
        Fix Version/s 3.1 [ 10312 ]
        Fix Version/s EE-3.0.0.GA_P01 [ 10327 ]
        Assignee Priority P1
        Assignee Ted Goddard [ ted.goddard ]
        Priority Major [ 3 ] Critical [ 2 ]
        Hide
        Deryk Sinotte added a comment -

        We have the basic navigation test (samples/core/test/nav) that is showing the same behaviour. The actual Ajax update doesn't seem to come back with those <body> attributes set to undefined so perhaps something in the bridge is doing some extra processing?It shows the same behaviour in that the body element ends up going from:

        <body>

        to

        <body class="undefined" title="undefined" lang="undefined" dir="">

        However, the navigation works for me and I don't see any popups or errors in the console (tried latest FF and Chrome). The test attached to this case in the JIRA works for me the same way - I see the body change but nothing else bad happens and the navigation works.

        Show
        Deryk Sinotte added a comment - We have the basic navigation test (samples/core/test/nav) that is showing the same behaviour. The actual Ajax update doesn't seem to come back with those <body> attributes set to undefined so perhaps something in the bridge is doing some extra processing?It shows the same behaviour in that the body element ends up going from: <body> to <body class="undefined" title="undefined" lang="undefined" dir=""> However, the navigation works for me and I don't see any popups or errors in the console (tried latest FF and Chrome). The test attached to this case in the JIRA works for me the same way - I see the body change but nothing else bad happens and the navigation works.
        Hide
        Ted Goddard added a comment -

        This is due to the jsf.js function

        var cloneAttributes = function cloneAttributes(target, source) {

        which should be modified to use getAttribute() rather than element[attribute] and the values should be checked for null before copying into the destination. This results in undefined attributes being "copied" with value "undefined".

        Show
        Ted Goddard added a comment - This is due to the jsf.js function var cloneAttributes = function cloneAttributes(target, source) { which should be modified to use getAttribute() rather than element [attribute] and the values should be checked for null before copying into the destination. This results in undefined attributes being "copied" with value "undefined".
        Ted Goddard made changes -
        Workaround Description If possible use a redirect navigation. If possible use a redirect navigation. Alternatively, wrap the entire page content inside the body tag with <h:panelGroup id="bodyGroup">
        Ken Fyten made changes -
        Summary Undefined tooltip is shown after doing a forward navigation IE browsers display "undefined" tooltip after doing a forward navigation
        Fix Version/s 3.1 [ 10312 ]
        Fix Version/s EE-3.0.0.GA_P01 [ 10327 ]
        Assignee Priority P1
        Affects Version/s 2.0.0 [ 10230 ]
        Affects Version/s EE-3.0.0.GA [ 10262 ]
        Priority Critical [ 2 ] Minor [ 4 ]
        Hide
        Ted Goddard added a comment -
        Show
        Ted Goddard added a comment - Mojarra bug filed: http://java.net/jira/browse/JAVASERVERFACES-2381
        Hide
        Ted Goddard added a comment -

        This is a mojarra bug (case is filed) and the workaround of wrapping the page content in a panelGroup should be reasonable in most cases.

        Show
        Ted Goddard added a comment - This is a mojarra bug (case is filed) and the workaround of wrapping the page content in a panelGroup should be reasonable in most cases.
        Ted Goddard made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: