Can any body let me know how to use <pega:menubar> jsp tag to include menu in my custom control??

Please let me know the approach..

***Updated by moderator: Lochan to add Categories***

***Updated by moderator: Lochan to close post***
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

June 23, 2015 - 4:41pm

Hello Priyankar -

I am moving your question to the Product Support community where it is more likely to receive a reply.

Thank you!


June 24, 2015 - 7:34am

Hi Priyankar,

So basically you are trying to use a menubar tag in your custom control. But before discussing the next step on this, I am curious to understand, what is the need behind writing / using custom control ? Cant it be achieved via any of the available out of the box control ?

June 24, 2015 - 2:49pm
Response to Santanu

No it can't be achieved, as we have a requirement like in repeating grid at every row we need to show  image in one cell and on that image will have option for zoom in zoom out and some menu... zoom in zoom out i can figure out.... but to set menu i though to include menu bar so some re usability i can achieve, if i not able to include menubar again i have to create my own html menu on that control which i don't want. So looking for the ans of mu question . Hope will get a +ve ans from u..

June 25, 2015 - 5:23am


<pega:when test="pxRequestor.pyPegaDesignMode != 'true'"> // Checked at the run-time

<pega:static type="script" app="webwb">

                                <pega:file name="pega_tools_xmldocument.js" />

                                <pega:file name="pega_ui_menubar.js" />


<nobr><div id="MenuBar">

<pega:menubar action="param.action" type="param.type" name="" classname="param.classname" rendermode="param.rendermode" styleprefix="param.styleprefix" alignment="param.alignment">

                <pega:param name="pyClassname" value="param.extensionclass" />

                <pega:param name="pyStreamname" value="param.extensionstream" />





<center><span style="padding:4px;border:2px solid black">Menu Bar</span></center> //Used in the design-time look and feel



The param values are similar to the parameters list in the Menubar control and this can be customized further to meet your requirement.

Hope this helps you!