0 Replies Latest reply on Feb 17, 2011 5:01 PM by Maxim Kuzmik

    Dynamic UIMenu* error in included JS RichFaces4

    Maxim Kuzmik Newbie

      Hello.

       

      I catch the next exception. Or maybe i doing wrong.

       

      First situation. I'm creting some menu static and some menu dynamyc:

      <
      
      rich:toolbarGroup>
      
      
        <rich:dropDownMenu mode="ajax">
      
      
          <f:facet name="label">
      
      
            <h:panelGroup>
      
      
              <h:outputText value="Общее" />
      
      
            </h:panelGroup>
      
      
          </f:facet>
      
         ....
      < /rich:toolbarGroup>
      <
      rich:toolbarGroup binding="#{adminMenuManager.menuBarGroup}"/>
      

       

      In this case all is good and it's included next JS:

       

      <!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"><head><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/jquery.js"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/toolbar.js?ln=org.richfaces"></script><link type="text/css" rel="stylesheet" href="/asge-portal/portal/rfRes/toolbar.ecss?db=eAHzX7!yOgAFdgJ!&amp;ln=org.richfaces" /><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/jsf.js?ln=javax.faces&amp;stage=Development"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/jquery.position.js"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/richfaces.js"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/richfaces-base-component.js"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/richfaces-event.js"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/popup.js?ln=org.richfaces"></script><link type="text/css" rel="stylesheet" href="/asge-portal/portal/rfRes/dropdownmenu.ecss?db=eAHzX7!yOgAFdgJ!&amp;ln=org.richfaces" /><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/menuKeyNavigation.js?ln=org.richfaces"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/menu-base.js?ln=org.richfaces"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/menu.js?ln=org.richfaces"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/menugroup.js?ln=org.richfaces"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/richfaces-queue.js"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/menuitem.js?ln=org.richfaces"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/status.js?ln=org.richfaces"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/popupPanel.js?ln=org.richfaces"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/popupPanelBorders.js?ln=org.richfaces"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/popupPanelSizer.js?ln=org.richfaces"></script><link type="text/css" rel="stylesheet" href="/asge-portal/portal/rfRes/popupPanel.ecss?db=eAHzX7!yOgAFdgJ!&amp;ln=org.richfaces" /><link type="text/css" rel="stylesheet" href="/asge-portal/portal/rfRes/panel.ecss?db=eAHzX7!yOgAFdgJ!&amp;ln=org.richfaces" /><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/tree.js?ln=org.richfaces"></script><link type="text/css" rel="stylesheet" href="/asge-portal/portal/rfRes/tree.ecss?db=eAHzX7!yOgAFdgJ!&amp;ln=org.richfaces" />
      
      

      /asge-portal/portal/javax.faces.resource/menuKeyNavigation.js and so on for the menu.

       

      But when i create only dynamic:

       

      <
      rich:toolbarGroup binding="#{adminMenuManager.menuBarGroup}"/>
      

       

      The system dont included any JS for menu and as result i get the JS error.

       

       

      <!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"><head><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/jquery.js"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/toolbar.js?ln=org.richfaces"></script><link type="text/css" rel="stylesheet" href="/asge-portal/portal/rfRes/toolbar.ecss?db=eAHzX7!yOgAFdgJ!&amp;ln=org.richfaces" /><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/jsf.js?ln=javax.faces&amp;stage=Development"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/richfaces.js"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/richfaces-queue.js"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/richfaces-base-component.js"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/status.js?ln=org.richfaces"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/popupPanel.js?ln=org.richfaces"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/popupPanelBorders.js?ln=org.richfaces"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/popupPanelSizer.js?ln=org.richfaces"></script><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/richfaces-event.js"></script><link type="text/css" rel="stylesheet" href="/asge-portal/portal/rfRes/popupPanel.ecss?db=eAHzX7!yOgAFdgJ!&amp;ln=org.richfaces" /><link type="text/css" rel="stylesheet" href="/asge-portal/portal/rfRes/panel.ecss?db=eAHzX7!yOgAFdgJ!&amp;ln=org.richfaces" /><script type="text/javascript" src="/asge-portal/portal/javax.faces.resource/tree.js?ln=org.richfaces"></script><link type="text/css" rel="stylesheet" href="/asge-portal/portal/rfRes/tree.ecss?db=eAHzX7!yOgAFdgJ!&amp;ln=org.richfaces" />
      
      
      

       

      So, does it my error or not.

       

      P.S. I'm using springflow for the page.