<h:outputLabel id="" value="#{category.name}" />
上面這行在用sun-ri的應用中不會報錯
但在MyFaces中就會報錯:
原因就出在id="" 去掉就會好了
上面這行在用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)