日期:2014-05-18  浏览次数:20705 次

JSF报这个错,我该怎么处理?
The   content   of   element   type   "faces-config "   must   match   "(application|factory|component|converter|managed-bean|navigation-rule|referenced-bean|render-kit|lifecycle|validator)* ".

然后点页面之后报:
Invalid   tag   found:   unexpected   input   while   looking   for   attr   name   or   '/> '   at   line   221
-   Invalid   tag   found:   unexpected   input   while   looking   for   attr   name   or   '/> '   at   line   276
-   Invalid   tag   found:   unexpected   input   while   looking   for   attr   name   or   '/> '   at   line   448
-   Invalid   tag   found:   unexpected   input   while   looking   for   attr   name   or   '/> '   at   line   461

这是为什么?

------解决方案--------------------
先检查一下faces-config.xml的写法是不是写错了 或者哪个tag没有关闭

再看看页面上是不是有标签没有结束符号 "/ "

或者看看managed-bean的attr 属性是否有getAttr方法


貴方はざつな性格なのでどうにもしようもなかったよ もっとまじめにしてください