Hi,
I’m converting an existing Lotus Notes application into an Lotus Notes application using Xpages.
I’ve created a custom control for my menu. I use class=“lotusSelected” on the default selected menu item. But when I click on the other menu item the first one stays green (selected). How can I change the selected menu item?
Any help is appreciated!
I’m using the following code:
<xp:view xmlns:xp=“http://www.ibm.com/xsp/core”>
<div class="lotusColLeft">
<div class="lotusMenu" role ="menu">
<div class="lotusBottomCorner">
<div class="lotusInner">
<ul>
<li class="lotusSelected" role="menuitem">
<xp:link escape="true" text="By Product" id="link7">
<xp:eventHandler event="onclick"
submit="true" refreshMode="complete">
<xp:this.action>
<xp:openPage
name="/ViewAllBySegment.xsp">
</xp:openPage>
</xp:this.action>
</xp:eventHandler>
</xp:link>
</li>
<li role="menuitem">
<xp:link escape="true" text="By Tool" id="link6">
<xp:eventHandler event="onclick" submit="true"
refreshMode="complete">
<xp:this.action>
<xp:openPage name="/ViewAllByCategory.xsp">
</xp:openPage>
</xp:this.action>
</xp:eventHandler>
</xp:link>
</li>
</ul>
</div>
</div>
</div>
</div>
</xp:view>