Uploaded image for project: 'MyFaces Tobago'
  1. MyFaces Tobago
  2. TOBAGO-1769

Ajax doesn't work for text containing non-printable control characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.4
    • 3.0.5, 4.0.0
    • None
    • None

    Description

      A text with a control character.

      private String controlFoo = "Deimoyyy\u001Azzz";
      public String getControlFoo() {
        return controlFoo;
      }
      <tc:out id="ajaxOut" label="Controlfoo" value="#{controller.controlFoo}"/>
      <tc:button label="Ajax">
        <f:ajax render="ajaxOut"/>
      </tc:button>

      The page is rendered properly if execute a full page reload.
      If pressing the ajax button, this 'ajaxOut' component is not rendered. You can find the control character in the ajax response.

      Please note, the error is not only for the 'value' attribute. It also appears for the 'tip' attribute (and probably for all other string attributes).

      Attachments

        Activity

          People

            lofwyr Udo Schnurpfeil
            hnoeth Henning Nöth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: