Java Richfaces标记将被忽略

Java Richfaces标记将被忽略,java,jsf,richfaces,java-ee-6,Java,Jsf,Richfaces,Java Ee 6,我在XHTML页面中使用了一些Richfaces标记。但他们被忽视了。 看起来像 问题在哪里?有什么想法吗 我使用Wepshere8作为AppServer <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.d

我在XHTML页面中使用了一些Richfaces标记。但他们被忽视了。

看起来像

问题在哪里?有什么想法吗

我使用Wepshere8作为AppServer

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">
<!-- 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:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">
<head>
<title>RichFaces Greeter</title>
</head>
<body>
    <f:view -->
        <h:form>
            <rich:panel header="RichFaces Greeter" style="width: 315px">
                <h:outputText value="Your name: " />
                <h:inputText value="#{user.name}">
                    <f:validateLength minimum="1" maximum="30" />
                </h:inputText>
                <a4j:commandButton value="Get greeting" reRender="greeting" />
                <h:panelGroup id="greeting">
                    <h:outputText value="Hello, " rendered="#{not empty user.name}" />
                    <h:outputText value="#{user.name}" />
                    <h:outputText value="!" rendered="#{not empty user.name}" />
                </h:panelGroup>
            </rich:panel>
            <rich:inputNumberSlider minValue="1"  maxValue="100" showInput="false"/>
            <rich:inputNumberSpinner minValue="1" maxValue="100"/>  
        </h:form>
    <!-- /f:view>
</body>
</html -->
</ui:composition>


尝试在页面上添加h:head和h:body标记,而不是普通的html标记head和body

请发布完整的XHTML代码。根据您模糊的描述,很难猜测问题出在哪里。@eljunior我添加了xhtml代码。xhtml完全错误:-),但h:head和h:body最终是解决方案。。谢谢