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.  Acessing portlets multiple views

    Posted Thu April 24, 2014 04:58 PM

    I have a CAF created portlet called Portlet1 and it has two views 1) “defaultView” and 2) “view1”.

    When I go to the portlet in a web browser the defaultView is displayed. How do I access the other view “view1” from the default view?


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


  • 2.  RE: Acessing portlets multiple views

    Posted Thu April 24, 2014 07:06 PM

    The simplest way would be to use a “Portlet > Portlet Simple Link” that will switch the target view when it is clicked.

    For example, copy + paste this fragment into your page:

    <control component-type='com.webmethods.caf.faces.component.portleturl.PortletUrlLink' renderer-type='javax.faces.Link'>
    <property name='id' value='portletUrlLink' />
    <facet name='href'>
    <control component-type='com.webmethods.caf.faces.component.portleturl.ExtendedPortletUrl' renderer-type=''>
    <property name='id' value='extendedPortletUrl' />
    <property name='targetView' value='/MyPortlet/myotherview.view' />
    </control>
    </facet>
    <control component-type='javax.faces.HtmlOutputText' renderer-type='javax.faces.Text'>
    <property name='id' value='htmlOutputText3' />
    <property name='raw' value='true' />
    <property name='value' value='Click to switch to second view' />
    </control>
    </control>

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


  • 3.  RE: Acessing portlets multiple views

    Posted Fri April 25, 2014 01:31 PM

    Perfect!

    Eric your examples to all my inquiries have been very helpful and I can actually infer from them how to build other components.
    Thanks a lot I do appreciate it.


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