ok , here i go again.
i found another component called rich : panelMenu which is exactly what i was trying to create using simple toggle panel.
how ever i need to have the panel items dynamically generated.
a4j:repeat doesnt seem to work inside <rich:panelMenuGroup>
I get this exception
java.lang.ClassCastException: org.ajax4jsf.component.html.HtmlAjaxRepeat cannot be cast to org.richfaces.component.UIPanelMenuItem
now i tried with c:foreach and no luck either, it doesnt throw error like a4j:repeat but doesnt generate menu items either.