Sunday, November 18, 2012

JSF doesn't recognize '&' symbol in JavaScript

I don't know there is something I should take note of when using JavaScript in JSF. I found this is interesting to share out when using && operator in JavaScript like this:

This will create an error in JSF because JSF unable to interpret ampersand symbol. To fix this problem, I must not use ampersand symbol. And replace it with this & amp;& amp; in order to make JSF happier.

No comments: