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

        Jorge Rodríguez Pedrianes created issue -
        Deryk Sinotte made changes -
        Field Original Value New Value
        Fix Version/s 1.7 [ 10080 ]
        Ken Fyten made changes -
        Fix Version/s 1.7DR#1 [ 10100 ]
        Fix Version/s 1.7 [ 10080 ]
        Ken Fyten made changes -
        Assignee Deryk Sinotte [ deryk.sinotte ]
        Deryk Sinotte made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]
        Ken Fyten made changes -
        Fix Version/s 1.7 [ 10080 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Deryk Sinotte [ deryk.sinotte ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: