I’ve got some code that looks similar to this:
<h:outputLink value="#{bean.url}" />
But the output contains an apostrophe in the link href which is not URL encoded.
Am I doing something wrong or is this normal behaviour for outputLink? Thanks in advance.
(JBoss 4.2, Java 1.6)
It indeed won’t do that for you. It will at highest append the
jsessionidfor the case the client doesn’t support cookies. Only the link parameters which are added using<f:param>will be URL-encoded.