8 Replies Latest reply on May 31, 2008 10:36 AM by Nick Belaevski

    Error only in FireFox () - RichFaces 3.2.1

    Daniel Noto Paiva Newbie

      This error occurs only in firefox:

      Erro no processamento de XML: not well-formed
      Posição: http://localhost:8080/calima/page/ger/principal/principal.jsf
      Número da linha 66, Coluna 1696:

      Manuten&ccedil;&atilde;o<div class="dr-menu-item dr-menu-item-enabled rich-menu-item rich-menu-item-enabled " id="f1:j_id19" onclick="this.className='dr-menu-item dr-menu-item-enabled rich-menu-item rich-menu-item-enabled '; {var form = A4J.findForm(this);var params = new Object();params['f1:j_id19:hidden'] = 'f1:j_id19';Richfaces.jsFormSubmit('f1:j_id19',form.id,'',params);}; return false;;" onmouseout="if (RichFaces.Menu.isWithin(event, this)) return; this.className='dr-menu-item dr-menu-item-enabled rich-menu-item rich-menu-item-enabled '; $('f1:j_id19').style.cssText=';'; $('f1:j_id19:icon').className='dr-menu-icon rich-menu-item-icon '; Element.removeClassName($('f1:j_id19:anchor'), 'rich-menu-item-label-selected');" onmouseover="if (RichFaces.Menu.isWithin(event, this)) return; this.className='dr-menu-item dr-menu-item-hover rich-menu-item rich-menu-item-hover ';; $('f1:j_id19').style.cssText='; ; ;'; $('f1:j_id19:icon').className='dr-menu-icon dr-menu-icon-selected rich-menu-item-icon rich-menu-item-icon-sel
      ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^

        • 1. Re: Error only in FireFox () - RichFaces 3.2.1
          Daniel Noto Paiva Newbie

          Manuten&ccedil;&atilde;o<div class="dr-menu-item dr-menu-item-enabled rich-menu-item rich-menu-item-enabled " id="f1:j_id19" onclick="this.className='dr-menu-item dr-menu-item-enabled rich-menu-item rich-menu-item-enabled '; {var form = A4J.findForm(this);var params = new Object();params['f1:j_id19:hidden'] = 'f1:j_id19';Richfaces.jsFormSubmit('f1:j_id19',form.id,'',params);}; return false;;" onmouseout="if (RichFaces.Menu.isWithin(event, this)) return; this.className='dr-menu-item dr-menu-item-enabled rich-menu-item rich-menu-item-enabled '; $('f1:j_id19').style.cssText=';'; $('f1:j_id19:icon').className='dr-menu-icon rich-menu-item-icon '; Element.removeClassName($('f1:j_id19:anchor'), 'rich-menu-item-label-selected');" onmouseover="if (RichFaces.Menu.isWithin(event, this)) return; this.className='dr-menu-item dr-menu-item-hover rich-menu-item rich-menu-item-hover ';; $('f1:j_id19').style.cssText='; ; ;'; $('f1:j_id19:icon').className='dr-menu-icon dr-menu-icon-selected rich-menu-item-icon rich-menu-item-icon-sel
          ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^

          • 2. Re: Error only in FireFox () - RichFaces 3.2.1
            Ilya Shaikovsky Master

            show your snippets please. what parser you've using? did you use facelets?

            • 3. Re: Error only in FireFox () - RichFaces 3.2.1
              Daniel Noto Paiva Newbie

              Yes I use facelets.

              this is my code.



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


              <rich:toolBar itemSeparator="grid">

              <rich:dropDownMenu value="Manutenção" rendered="#{rb.principalJSF.rendManutencao}">
              <rich:menuItem value="Administradora" action="#{rb.principalJSF.navAdministradora}" rendered="#{rb.principalJSF.rendAdministradora}" />
              <rich:menuSeparator/>
              <rich:menuItem value="Empresa" action="#{rb.principalJSF.navEmpresa}" rendered="#{rb.principalJSF.rendEmpresa}" />
              <rich:menuItem value="Grupo de Empresa" action="#{rb.principalJSF.navGrupoEmpresa}" rendered="#{rb.principalJSF.rendGrupoEmpresa}" />
              <rich:menuSeparator/>
              <rich:menuItem value="Cidade" action="#{rb.principalJSF.navCidade}" rendered="#{rb.principalJSF.rendCidade}" />
              <rich:menuItem value="UF" action="#{rb.principalJSF.navUF}" rendered="#{rb.principalJSF.rendUF}" />
              <rich:menuSeparator/>
              <rich:menuItem value="Empresas do Usuário" action="#{rb.principalJSF.navEmpresaUser}" rendered="#{rb.principalJSF.rendEmpresaUser}" />
              <rich:menuItem value="Permissões do Perfil" action="#{rb.principalJSF.navCtrlPermissaoPerfil}" rendered="#{rb.principalJSF.rendPermissaoPerfil}"/>
              <rich:menuItem value="Usuário" action="#{rb.principalJSF.navClienteUsuario}" rendered="#{rb.principalJSF.rendUsuario}"/>
              <rich:menuSeparator/>
              <rich:menuItem value="Alterar Senha" action="#{rb.principalJSF.navAlterarSenha}"/>
              </rich:dropDownMenu>

              <rich:dropDownMenu value="Módulos" rendered="#{rb.principalJSF.rendModulos}">
              <rich:menuItem value="Livros Fiscais" action="#{rb.principalJSF.navMLF}" rendered="#{rb.principalJSF.rendMLF}"/>
              </rich:dropDownMenu>

              <rich:dropDownMenu value="Relatórios" rendered="#{rb.principalJSF.rendRelatorio}">
              <rich:menuGroup value="Empresa">
              <rich:menuItem value="Relação de Empresa" action="#{rb.principalJSF.navRelGerEmpresa}" rendered="#{rb.principalJSF.rendRelGerEmpresa}"/>
              <rich:menuItem value="Relação de Grupo de Empresa" action="#{rb.principalJSF.navRelGrupoEmpresa}" rendered="#{rb.principalJSF.rendRelGrupoEmpresa}"/>
              </rich:menuGroup>
              </rich:dropDownMenu>

              <rich:dropDownMenu value="Utilitários" rendered="#{rb.principalJSF.rendUtilitarios}">
              <rich:menuItem value="Manual do Calima" action="#{rb.principalJSF.navHelp}" rendered="#{rb.principalJSF.rendHelp}" target="calima_manual" />
              </rich:dropDownMenu>

              <h:commandLink value="SAIR" action="#{plannedrequest.loginJSF.logout}" style="color: #FFFFFF; text-decoration: none"/>

              </rich:toolBar>

              </ui:composition>

              • 4. Re: Error only in FireFox () - RichFaces 3.2.1
                Ilya Shaikovsky Master

                did you use NONE in parser definition? Try to set NEKO then

                • 6. Re: Error only in FireFox () - RichFaces 3.2.1
                  Ilya Shaikovsky Master

                   

                   <context-param>
                   <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
                   <param-value>NEKO, TIDY</param-value>
                   </context-param>
                  
                  


                  • 7. Re: Error only in FireFox () - RichFaces 3.2.1
                    Daniel Noto Paiva Newbie

                    this is my configuration and don´t work.


                    <display-name>Ajax4jsf Filter</display-name>
                    <filter-name>ajax4jsf</filter-name>
                    <filter-class>org.ajax4jsf.Filter</filter-class>
                    <init-param>
                    <param-name>forceparser</param-name>
                    <param-value>false</param-value>
                    </init-param>


                    <filter-mapping>
                    <filter-name>ajax4jsf</filter-name>
                    <servlet-name>Faces Servlet</servlet-name>
                    </filter-mapping>

                    <context-param>
                    <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
                    <param-value>com.sun.facelets.FaceletViewHandler</param-value>
                    </context-param>

                    <context-param>
                    <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
                    <param-value>NEKO, TIDY</param-value>
                    </context-param>

                    <context-param>
                    <param-name>org.ajax4jsf.SKIN</param-name>
                    <param-value>classic</param-value>
                    </context-param>


                    <context-param>
                    <param-name>facelets.REFRESH_PERIOD</param-name>
                    <param-value>2</param-value>
                    </context-param>
                    <context-param>
                    <param-name>facelets.DEVELOPMENT</param-name>
                    <param-value>true</param-value>
                    </context-param>
                    <context-param>
                    <param-name>facelets.LIBRARIES</param-name>
                    <param-value>/WEB-INF/classes/ger.taglib.xml</param-value>
                    </context-param>




                    <filter-name>Planned Filter</filter-name>
                    <filter-class>planned.util.PlannedFilter</filter-class>

                    <filter-mapping>
                    <filter-name>Planned Filter</filter-name>
                    <url-pattern>/planned/facelets/page/*</url-pattern>
                    </filter-mapping>

                    • 8. Re: Error only in FireFox () - RichFaces 3.2.1
                      Nick Belaevski Master

                      Hello,

                      I've created: http://jira.jboss.org/jira/browse/RF-3607 for the problem. As a workaround you can replace h:commandLink with a4j:htmlCommandLink or set org.ajax4jsf.xmlparser.ORDER to TIDY value