Embedding a link (or other html) in a JSF message

前端 未结 2 1531
傲寒
傲寒 2020-12-05 19:17

I want to embed a link in a JSF message, is this possible?

When I try it, the rendered html of the h:messages tag escapes the html characters. I tried setting the e

2条回答
  •  情歌与酒
    2020-12-05 19:41

    The escape="false" attributed you need is provided by the OmniFaces component. The OmniFaces utility library is available for JSF 2.

    I posted this solution mentioned by @BalusC's comment as an answer since this is the most straightforward solution.

提交回复
热议问题