Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3594

Changes to Rich Text editor Source do not appear in Model Value on Submit

    Details

      Description

      Regression in new Fix Pack for 7.2 DXP.

      Steps to Reproduce:

      1. Deploy attached WAR built from liferay-faces-portal 4.0.0
      2. Add "Portal Showcase" widget to a page and refresh
      3. Navigate to Input > portal:inputRichText > Default Value
      4. Enable "Source" mode in the rich text Comments editor
      5. Modify text to the editor (e.g. <strong>NEWbold</strong>)
      6. Click Submit
      7. View "Model Value"

      Expected Result:
      Model Value updated to show new source code changes.

      Actual Result:
      Model Value not updated for new source code changes.

      Debug output in the log

      01:12:37,117 DEBUG [DebugPhaseListener:50] AFTER phaseId=[PROCESS_VALIDATIONS 3] viewId=[/views/component.xhtml]
      01:12:37,118 DEBUG [DebugPhaseListener:66] BEFORE phaseId=[UPDATE_MODEL_VALUES 4] viewId=[/views/component.xhtml]
      01:12:37,119 DEBUG [DebugPhaseListener:50] AFTER phaseId=[UPDATE_MODEL_VALUES 4] viewId=[/views/component.xhtml]
      01:12:37,120 DEBUG [DebugPhaseListener:66] BEFORE phaseId=[INVOKE_APPLICATION 5] viewId=[/views/component.xhtml]
      01:12:37,121 INFO  [InputRichTextBacking:66] You entered comments: <p>This is some <strong>bold</strong> text<br />
      and this is some <em>italic</em> text.</p>
      01:12:37,122 DEBUG [DebugPhaseListener:50] AFTER phaseId=[INVOKE_APPLICATION 5] viewId=[/views/component.xhtml]
      01:12:37,122 DEBUG [DebugPhaseListener:66] BEFORE phaseId=[RENDER_RESPONSE 6] viewId=[/views/component.xhtml]
      01:12:37,132 DEBUG [DebugPhaseListener:50] AFTER phaseId=[RENDER_RESPONSE 6] viewId=[/views/component.xhtml]
      

      Workaround:

      1. Switch off "Source" mode
      2. Make another edit to the text in the visual editor
      3. Click Submit
        Result: Both new edits will be visible in the Model Value.

      Note: Changes to the Source do show in visual editor after switching, this issue only seems to affect the "Model Value" display.

      Reproduced on:
      7.2 DXP FP9
      7.2.x: 8ddd95bb6f898ed8990f9df864b6aee5ee6da0b2

      Not Reproducible on:
      7.2 DXP SP3 (FP8)

        Attachments

          Activity

            People

            Assignee:
            dante.wang Dante Wang
            Reporter:
            victor.ware Victor Ware
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package