Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.9
    • Fix Version/s: 1.4.18, 1.5-RC4
    • Component/s: wicket
    • Labels:
      None

      Description

      Nothing except for plain AjaxLink works.

      // Page class
      @Override
      protected void configureResponse() {
      	super.configureResponse();
      	final Response response = getResponse();
      	response.setContentType("application/xhtml+xml");
      }
      

      Firebug says:

      An invalid or illegal string was specified" code: "12
      [Break on this error] c.innerHTML = msg; 
      

      Oh yes, no innerHTML is allowed in pure XHTML.

      A simple, quick work-around for this would be to use a jQuery and replace all innerHTMLs with something XHTML-friendly so that DOM tree is built. It would look something like that:

      // c.innerHTML = msg;
      $(c).html(msg);
      

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1h 8m 1 Igor Vaynberg 27/Aug/10 23:45
        Resolved Resolved Reopened Reopened
        187d 19h 13m 1 Martin Grigorov 03/Mar/11 17:58
        Reopened Reopened Resolved Resolved
        56d 19h 35m 1 Martin Grigorov 29/Apr/11 14:34
        Martin Grigorov made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s 1.4.18 [ 12316329 ]
        Fix Version/s 1.5-RC4 [ 12316330 ]
        Resolution Fixed [ 1 ]
        Hide
        Martin Grigorov added a comment -

        Fixed in both 1.4.x and 1.5.x.
        It was failing in 1.5.x - I needed to tweak the quickstart a bit to actually set the header.

        Show
        Martin Grigorov added a comment - Fixed in both 1.4.x and 1.5.x. It was failing in 1.5.x - I needed to tweak the quickstart a bit to actually set the header.
        Martin Grigorov made changes -
        Priority Critical [ 2 ] Minor [ 4 ]
        Hide
        Martin Grigorov added a comment -

        Setting "getDebugSettings().setAjaxDebugModeEnabled(false);" is a workaround for the problem for 1.4.x.

        It works fine in 1.5.x without any changes.

        Show
        Martin Grigorov added a comment - Setting "getDebugSettings().setAjaxDebugModeEnabled(false);" is a workaround for the problem for 1.4.x. It works fine in 1.5.x without any changes.
        Martin Grigorov made changes -
        Assignee Igor Vaynberg [ ivaynberg ] Martin Grigorov [ mgrigorov ]
        Martin Grigorov made changes -
        Resolution Won't Fix [ 2 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Hide
        Martin Grigorov added a comment -

        Reopen because the author attached a quickstart.

        Show
        Martin Grigorov added a comment - Reopen because the author attached a quickstart.
        franta.mejta made changes -
        Attachment myproject3023.7z [ 12472531 ]
        Igor Vaynberg made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Igor Vaynberg [ ivaynberg ]
        Resolution Won't Fix [ 2 ]
        Hide
        Igor Vaynberg added a comment -

        i am having very strange results when i set this content type even on a static html page:
        firefox opens it as xml
        chrome shows the content, even the contents of the <title> page is shown on the page
        ie wants to download the file

        maybe i am not recreating this correctly...please attach a quickstart.

        Show
        Igor Vaynberg added a comment - i am having very strange results when i set this content type even on a static html page: firefox opens it as xml chrome shows the content, even the contents of the <title> page is shown on the page ie wants to download the file maybe i am not recreating this correctly...please attach a quickstart.
        Damian Nowak created issue -

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Damian Nowak
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development