4 Replies Latest reply on Dec 9, 2008 6:49 AM by Ilya Shaikovsky

    mix ui:repeat inside panelMenu

    koen handekyn Newbie

      i'm trying to mix a ui:repeat inside a rich:panelMenu but i get a classCastExcpetion.

      any comments ? bug ?

      <rich:panelMenu
       style="width:100%"
       mode="client"
       iconExpandedGroup="disc"
       iconCollapsedGroup="disc"
       iconExpandedTopGroup="chevronUp"
       iconGroupTopPosition="right"
       iconCollapsedTopGroup="chevronDown"
       iconCollapsedTopPosition="right"
       >
      
       <rich:panelMenuGroup label="Documents">
       <ui:repeat
       value="#{currentAccount.subscriptions}"
       var="sub"
       >
       <rich:panelMenuItem label="#{sub.name}"></rich:panelMenuItem>
       </ui:repeat>
      
       </rich:panelMenuGroup>
       </rich:panelMenu>




      exception

      java.lang.ClassCastException: com.sun.facelets.component.UIRepeat
       at org.richfaces.renderkit.html.PanelMenuRenderer.insertScript(PanelMenuRenderer.java:128)
       at org.richfaces.renderkit.html.HtmlPanelMenuRenderer.doEncodeEnd(HtmlPanelMenuRenderer.java:231)
       at org.richfaces.renderkit.html.HtmlPanelMenuRenderer.doEncodeEnd(HtmlPanelMenuRenderer.java:242)
       at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:135)