我正在使用日食。在 WEB-INF/lib 文件夹中,我有以下 jars。
jstl-api-1.2.jar
jstl-impl-1.2.jar
myfaces-api-2.0.2.jar
myfaces-impl.2.0.2.jar
我收到以下警告
Multiple annotations found at this line:
- Unknown tag (f:ajax).
- Unknown tag (f:ajax).
.
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>no</title>
</head>
<body>
<f:view>
<h:form id="form1">
<h:commandButton value="submit" type="submit" action="#{registrationBean.storeUserId}" >
<f:ajax render="node1" />
</h:commandButton>
<br>
<h:outputText id="node1" value="#{userIdBean.userId}" style="font-weight:bold" />
</h:form>
</f:view>
</body>
</html>