I have a JSF page where I use primefaces. When I use the logical operator in my javascript functions, it exhibits this problem: the entity name must immediately follow the '&' in the entity reference.
I have a JSF page where I use primefaces. When I use the logical operator in my javascript functions, it exhibits this problem: the entity name must immediately follow the '&' in the entity reference.
You will need to escape the XML entities.
<h:outputText value="Tom & Jerry" />
This problem is not related to JSF itself, but with visualization technology, you would need to ensure that the template is well-formed XML and that all the special characters that should be represented as is, were escaped as above.
List of predefined character entities that need to be escaped in XML whenever you would like to display them. They are the following character entities:
" "
& &
' '
< <
> >