<h:outputLabel id="" value="#{category.name}" />
上面这行在用sun-ri的应用中不会报错
但在MyFaces中就会报错:
原因就出在
id="" 去掉就会好了
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: empty expr
javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
com.bizcms.view.utils.SecurityFilter.doFilter(Unknown Source)
root cause
javax.faces.FacesException: empty expr
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.dispatch(JspTilesViewHandlerImpl.java:233)
org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:219)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
com.bizcms.view.utils.SecurityFilter.doFilter(Unknown Source)