包含查询字符串的iframe会导致JSF出现问题

包含查询字符串的iframe会导致JSF出现问题,jsf,iframe,query-string,jsf-2,Jsf,Iframe,Query String,Jsf 2,我试图在JSF页面中插入一个Yahoo weather小部件。Yahoo生成的代码是: <!-- Yahoo! Weather Badge --><iframe allowtransparency="true" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://weather.yahoo.com/badge/?id=12753136&

我试图在JSF页面中插入一个Yahoo weather小部件。Yahoo生成的代码是:

<!-- Yahoo! Weather Badge --><iframe allowtransparency="true" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" src="http://weather.yahoo.com/badge/?id=12753136&u=c&t=trans&l=vertical" height="255px" width="186px"></iframe><!-- Yahoo! Weather Badge -->

为什么它试图将查询字符串字符解释为一个实体?我该如何解决这个问题呢?

您显然在使用XML/XHTML。您需要用
&;替换所有“普通”符号

Error Traced[line: 42] The reference to entity "u" must end with the ';' delimiter.