JPractice

          JSF+Spring+Hibernate+MySQL 開發(fā)商務(wù)平臺(tái)實(shí)踐

             :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            12 隨筆 :: 0 文章 :: 20 評(píng)論 :: 0 Trackbacks
          <h:outputLabel id="" value="#{category.name}" />

          上面這行在用sun-ri的應(yīng)用中不會(huì)報(bào)錯(cuò)
          但在MyFaces中就會(huì)報(bào)錯(cuò):
          原因就出在id="" 去掉就會(huì)好了

          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)
          
          posted on 2006-02-18 23:55 JPractice 閱讀(945) 評(píng)論(2)  編輯  收藏

          評(píng)論

          # re: SUN-RI和MyFaces的一點(diǎn)區(qū)別 2006-07-17 10:23 xuni
          你好,我也遇到了和你上面的情況一樣的錯(cuò)誤,還沒有解決。我用的也是MYFACES,不過(guò)我的頁(yè)面代碼好像和你的有一點(diǎn)不一樣:
          <h:form id="searchform">
          <h:panelGrid columns="6">
          <h:outputLabel value="標(biāo)題" for="title"></h:outputLabel>
          <h:inputText id="title" value="#{logBean.spTitle}"></h:inputText>

          <h:outputLabel value="開始時(shí)間" for="beginTime"></h:outputLabel>
          <h:inputText id="beginTime" value="#{logBean.spBeginTime}"></h:inputText>

          <h:outputLabel value="結(jié)束時(shí)間" for="endTime"></h:outputLabel>
          <h:inputText id="endTime" value="#{logBean.spEndTime}"></h:inputText>
          </h:panelGrid>
          <h:commandButton value="查詢" action="#{logBean.findSelfWorkLog}"></h:commandButton>
          </h:form>
          如果你遇到了相同的問(wèn)題,或是有解決和辦法,告訴我一下好不好
          xuni1411@163.com  回復(fù)  更多評(píng)論
            

          # re: SUN-RI和MyFaces的一點(diǎn)區(qū)別 2006-07-17 10:47 xuni
          解決了,就是類似id="" 和問(wèn)題,標(biāo)簽
          :)  回復(fù)  更多評(píng)論
            


          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 伊通| 长寿区| 阿拉善左旗| 梓潼县| 长子县| 永城市| 沾益县| 乐亭县| 广元市| 井冈山市| 长泰县| 新泰市| 金华市| 龙胜| 原阳县| 长春市| 思茅市| 郸城县| 固安县| 临湘市| 靖边县| 平顺县| 远安县| 米林县| 阜城县| 杭锦后旗| 上林县| 江口县| 大同县| 体育| 阳曲县| 鄂托克前旗| 乐安县| 博爱县| 嘉定区| 洞头县| 珲春市| 龙胜| 南江县| 砀山县| 孙吴县|