在p:datatable中应用排序但是获取java.lang.IllegalStateException:单击用于排序时CDATA标记可能不会嵌套

时间:2014-01-21 15:57:25

标签: jsf-2 primefaces

我正在使用p:datatable但是得到了java.lang.IllegalStateException:当点击进行排序时,CDATA标签可能无法嵌套,我从bean获取完整数据以填充数据表但无法排序

<h:form prependId="false" id="roundingMasterFormId">
<h:inputHidden value="#{roundingBean.initList}" />
<p:dataTable value="#{roundingBean.myRoundingRuleList}" var="var" style="width: 100%" styleClass="role_detail_section" 
     rowStyleClass="activity_white, activity_blue"   cellspacing="0" cellpadding="0" border="0" paginator="true" rows="10">

<p:column width="30%" headerText="Rounding Rule Id" sortBy="roundingRuleId">
 #{var.roundingRuleId}
 </p:column>

 <p:column width="30%" headerText="Rounding Rule Name " sortBy="roundingRuleName">
#{var.roundingRuleName}
</p:column>
<p:column width="30%" headerText="Rounding Mode " sortBy="roundingModeName">
#{var.roundingMode.roundingModeName}
</p:column>

<p:column width="30%" headerText="Rounding Constant " sortBy="roundingIncrement">
#{var.roundingIncrement}
</p:column>

我得到的例外

21:20:33,296 ERROR [stderr] (http-/0.0.0.0:8080-3) java.lang.IllegalStateException: CDATA tags may not nest

21:20:33,296 ERROR [stderr] (http-/0.0.0.0:8080-3)  at    com.sun.faces.renderkit.html_basic.HtmlResponseWriter.startCDATA(HtmlResponseWriter.java:630)

21:20:33,296 ERROR [stderr] (http-/0.0.0.0:8080-3)  at javax.faces.context.ResponseWriterWrapper.startCDATA(ResponseWriterWrapper.java:172)

21:20:33,296 ERROR [stderr] (http-/0.0.0.0:8080-3)  at javax.faces.context.PartialResponseWriter.startError(PartialResponseWriter.java:342)

21:20:33,296 ERROR [stderr] (http-/0.0.0.0:8080-3)  at org.primefaces.context.PrimePartialResponseWriter.startError(PrimePartialResponseWriter.java:156)

21:20:33,296 ERROR [stderr] (http-/0.0.0.0:8080-3)  at com.sun.faces.context.AjaxExceptionHandlerImpl.handlePartialResponseError(AjaxExceptionHandlerImpl.java:200)

21:20:33,296 ERROR [stderr] (http-/0.0.0.0:8080-3)  at com.sun.faces.context.AjaxExceptionHandlerImpl.handle(AjaxExceptionHandlerImpl.java:123)

21:20:33,296 ERROR [stderr] (http-/0.0.0.0:8080-3)  at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119)

21:20:33,296 ERROR [stderr] (http-/0.0.0.0:8080-3)  at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

21:20:33,296 ERROR [stderr] (http-/0.0.0.0:8080-3)  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

0 个答案:

没有答案