0 Replies Latest reply on Sep 27, 2007 3:29 PM by Francisco Philip

    Could not Resolve Variable [Overflow]

    Francisco Philip Newbie

      Hello,

      Anybody can tell me it is possible "iterate and include recursive(bly?)"

      its a Menu object with Menu childs


      /incl/menu-item.xhtml @17,73 value="#{menuSubVar}" Could not Resolve Variable [Overflow]: menuSubVar

      menu-bar.xhtml:

      <h:form id="menu">
      <ui:repeat var="menuBarVar" value="#{appData.toolBarMenu}">
      <rich:dropDownMenu value="#{menuBarVar.text}" action="#{menuBarVar.action}">
      <ui:repeat var="menuItemVar" value="#{menuBarVar.childs}" >
      <ui:include src="menu-item.xhtml">
      <ui:param name="menuVar" value="#{menuItemVar}"/>
      </ui:include>
      </ui:repeat>
      </rich:dropDownMenu>
      </ui:repeat>
      </h:form>


      menu-item.xhtml:

      <rich:menuSeparator rendered="#{menuItemVar.separator}"/>

      <f:subview id="menuVarName" rendered="#{not menuItemVar.separator}">
      <rich:menuItem submitMode="ajax" value="#{menuItemVar.text}" rendered="#{menuItemVar.childs.size==0}">
      </rich:menuItem>
      <rich:menuGroup value="#{menuItemVar.text}" rendered="#{menuItemVar.childs.size>0}">
      <ui:repeat var="menuSubVar" value="#{menuItemVar.childs}">
      <ui:include src="menu-item.xhtml">
      <ui:param name="menuItemVar" value="#{menuSubVar}"/>
      </ui:include>
      </ui:repeat>
      </rich:menuGroup>
      </f:subview>