I am using JSF with glassfish 4.0. The following fragment of code
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
...skipped...
</h:head>
...skipped...
<h:outputLink value="#{item.lastInstance.url}" escape="false">
#{item.lastInstance.refName}
</h:outputLink>
is expected to be translated as:
<a href="https://url-unescaped>refname-unescaped</a>
but it is translated as:
<a href="https://url-escaped>refname-unescaped</a>
Bean's url and refName both contains russian text in UTF-8 with spaces and other symbols not allowed in url. But those unescaped links are tested in browsers to work (Firefox 24.0). Escaped sequences are interpreted by browser somehow and doesn't work.
How can I either:
- Tell JSF to not escape h:outputLink value
- Tell browser that URL(s) is escaped
Thanks for any help.