link 发表于 2017-1-11 07:52:35

spring+jsf 报错org.apache.el.parser.ParseException: Encountered "}"

  最近在做公司分离后台项目时候遇到了这样的问题:
  org.apache.el.parser.ParseException: Encountered "}" at line 1, column 13.
  大致代码如下:

<p:dataTable id="dataTable" value="#{scheduleBean.scheduleList}"
var="schedule" resizableColumns="false" paginator="true"
paginatorTemplate=" {CurrentPageReport}{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}"
rowsPerPageTemplate="20" rows="20">
<p:column size="100">
<f:facet name="header" size="120">
<h:outputText value="任务名称" />
</f:facet>
<h:outputText value="#{schedule.name.substring(0, 10)}..."rendered="#{schedule.name.length() gt 10}"/>
<h:outputText value="#{schedule.name}"rendered="#{schedule.name.length() le 10}"/>
</p:column>
  由于我用的是tomcat6,所以报错。
  我换tomcat7之后就不报错了。
  相关链接:http://www.itzhai.com/jsf-notes-jsf-el-expression-language-support-in.html
  http://www.mkyong.com/tutorials/jsf-2-0-tutorials/
  顺便提醒下自己:一定要及时关注最新的相关技术,哪怕公司暂时不用,也要了解。
  我看的jsf api都是很老的了,偶尔去jsf官网转了一圈才发现我的是多麽的陈旧啊。
  转载请注明出处:http://woshixushigang.iteye.com/blog/1430226
页: [1]
查看完整版本: spring+jsf 报错org.apache.el.parser.ParseException: Encountered "}"