3 Replies Latest reply on Mar 27, 2008 7:40 AM by andreas_back

    rich:dropDownMenu - Error processing XML because   is f

    . . Newbie

      RichFaces users.

      Jsp Code :

      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:rich="http://richfaces.org/rich">
      
       <body>
       <h:form>
       <rich:toolBar>
       <rich:dropDownMenu value="Components">
       <rich:menuItem value="ListShuttle" />
       <rich:menuItem value="DataTable" />
       <rich:menuItem value="Include" />
       <rich:menuItem value="DropDownComboBox" />
       <rich:menuItem value="ScrollableDataTable" />
       </rich:dropDownMenu>
       </rich:toolBar>
       </h:form>
       </body>
      </html>
      


      When I try to run the code above using Internet Explorer all works fine, but using Mozilla Firefox, the message below message appears:

      Error processing XML: entity not defined
      Position: http://localhost:9090/richfaces/richfaces/home.jsp
      Line number 6, Column 3685:

      <table border="0" cellpadding="0" cellspacing="0" class="dr-toolbar-ext rich-toolbar " id="j_id1:j_id2" width="100%">
      <tr valign="middle">
      <td class="dr-toolbar-int rich-toolbar-item ">
      <div class=" dr-menu-label dr-menu-label-unselect rich-ddmenu-label rich-ddmenu-label-unselect" id="j_id1:j_id3">
      <span class="dr-label-text-decor rich-label-text-decor">Components</span>
      <div style="margin: 0px; padding: 0px; border: 0px; position: relative; z-index: 100;">
      <div id="j_id1:j_id3_menu" class="dr-menu-list-border rich-menu-list-border" style="visibility: hidden; z-index: 2; ">
      <div class="dr-menu-list-bg rich-menu-list-bg">
      <div class="dr-menu-item dr-menu-item-enabled rich-menu-item rich-menu-item-enabled " id="j_id1:j_id4" onclick="; {var form = A4J.findForm(this);var params = new Object();params['j_id1:j_id4:hidden'] = 'j_id1:j_id4';Richfaces.jsFormSubmit('j_id1:j_id4',form.id,'',params);}; return false;; Event.stop(event);" onmouseup="Event.stop(event); ">
      <span class="dr-menu-icon rich-menu-item-icon " id="j_id1:j_id4:icon">
      <img height="16" src="/richfaces/a4j_3_1_4.GAimages/spacer.gif.jsp" width="16" />
      </span>
      <span class="rich-menu-item-label" id="j_id1:j_id4:anchor">ListShuttle</span>
      </div>
      <div class="dr-menu-item dr-menu-item-enabled rich-menu-item rich-menu-item-enabled " id="j_id1:j_id5" onclick="; {var form = A4J.findForm(this);var params = new Object();params['j_id1:j_id5:hidden'] = 'j_id1:j_id5';Richfaces.jsFormSubmit('j_id1:j_id5',form.id,'',params);}; return false;; Event.stop(event);" onmouseup="Event.stop(event); ">
      <span class="dr-menu-icon rich-menu-item-icon " id="j_id1:j_id5:icon">
      <img height="16" src="/richfaces/a4j_3_1_4.GAimages/spacer.gif.jsp" width="16" /></span>
      <span class="rich-menu-item-label" id="j_id1:j_id5:anchor">DataTable</span>
      </div>
      <div class="dr-menu-item dr-menu-item-enabled rich-menu-item rich-menu-item-enabled " id="j_id1:j_id6" onclick="; {var form = A4J.findForm(this);var params = new Object();params['j_id1:j_id6:hidden'] = 'j_id1:j_id6';Richfaces.jsFormSubmit('j_id1:j_id6',form.id,'',params);}; return false;; Event.stop(event);" onmouseup="Event.stop(event); ">
      <span class="dr-menu-icon rich-menu-item-icon " id="j_id1:j_id6:icon">
      <img height="16" src="/richfaces/a4j_3_1_4.GAimages/spacer.gif.jsp" width="16" />
      </span>
      <span class="rich-menu-item-label" id="j_id1:j_id6:anchor">Include</span>
      </div>
      <div class="dr-menu-item dr-menu-item-enabled rich-menu-item rich-menu-item-enabled " id="j_id1:j_id7" onclick="; {var form = A4J.findForm(this);var params = new Object();params['j_id1:j_id7:hidden'] = 'j_id1:j_id7';Richfaces.jsFormSubmit('j_id1:j_id7',form.id,'',params);}; return false;; Event.stop(event);" onmouseup="Event.stop(event); ">
      <span class="dr-menu-icon rich-menu-item-icon " id="j_id1:j_id7:icon">
      <img height="16" src="/richfaces/a4j_3_1_4.GAimages/spacer.gif.jsp" width="16" />
      </span>
      <span class="rich-menu-item-label" id="j_id1:j_id7:anchor">DropDownComboBox</span>
      </div>
      <div class="dr-menu-item dr-menu-item-enabled rich-menu-item rich-menu-item-enabled " id="j_id1:j_id8" onclick="; {var form = A4J.findForm(this);var params = new Object();params['j_id1:j_id8:hidden'] = 'j_id1:j_id8';Richfaces.jsFormSubmit('j_id1:j_id8',form.id,'',params);}; return false;; Event.stop(event);" onmouseup="Event.stop(event); ">
      <span class="dr-menu-icon rich-menu-item-icon " id="j_id1:j_id8:icon">
      <img height="16" src="/richfaces/a4j_3_1_4.GAimages/spacer.gif.jsp" width="16" />
      </span>
      <span class="rich-menu-item-label" id="j_id1:j_id8:anchor">ScrollableDataTable</span>
      </div><div class="dr-menu-list-strut rich-menu-list-strut">
      <div class="dr-menu-list-strut rich-menu-list-strut" width="1" height="1" style=""> </div></div></div></div><script id="j_id1:j_id3_menu_script" type="text/javascript">
      


      This error occurs when "&nbsp;" is found!

      Does anybody know how to solve it?

      Versions:
      JSF 1.2
      Facelets 1.1.14
      RichFaces API/IMPL/UI 3.1.4.GA
      Mozilla Firefox: 2.0.0.12
      Ubuntu 7.10