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



      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">
      This page contains the following errors:
      <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
      Below is a rendering of the page up to the first error.

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


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


          Issue Links



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


                • Created: