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
Expand all | Collapse all

formattedMessages to display message on page

  • 1.  formattedMessages to display message on page

    Posted Thu July 21, 2016 04:24 AM

    Hi Guys,

    I am using caf_h:formattedMessages tag to display message on multiple portlet pages. In all the portlet pages I have set it’s property ‘redisplay’ to ‘false’ as I don’t want to see the same message appear multiple times on the page.

    Per the configuration, the caf_h:formattedMessages is not displaying message more than once in some pages (good), but strangely it is not exhibiting this behavior on the other pages.(that is, it is displaying message multiple times - bad). Am I missing any other configuration?

    On the xhtml page -

    <caf_h:formattedMessages id="messageID" redisplay="false"
    showDetail="false" globalOnly="false"></caf_h:formattedMessages>

    in the backing bean -

    getFacesContext().addMessage(
    (String) getClientIds().getValue("messageID"),
    new FacesMessage("Custom message - to be displayed only once"));

    webMethods version - 9.8


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


  • 2.  RE: formattedMessages to display message on page

    Posted Mon July 25, 2016 09:25 AM

    Hi Raja,

    I had similar issue with this control. Here i was using this to display error messages.
    Issue was with the multiple async refreshes happening on the screen, which resulted in duplicate messages. Started dropping the number of refreshes and the issue was resolved.

    Do you have a list of messages to display ?
    Just to be safe on the message list to display use HashSet to build the message list and then looped over to display the error messages.

    Below is the code extract.

    Iterator iterator = validationResults.iterator();
    while ( iterator.hasNext() ) {
    ValidationResult validationResult = (ValidationResult) iterator.next();
    getFacesContext().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, validationResult.getMessage(), validationResult.getMessage()));
    }
    if (getFacesContext().getMessages().hasNext()) {
    return OUTCOME_ERROR;
    }


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


  • 3.  RE: formattedMessages to display message on page

    Posted Mon July 25, 2016 03:17 PM

    If you are able to provide a sample project that demonstrates a problem, you should open up a support ticket with your findings for further analysis.

    Whichever R&D engineer handles this case will be expecting a clear description of the issue and any other details in order to efficiently be able to help. Providing this info in the beginning will make the process go faster.


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