有人说 JSF 是一个框架。其他人说这是一个 API。它是什么?
最佳答案
实际上两者都是。
Java Server Faces 是一个用于用 Java 构建 Web 应用程序的 Web 框架。
它是Java EE规范的一部分,这就是为什么人们也称它为API。
但 Oracle 官方文档将其描述为一种 Java EE 技术,一种包含构建 Web 应用程序规范的 API。
http://docs.oracle.com/javaee/6/tutorial/doc/bnaph.html
JavaServer Faces technology is a server-side component framework for building Java technology-based web applications.
JavaServer Faces technology consists of the following:
An API for representing components and managing their state; handling events, server-side validation, and data conversion; defining page navigation; supporting internationalization and accessibility; and providing extensibility for all these features
Tag libraries for adding components to web pages and for connecting components to server-side objects
关于java - JSF 是一个框架还是一个 API?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18544617/