3 Replies Latest reply on Oct 27, 2010 10:21 AM by edison virto

    Chrome and  a4j:outputPanel problem

    edison virto Newbie

      Hi everybody, i have this problem in Google Chrome (in IE and Firefox works fine) there is a Google Chrome problem?

       

      The code:

       

      default.xhtml

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:rich="http://richfaces.org/rich"
          xmlns:a4j="http://richfaces.org/a4j"
          xmlns:f="http://java.sun.com/jsf/core">
             
      <head>
          <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
          <meta http-equiv="Cache-Control" content="no-store"/>
          <meta name="keywords" content=""/>
          <meta name="description" content=""/>
          <title>Seguridad - <ui:insert name="pageTitle">T&iacute;tulo</ui:insert></title>
          <link rel="stylesheet" type="text/css" href="#{request.contextPath}/css/reset-fonts-grids.css"/>
          <!-- link rel="stylesheet" type="text/css" href="#{request.contextPath}/css/base.css"/-->
          <link rel="stylesheet" type="text/css" href="#{request.contextPath}/css/default.css"/>
          <link rel="stylesheet" type="text/css" href="#{request.contextPath}/css/chrome.css"/>
          <script type="text/javascript">
               A4J.AJAX.onError = function(req, status, message){
                  window.alert("Custom onError handler "+message);
              }
          </script>
         
      </head>


      <body>
          <div id="doc4" class="yui-t2">
              <div id="hd">
                  <!-- CABEZERA -->
                  <ui:insert name="header">
                          <ui:include src="/templates/header.xhtml"/>
                      </ui:insert>
              </div>
              <div id="bd">
                  <div id="yui-main">
                      <div class="yui-b">
                          <!-- MAIN -->
                          <ui:insert name="centro">
                          <ui:include src="/templates/centro.xhtml"/>
                      </ui:insert>
                          <!-- <div id="main" style="height: auto!important; height: 400px; min-height: 400px;">
                              <div class="messages">
                                 
                                  <a4j:outputPanel ajaxRendered="true">
                                      <h:messages id="messages" errorClass="errorMessage" infoClass="infoMessage" >
                                      </h:messages>
                                  </a4j:outputPanel>
                              </div>
                              <div id="pageTitle">
                             
                                  <h3><ui:insert name="pageTitle"/>
                                        <a4j:status>
                                          <f:facet name="start">
                                              <h:graphicImage  value="/images/icons/status.gif"/>
                                          </f:facet>
                                      </a4j:status>
                                     
                                  </h3>
                         
                              </div>
                             
                             
                              <ui:insert name="body"></ui:insert>
                          </div> -->
                      </div>
                  </div>
                  <div class="yui-b">
                      <!-- menu -->
                      <ui:insert name="menu">
                          <ui:include src="/templates/leftMenu.xhtml"/>
                      </ui:insert>
                  </div>
              </div>
            <div id="ft">
        <table width="996" border="0">
          <tr>
            <td width="741"> SirNGN<br />
            best </td>
            <td width="245">
           
                        
            <h:form>
              <h:outputText  value="access: #{loginLogController.ultimoIngreso}"/>
              <br/>
              <h:outputText value="number: #{loginLogController.intentosRechazados}"/>
                   
            </h:form>

                 
            </td>
          </tr>
        </table>
      </div>
          </div>
         
      </body>

      </html>

       

      centro.xhtml

       

      <ui:composition
          xmlns="http://www.w3.org/1999/xhtml"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
          xmlns:rich="http://richfaces.org/rich"
          xmlns:c="http://java.sun.com/jsp/jstl/core">

        <div id="main" style="height: auto!important; height: 400px; min-height: 400px;">
                              <div class="messages">
                                 
                                 
                                  <a4j:outputPanel ajaxRendered="true">
                                      <h:messages id="messages" errorClass="errorMessage"
                                          infoClass="infoMessage" >
                                      </h:messages>
                                  </a4j:outputPanel>
                                 
                              </div>
                              <div id="pageTitle">
                             
                                  <h3><ui:insert name="pageTitle"/>
                                        <a4j:status>
                                          <f:facet name="start">
                                              <h:graphicImage  value="/images/icons/status.gif"/>
                                          </f:facet>
                                      </a4j:status>
                                  </h3>
                             
                              </div>
                                             
                              <ui:insert name="body"></ui:insert>
                             
          </div>           
      </ui:composition>

       

      i am using  the following configuiration

       

      Richfaces 3.3.2.GA

       

      jdk1.6.0_22

       

      google chrome v.8

       

      any ideas or sollutions pls

      Thanks in advanced

        • 1. Re: Chrome and  a4j:outputPanel problem
          edison virto Newbie
          debug[15:53:56,216]: Header Ajax-Response not found, search in <meta>
          debug[15:53:56,216]: Header Ajax-Expired not found, search in <meta>
          warn[15:53:56,216]: No ajax response header
          debug[15:53:56,216]: Header Location not found, search in <meta>
          debug[15:53:56,217]: replace all page content with response
          debug[15:53:56,272]: exception during write page content undefined
          error[15:53:56,278]: Error parsing responseThis page contains the following errors:error on line 92 at column 92: StartTag: invalid element name Below is a rendering of the page up to the first error.
          debug[15:53:56,278]: page content has been replaced

          any ideas or sollutions pls

          Thanks in advanced

          • 2. Re: Chrome and  a4j:outputPanel problem
            Ilya Shaikovsky Master

            hm.. currently seing some wrong declaration like

            action="menu.navigationRule"

            or

            action="#"

            also that could work wrong:

                 reRender="main" at tree. please replace the div with main id from your template to <a4j:outputPanel layout="block"> with the same id.

             

            In general please chec server log. I think that you have no need to wait new Chrome.. just need to correct your pages in order dessired parts of pages to be updated. Currently that

            debug[15:53:56,217]: replace all page content with response

            means that content for ajax response was not generated properly and all the page trying to be updated.

             

            B.t.w. this happens when you clicking to tree node? or to which control?

            • 3. Re: Chrome and  a4j:outputPanel problem
              edison virto Newbie

              this happens  clicking to tree node