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

portal: components with javascript (captcha, inputRichText, etc) fail to update with Ajax in Liferay 7.0 GA5

    Details

      Description

      Steps to Reproduce

      1. Deploy the Portal Showcase (version 3.0.1) to Liferay Portal 7.0 GA5
      2. Navigate to the Captcha General example.
      3. Enter the captcha code in the text box.
      4. Click Submit

      If the bug still exists, nothing will happen because jsf.js fails to parse the partial response.

      In Firefox, the following error will appear in the JavaScript console:

      XML Parsing Error: mismatched tag. Expected: </update>.
      Location: http://localhost:8080/web/guest/portal-showcase?p_p_id=1_WAR_comliferayfacesdemoportalshowcaseportlet&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_cacheability=cacheLevelPage&p_p_col_id=column-1&p_p_col_count=1&_1_WAR_comliferayfacesdemoportalshowcaseportlet_jsfBridgeAjax=true&_1_WAR_comliferayfacesdemoportalshowcaseportlet_facesViewIdResource=%2Fviews%2Fcomponent.xhtml&_1_WAR_comliferayfacesdemoportalshowcaseportlet_componentPrefix=portal&_1_WAR_comliferayfacesdemoportalshowcaseportlet_componentUseCase=general&_1_WAR_comliferayfacesdemoportalshowcaseportlet_componentName=captcha
      Line Number 183, Column 3:

      In Chrome, the following error will appear in the partial response in the Network tab:

      <parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black">
      <h3>
      This page contains the following errors:
      </h3>
      <div style="font-family:monospace;font-size:12px">
      error on line 183 at column 10: Opening and ending tag mismatch: update line 0 and script
      </div>
      <h3>
      Below is a rendering of the page up to the first error.
      </h3>
      </parsererror>

      If the bug is fixed the page will be updated and the Model Value will contain the code that you typed in step 3.

      Workaround

      To work around this issue, do not use Ajax to update portal:captcha.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kyle.stiemann Kyle Stiemann
                Reporter:
                kyle.stiemann Kyle Stiemann
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: