我开发了一个基于 PrimeFaces 的应用程序,现在我想用 PicketLink 以 CDI 方式保护它。我按照这个示例创建了一个包含多个 PrimeFaces 组件(包括布局)的登录页面。但是,所有样式和功能都丢失了。即使是简化的 login.xhtml 页面(与上面链接的示例相匹配)也没有样式。
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head/>
<h:body>
<p:panel>
<h:form method="POST" prependId="false">
<p:inputText id="j_username" />
<p:password id="j_password"/>
<p:commandButton id="login" value="Login" action="#{identity.login()}" ajax="false"/>
</h:form>
</p:panel>
<p>Tip: you can login with a username/password of jane/abcd1234.</p>
</h:body>
</html>