Dynamic <po:menu>

Locked
sistemaslume
Posts: 12
Joined: 17 May 2016, 19:13

19 May 2016, 16:23

Hi,

I'm trying to create a dynamic menu, and noticed that the component <po:menu> generates a fixed id "layout-menu".

I want to use the great icons of the left "<ul id =" layout-tab-menu ">" as modules and each right flap with <po: Menu> as items

Code: Select all

<ul id="layout-tab-menu">
		<ui:repeat var="o" value="#{menuMB.modulos}">
			<li><a href="#" rel="layout-#{o.objIntCod}"> <i class="icon-chat66"></i> <span class="layout-tab-menu-link-text"><span></span>#{o.objStrDes}</span>
			</a></li>
		</ui:repeat>
	</ul>

	<ui:repeat var="o" value="#{menuMB.modulos}">
		<h:form id="menuform#{o.objIntCod}">
			<po:menu model="#{menuMB.menuModelUnit(o)}" id="layout-#{o.objIntCod}" styleClass="layout-tab-submenu">
			</po:menu>
		</h:form>
	</ui:repeat>

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

23 May 2016, 12:42

Thanks for the sample. I'll check and get back to you.

sistemaslume
Posts: 12
Joined: 17 May 2016, 19:13

23 Jun 2016, 18:42

Any news?

deandeen
Posts: 7
Joined: 09 Jun 2016, 18:04

25 Jun 2016, 19:09

Hi,

I have the same issue. I also want/need to have multiple <po:menu>.

You can set id on <po:menu> but it is not set on generated <ui> element.

Locked

Return to “Olympos”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests