Field reading HTML tags in JSF [closed]

1

I would like in my field that I will add the text and send it to the bank, add for example a link ex: <a href="http://www.globo.com/" ></a> , however, when printing on the screen, coming from the bank, it printed the complete tag, not converting link. How could I do it?

    
asked by anonymous 03.01.2017 / 11:39

1 answer

2

I was able to resolve using escape in a h:outputText field.

Ex: <h:outputText value="#{beanMB.cliente.descricao}" escape="false"/>

It also works with p:outpuLabel

Ex: <p:outputLabel value="#{beanMB.cliente.descricao}" escape="false" />

    
03.01.2017 / 16:24