在页面上查看不完整的组件

时间:2014-01-23 06:07:53

标签: java-ee xhtml

这是index.xhtml的代码:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
<f:view>
    <h:form>
        <h:outputLabel><h1>Hello</h1></h:outputLabel>
        <h:commandButton value="Press me"/>
    </h:form>
</f:view>
</html>

请告诉我,为什么我只能在浏览器中看到标签“Hello”?我使用IDEA创建了WebApplication + JCF。

0 个答案:

没有答案