IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Help With A Popup Menu Control

    Posted Thu April 24, 2014 05:07 PM

    Can any one give me a detailed explanation or point me to a tutorial on how to setup/configure the Popup Menu Control?

    I have read the documentation for Popup Menu Control in the “CAF Development Help” documentation but it doesn’t explain on how to set one up so it works.

    Thanks.


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 2.  RE: Help With A Popup Menu Control

    Posted Thu April 24, 2014 07:20 PM

    Are you using this inside a portlet? If so, then I think the “Panel > Popup Panel” would be a better fit.

    The “Popup Menu Control” wasn’t intended to be used inside of a portlet.

    For example, copy + paste this fragment into your page for a context menu with the caf-popup-* CSS styling on the popup menu items:

    <control component-type='javax.faces.HtmlPanelGroup' renderer-type='com.webmethods.caf.faces.panel.BlockPanel'>
    <property name='id' value='demoPanel' />
    <control component-type='javax.faces.HtmlPanelGroup' renderer-type='com.webmethods.caf.faces.panel.BlockPanel'>
    <property name='id' value='contextTarget1' />
    <property name='style' value='background-color: blue; color: white; padding: 10px;' />
    <control component-type='javax.faces.HtmlOutputText' renderer-type='javax.faces.Text'>
    <property name='id' value='htmlOutputText4' />
    <property name='raw' value='true' />
    <property name='value' value='Click in Here to open the context menu' />
    </control>
    </control>
    <control component-type='com.webmethods.caf.faces.panel.PopupPanel' renderer-type='com.webmethods.caf.faces.panel.PopupPanel'>
    <property name='for' value='contextTarget1' />
    <property name='id' value='popupPanel' />
    <property name='position' value='mouse' />
    <property name='styleClass' value='caf-popup-menu' />
    <control component-type='javax.faces.HtmlPanelGroup' renderer-type='com.webmethods.caf.faces.panel.BlockPanel'>
    <property name='id' value='blockPanel' />
    <property name='styleClass' value='caf-popup-menu-item' />
    <control component-type='javax.faces.HtmlOutputLink' renderer-type='javax.faces.Link'>
    <property name='id' value='htmlOutputLink' />
    <property name='label' value='Item One' />
    <property name='onclick' value='alert(&quot;item1 clicked&quot;);return false;' />
    </control>
    </control>
    <control component-type='javax.faces.HtmlPanelGroup' renderer-type='com.webmethods.caf.faces.panel.BlockPanel'>
    <property name='id' value='blockPanel3' />
    <property name='styleClass' value='caf-popup-menu-item' />
    <control component-type='javax.faces.HtmlOutputLink' renderer-type='javax.faces.Link'>
    <property name='id' value='htmlOutputLink1' />
    <property name='label' value='Item Two' />
    <property name='onclick' value='alert(&quot;item2 clicked&quot;);return false;' />
    </control>
    </control>
    </control>
    </control>

    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 3.  RE: Help With A Popup Menu Control

    Posted Mon April 28, 2014 11:06 AM

    In this particular case yes but I will also be doing a Web based application using CAF and the “Popup Menu Control” is in the header.html view that was included when I created a new Web based project. For that control I looked at the available properties but it just isn’t obvious to me how to set this control up.

    BTW the example using the panel control for my portlet works better than the other solution I came up with.


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 4.  RE: Help With A Popup Menu Control

    Posted Mon April 28, 2014 02:33 PM

    Ok.

    Each of the “AppNav” controls (Breadcrumbs/Popup Menus/Static Menus/Toggle Menus) are driven by the navigation taxonomy that you have defined in the WebContent/WEB-INF/app-nav.xml file. If you open that file in the provided editor, you can define the structure of your navigation options.


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods