Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.5.3
    • Fix Version/s: 1.7DR#1, 1.7
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      icefaces 1.5.3
      myfaces 1.1.5

      Description

      Hello i have seen that the navigation fails when i use icefaces in portlets.

      The problem is in "DOMResponseWriter" class . When I navigate to another page, this class detects if the new page contains the html and body tags, and if these tags aren't then the class add them. In client side, javascript tries to find a component body with id="body" (<body id="body" >) and this fails, because when the portlet was rendered these tags were eliminated.

      A solution is don't add these tags and if i need add css style to head use a javascript that load this, by example:

      function loadCSS(uri) {
      var objHead = document.getElementsByTagName('head');
         if (objHead[0]) {
      if (document.createElementNS && objHead[0].tagName == 'head') {
      var objCSS = objHead[0].appendChild(document.createElementNS('http://www.w3.org/1999/xhtml&#39;, 'link'));
      } else {
      var objCSS = objHead[0].appendChild(document.createElement('link'));
      }
      objCSS.rel = 'stylesheet';
      objCSS.href = uri;
      objCSS.type = 'text/css';
          }
      }

      I hope that this was usefull.
        Jorge Rodríguez Pedrianes

        Activity

        Hide
        Deryk Sinotte added a comment -

        I believe that this issue has been resolved by the fix for case ICE-2016.

        Show
        Deryk Sinotte added a comment - I believe that this issue has been resolved by the fix for case ICE-2016 .
        Hide
        Deryk Sinotte added a comment -

        Need to review. If still an issue, targetting for 1.7.

        Show
        Deryk Sinotte added a comment - Need to review. If still an issue, targetting for 1.7.
        Hide
        Deryk Sinotte added a comment -

        We've made significant changes to how portlets are handled since 1.5.3. Navigation needs to be reviewed to see if this is still an issue.

        Show
        Deryk Sinotte added a comment - We've made significant changes to how portlets are handled since 1.5.3. Navigation needs to be reviewed to see if this is still an issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jorge Rodríguez Pedrianes
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: