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

        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".
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: