0 Replies Latest reply on Jun 17, 2010 6:56 PM by Humberto Ferreira da Luz Junior

    Richfaces is not defined

    Humberto Ferreira da Luz Junior Newbie

      I'm using eclipse 3.5.2 with jboss tools 3.1.1.


      I created a seam project. Entity beans, session beans and crud pages were generated through jboss tools.
      In Opera everything works fine, but in firefox and google chrome the rich:toolbar doesn't get its richfaces theme. You can see a print screen (here).


      I used firebug to verify what is happening and I got an error in the rich:toolbar:


      Richfaces is not defined.




      <body><table border="0" cellpadding="0" cellspacing="0" class="rich-toolbar " id="j_id5" width="100%"><tr valign="middle"><td class="rich-toolbar-item " style=";">ADS - GAIA:</td><td class="rich-toolbar-item " style=";"><a href="/ADS/home.seam" id="menuHomeId" style="color:black">Home</a></td><td class="rich-toolbar-item "><a href="/ADS/ChecklistList.seam" id="ChecklistId" style="color:black">Checklists</a></td><td class="rich-toolbar-item "><a href="/ADS/HistoricoList.seam" id="HistoricoId" style="color:black">Historicos</a></td><td class="rich-toolbar-item "><a href="/ADS/RevisaoList.seam" id="RevisaoId" style="color:black">Revis&otilde;es</a></td><td class="rich-toolbar-item "><a href="/ADS/TesteList.seam" id="TesteId" style="color:black">Testes</a></td><td class="rich-toolbar-item "><div class="rich-ddmenu-label rich-ddmenu-label-unselect " id="j_id8"><div class="rich-label-text-decor">Browse data</div><div style="margin: 0px; padding: 0px; border: 0px; position: absolute; z-index: 100;"><div id="j_id8_menu" class="rich-menu-list-border" style="display: none; z-index: 2;"><div class="rich-menu-list-bg"><div class="rich-menu-item rich-menu-item-enabled" id="j_id10" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id10:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id10:anchor"><a href="/ADS/RecursoProjetoList.seam" id="RecursoProjetoId">RecursoProjeto List</a></span></div><div class="rich-menu-item rich-menu-item-enabled" id="j_id11" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id11:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id11:anchor"><a href="/ADS/PalavrasEspeciaisList.seam" id="PalavrasEspeciaisId">PalavrasEspeciais List</a></span></div><div class="rich-menu-item rich-menu-item-enabled" id="j_id12" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id12:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id12:anchor"><a href="/ADS/SgbdList.seam" id="SgbdId">Sgbd List</a></span></div><div class="rich-menu-item rich-menu-item-enabled" id="j_id13" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id13:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id13:anchor"><a href="/ADS/PapelList.seam" id="PapelId">Papel List</a></span></div><div class="rich-menu-item rich-menu-item-enabled" id="j_id14" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id14:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id14:anchor"><a href="/ADS/ProjetoList.seam" id="ProjetoId">Projeto List</a></span></div><div class="rich-menu-item rich-menu-item-enabled" id="j_id15" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id15:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id15:anchor"><a href="/ADS/RelatorioResumidoList.seam" id="RelatorioResumidoId">RelatorioResumido List</a></span></div><div class="rich-menu-item rich-menu-item-enabled" id="j_id16" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id16:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id16:anchor"><a href="/ADS/PlataformaList.seam" id="PlataformaId">Plataforma List</a></span></div><div class="rich-menu-item rich-menu-item-enabled" id="j_id17" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id17:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id17:anchor"><a href="/ADS/ContextoList.seam" id="ContextoId">Contexto List</a></span></div><div class="rich-menu-item rich-menu-item-enabled" id="j_id18" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id18:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id18:anchor"><a href="/ADS/RecursoList.seam" id="RecursoId">Recurso List</a></span></div><div class="rich-menu-item rich-menu-item-enabled" id="j_id19" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id19:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id19:anchor"><a href="/ADS/ClienteList.seam" id="ClienteId">Cliente List</a></span></div><div class="rich-menu-item rich-menu-item-enabled" id="j_id20" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id20:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id20:anchor"><a href="/ADS/ParticipacaoList.seam" id="ParticipacaoId">Participacao List</a></span></div><div class="rich-menu-item rich-menu-item-enabled" id="j_id21" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id21:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id21:anchor"><a href="/ADS/MetodologiaList.seam" id="MetodologiaId">Metodologia List</a></span></div><div class="rich-menu-item rich-menu-item-enabled" id="j_id22" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id22:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id22:anchor"><a href="/ADS/AtaList.seam" id="AtaId">Ata List</a></span></div><div class="rich-menu-item rich-menu-item-enabled" id="j_id23" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id23:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id23:anchor"><a href="/ADS/PessoaList.seam" id="PessoaId">Pessoa List</a></span></div><div class="rich-menu-item rich-menu-item-enabled" id="j_id24" onclick="RichFaces.Menu.updateItem(event,this);"><span class="rich-menu-item-icon " id="j_id24:icon"><img alt="" height="16" src="/ADS/a4j/g/3_3_3.Finalimages/spacer.gif" width="16" /></span><span class="rich-menu-item-label" id="j_id24:anchor"><a href="/ADS/LinguagemList.seam" id="LinguagemId">Linguagem List</a></span></div><div class="rich-menu-list-strut"><div class="rich-menu-list-strut" style="">&#160;</div></div></div></div><script id="j_id8_menu_script" type="text/javascript">new RichFaces.Menu.Layer('j_id8_menu',{'hideDelay':0,'delay':250} ).asDropDown('j_id8').addItems([['j_id10'] ,['j_id11'] ,['j_id12'] ,['j_id13'] ,['j_id14'] ,['j_id15'] ,['j_id16'] ,['j_id17'] ,['j_id18'] ,['j_id19'] ,['j_id20'] ,['j_id21'] ,['j_id22'] ,['j_id23'] ,['j_id24'] ] );</script></div></div></td><td class="rich-toolbar-item "> 
      



      That's my rich:toolbar code:



          <rich:toolBarGroup>
              <h:outputText value="ADS - GAIA:"/>
              <s:link id="menuHomeId" view="/home.xhtml" value="Home" propagation="none" style="color:black"/>
          </rich:toolBarGroup>
              <s:link view="/ChecklistList.xhtml"
                  value="Checklists"
                  id="ChecklistId"
                  style="color:black"
                includePageParams="false"
                   propagation="none"/>
      
            <s:link view="/HistoricoList.xhtml"
                  value="Historicos"
                  id="HistoricoId"
                  style="color:black"
                includePageParams="false"
                  propagation="none"/>
      
      
           <s:link view="/RevisaoList.xhtml"
                  value="Revisões"
                  id="RevisaoId"
                  style="color:black"
                includePageParams="false"
                   propagation="none"/>
      
           <s:link view="/TesteList.xhtml"
                  value="Testes"
                  id="TesteId"
                  style="color:black"
                includePageParams="false"
                   propagation="none"/>
                   
          <rich:dropDownMenu showDelay="250" hideDelay="0" submitMode="none">
              <f:facet name="label">Browse data</f:facet>
           <rich:menuItem>
               <s:link view="/RecursoProjetoList.xhtml"
                      value="RecursoProjeto List"
                      id="RecursoProjetoId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
           
           <rich:menuItem>
               <s:link view="/PalavrasEspeciaisList.xhtml"
                      value="PalavrasEspeciais List"
                      id="PalavrasEspeciaisId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
           <rich:menuItem>
               <s:link view="/SgbdList.xhtml"
                      value="Sgbd List"
                      id="SgbdId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
           <rich:menuItem>
               <s:link view="/PapelList.xhtml"
                      value="Papel List"
                      id="PapelId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
           <rich:menuItem>
               <s:link view="/ProjetoList.xhtml"
                      value="Projeto List"
                      id="ProjetoId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
           <rich:menuItem>
               <s:link view="/RelatorioResumidoList.xhtml"
                      value="RelatorioResumido List"
                      id="RelatorioResumidoId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
           <rich:menuItem>
               <s:link view="/PlataformaList.xhtml"
                      value="Plataforma List"
                      id="PlataformaId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
           <rich:menuItem>
               <s:link view="/ContextoList.xhtml"
                      value="Contexto List"
                      id="ContextoId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
           <rich:menuItem>
               <s:link view="/RecursoList.xhtml"
                      value="Recurso List"
                      id="RecursoId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
           <rich:menuItem>
               <s:link view="/ClienteList.xhtml"
                      value="Cliente List"
                      id="ClienteId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
           <rich:menuItem>
               <s:link view="/ParticipacaoList.xhtml"
                      value="Participacao List"
                      id="ParticipacaoId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
           <rich:menuItem>
               <s:link view="/MetodologiaList.xhtml"
                      value="Metodologia List"
                      id="MetodologiaId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
           <rich:menuItem>
               <s:link view="/AtaList.xhtml"
                      value="Ata List"
                      id="AtaId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
           <rich:menuItem>
               <s:link view="/PessoaList.xhtml"
                      value="Pessoa List"
                      id="PessoaId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
           <rich:menuItem>
               <s:link view="/LinguagemList.xhtml"
                      value="Linguagem List"
                      id="LinguagemId"
                     includePageParams="false"
                     propagation="none"/>
           </rich:menuItem>
          </rich:dropDownMenu>
          
          <!-- @newMenuItem@ -->
          <rich:toolBarGroup location="right">
              <h:outputText id="menuWelcomeId" value="#{messages.logged_in}: #{credentials.username}" rendered="#{identity.loggedIn}"/>
              <s:link id="menuLoginId" view="/login.xhtml" value="Login" rendered="#{not identity.loggedIn}" propagation="none"/>
              <s:link id="menuLogoutId" view="/home.xhtml" action="#{identity.logout}" value="Logout" rendered="#{identity.loggedIn}" propagation="none"/>
          </rich:toolBarGroup>
      </rich:toolBar>



      I researched this error and I found a thread (without the solution) about a similar error.


      Could anyone help me to solve this error?


      Other informations:
      JBoss Application Server 5.1.0
      Richfaces 3.3.3 (I also tried with richfaces 3.3.1).
      JBoss Seam 2.2.0