PrimeFaces Mobile反向幻灯片转换给了我'实体“反向”的引用必须以';'结尾delimiter.'

时间:2016-05-08 18:59:55

标签: jsf jquery-mobile primefaces xhtml

我希望转换回slide reversed类型:

<p:button outcome="pm:first?transition=slide&reverse=true" value="Back" icon="ui-icon-arrow-l" styleClass="ui-btn-left ui-btn-inline"/>

但是我收到了这个错误:

20:47:09,976 ERROR [io.undertow.request] (default task-38) UT005023: Exception handling request to /test-web/: javax.servlet.ServletException: Error Parsing /views/index.xhtml: Error Traced[line: 32] The reference to entity "reverse" must end with the ';' delimiter.
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:671)
    at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
    ...
    ...

1 个答案:

答案 0 :(得分:0)

我找到了解决方案here: 我只是将&替换为&amp;,所以我必须这样写:

<p:button outcome="pm:first?transition=slide&amp;reverse=true" value="Back" icon="ui-icon-arrow-l" styleClass="ui-btn-left ui-btn-inline"/>