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)航:
           
          主站蜘蛛池模板: 昭觉县| 塔河县| 班戈县| 渑池县| 奎屯市| 洛阳市| 临江市| 沙坪坝区| 来凤县| 融水| 淮南市| 唐河县| 柯坪县| 通州区| 阿荣旗| 阜阳市| 兴国县| 邳州市| 宜兴市| 塔城市| 中西区| 扶绥县| 大悟县| 大洼县| 安西县| 蒙自县| 蒙山县| 长岭县| 乌审旗| 昭觉县| 翼城县| 库车县| 齐河县| 南京市| 剑河县| 塘沽区| 固镇县| 易门县| 五原县| 高平市| 扶沟县|