primefaces - 部署 Primefaces-Extensions 示例时出错,为什么?

标签 primefaces primefaces-extensions

部署时出错:加载应用程序时出现异常:java.lang.IllegalStateException:ContainerBase.addChild:开始:org.apache.catalina.LifecycleException:java.lang.RuntimeException:com.sun.faces.config.ConfigurationException:java.lang。 ClassNotFoundException:org.apache.commons.lang3.StringEscapeUtils
该模块尚未部署。

这是我的代码:

<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:pe="http://primefaces.org/ui/extensions">
<f:view contentType="text/html" locale="en">
<pe:head title="PrimeFaces Extensions - ShowCase">
    <f:facet name="first">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta http-equiv="pragma" content="no-cache"/>
        <meta http-equiv="cache-control" content="no-cache"/>
        <meta http-equiv="expires" content="0"/>
    </f:facet>
</pe:head>
<h:body>
    <pe:layout>
        <pe:layoutPane position="north">
            <ui:insert name="header"/>
        </pe:layoutPane>
        <h:form>
            <ui:insert name="center"/>
            <pe:layoutPane position="south">
                <ui:insert name="footer"/>
            </pe:layoutPane>
        </h:form>
    </pe:layout>
</h:body>

最佳答案

正如 https://github.com/primefaces-extensions/primefaces-extensions.github.com/wiki/Getting-Started 上的 primefaces 扩展项目入门中所述您需要将“Apache Commons Lang3”添加到您的项目中。

Add Apache Commons Lang3 to your project if it's not in classpath.



您可以从 http://commons.apache.org/proper/commons-lang/ 下载库。

关于primefaces - 部署 Primefaces-Extensions 示例时出错,为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16572608/

相关文章:

java - 对话框中的按钮未进入 bean 中声明的函数

jsf - 在jsf页面中使用ckeditor

java - p :commandLink action does not fire

jsf - primefaces 命令按钮更新不起作用

jsf - 如何在 <droppable> Primefaces 中拥有多个数据源?

java - 在c :forEach tag中添加循环索引

java - <f :setPropertyActionListener . ../> 不起作用

css - 将工具提示添加到子菜单

Primefaces:对话框最小化选项不适用于模式