In the topbar.xhtml, I try to add <li> entries on the fly which work but the menu click event does display the dynamically added li s.
Code: Select all
<li jsf:id="notificationPanel" jsf:rendered="#{not empty userStore.messages}" class="Fleft BordRadHalf TexAlCenter"><i class="icon-mail"></i><span class="alertBubble BordRad10 Fs9">#{fn:length(userStore.messages)}</span>
<ul class="layout-header-widgets-submenu BordRad5 shadows white Animated05">
<ui:repeat var="message" value="#{userStore.messages}">
<li class="Animated05">Hello 1</li>
</ui:repeat>
</ul>
</li>
Code: Select all
<p:remoteCommand name="updateMessage" actionListener="#{userStore.refreshMessageList()}" update=":topbarForm" process="@this" oncomplete="Sentinel.restoreMenuState();"/>