JPractice

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

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

          上面這行在用sun-ri的應(yīng)用中不會報(bào)錯(cuò)
          但在MyFaces中就會報(bào)錯(cuò):
          原因就出在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)
          
          posted on 2006-02-18 23:55 JPractice 閱讀(948) 評論(2)  編輯  收藏

          評論

          # re: SUN-RI和MyFaces的一點(diǎn)區(qū)別 2006-07-17 10:23 xuni
          你好,我也遇到了和你上面的情況一樣的錯(cuò)誤,還沒有解決。我用的也是MYFACES,不過我的頁面代碼好像和你的有一點(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>
          如果你遇到了相同的問題,或是有解決和辦法,告訴我一下好不好
          xuni1411@163.com  回復(fù)  更多評論
            

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


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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 石河子市| 牡丹江市| 通许县| 公主岭市| 天津市| 安平县| 桓台县| 灵武市| 图片| 新巴尔虎右旗| 新营市| 肥西县| 奈曼旗| 都昌县| 吉水县| 泗阳县| 灵石县| 呼伦贝尔市| 桓台县| 绥中县| 天水市| 德江县| 沂南县| 海林市| 松潘县| 广丰县| 新和县| 武陟县| 闵行区| 彭山县| 武乡县| 佛冈县| 道孚县| 连山| 新巴尔虎右旗| 叶城县| 伊川县| 浦北县| 惠水县| 个旧市| 哈巴河县|