日期:2014-05-16  浏览次数:20710 次

在xhtml中&符号报错

在xhtml中的代码

<a href="listFunction.jsf?moduleId=${node.deptId}&menuId=${node.parentId}">列表</a>

居然:Error Parsing /modulemanager/modulTree.xhtml: Error Traced[line: 15] The reference to entity "menuId" must end with the ';' delimiter.

原因是在xhtml不能正确解析&符号

解决办法:使用&amp; 替代&

正确的写法:<a href="listFunction.jsf?moduleId=${node.deptId}&amp;menuId=${node.parentId}">列表</a>