JPractice

          JSF+Spring+Hibernate+MySQL 開(kāi)發(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 閱讀(948) 評(píng)論(2)  編輯  收藏

          評(píng)論

          # re: SUN-RI和MyFaces的一點(diǎn)區(qū)別 2006-07-17 10:23 xuni
          你好,我也遇到了和你上面的情況一樣的錯(cuò)誤,還沒(méi)有解決。我用的也是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="開(kāi)始時(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)航:
           
          主站蜘蛛池模板: 乐陵市| 黑龙江省| 措美县| 曲阜市| 桂平市| 乌兰察布市| 莒南县| 柞水县| 哈密市| 麻城市| 永平县| 道真| 新竹县| 东海县| 武功县| 嘉义市| 自贡市| 临沭县| 宁河县| 韩城市| 汝州市| 兴安盟| 肥乡县| 大悟县| 桦南县| 开远市| 凤城市| 张掖市| 彭山县| 阜阳市| 财经| 开鲁县| 揭阳市| 霍邱县| 石棉县| 富民县| 江城| 保亭| 浦江县| 周口市| 内丘县|