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

        There are no subversion log entries for this issue yet.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: