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

HTML in FacesMessage?

  • 1.  HTML in FacesMessage?

    Posted Thu February 23, 2017 02:46 AM

    Hi Guys,

    I want to display bulleted list in the tag caf_h:formattedMessage. Added HTML text to FacesMessage but it rendered the HTML tags as is (as text). Is it possible to render multi line bulleted list using this tag?

    
    this.getFacesContext().addMessage(
    (String) getClientIds().getValue("testID"),
    new FacesMessage(FacesMessage.SEVERITY_ERROR, "Title",
    "<html>List:<ul><li> List item 1;</li><li> List item 2;</li><li> List item 3.</li></ul></html>"));

    Kind regards,
    Raj


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


  • 2.  RE: HTML in FacesMessage?

    Posted Thu February 23, 2017 03:04 PM

    Nope, the message controls always escape the text as rendering arbitrary html in the page can mess up the UI formatting or be a vector for XSS attacks.


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