<%
  def rcontext = _ctx.getRequestContext() ;  
  def requireJs = rcontext.getJavascriptManager().getRequireJS();
  requireJs.require("SHARED/UIDropdownMenu", "UIDropdownMenu");
  requireJs.addScripts("UIDropdownMenu.init(\""+uicomponent.id+"\");");
%>
<div id="$uicomponent.id" class="dropdown">
	<div data-toggle="dropdown" class="uiActionWithLabel"><%= _ctx.appRes("UIWikiToolBar.action.Browse") %><i class="uiIconMiniArrowDown uiIconLightGray"></i></div>
	<ul class="dropdown-menu">
	<%
	List children = uicomponent.getChildren() ;
	for(component in children) {
	  if(component.isRendered()){ %>
		<li>
			<% uicomponent.renderChild(component); %>
		</li>
	<%
	  }
	} %>
	</ul>
</div>




