Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does this JSF expression not work?

Tags:

java

jsf

facelets

I have a simple problem on .xhtml page. This expression is not working :-

<a href="Photos.jsf?albumId=#{item.albumId}&blogId=#{PhotoAlbumsCommonBean.blogId}">
 photos
</a>

I get this error :-

Error Parsing /Common/PhotoAlbums.xhtml: Error Traced[line: 20] The reference to entity "blogId" must end with the ';' delimiter.

And this is causing some kind of error.

like image 719
TCM Avatar asked May 13 '10 16:05

TCM


1 Answers

Try to encode the ampersand - & with &amp;

like image 101
Petar Minchev Avatar answered Oct 16 '22 16:10

Petar Minchev