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)航:
           
          主站蜘蛛池模板: 南涧| 宁城县| 田林县| 定南县| 汉寿县| 南皮县| 玛多县| 长岛县| 沾益县| 金平| 库伦旗| 夏邑县| 玛多县| 张掖市| 漳浦县| 四子王旗| 鄂托克前旗| 汽车| 阿克陶县| 永城市| 普兰店市| 浦东新区| 甘南县| 怀柔区| 万盛区| 华容县| 枝江市| 荃湾区| 南城县| 报价| 文成县| 思茅市| 霍山县| 隆子县| 依安县| 新田县| 万源市| 合江县| 酒泉市| 孝义市| 壶关县|