Portlet 桥有什么作用?

发布于 2024-10-04 11:20:14 字数 199 浏览 0 评论 0原文

在今天的一次采访中,我提到我在 portlet 中完成了一些 jsf 工作。面试官询问了 portlet-bridge 的具体功能。我从来没有深入研究过它,只是使用它,因为我被告知它可以让 jsf 在 portlet 中工作。我真正能说的是,它允许请求以 jsf 能够理解的方式从门户发送到 jsf,并且使其运行良好。

portlet-bridge 到底有什么作用?

In an interview today I mentioned that I had done some jsf work in a portlet. The interviewer asked for specifics on what the portlet-bridge does. I never looked into it all that much, just used it because I was told it would make jsf work in the portlet. All I could really say was that it allowed the requests to come from the portal to jsf in a way jsf would understand, and made it play nice.

What exactly does the portlet-bridge do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

动听の歌 2024-10-11 11:20:14

来自上面 Jeremy Walton 链接的规范。

2.1 什么是 Portlet 桥?

Java™ Portlet 规范
直接定义了一组API
实现一个 portlet。一个门户组件
桥接是一种使用的技术
用于桥接到执行的 portlet
环境不同的地方
抽象用于渲染
标记或处理用户
互动。通常这些是
众所周知的、可能是标准的网络
开发环境。示例
包括 JavaServer™ Faces 和 Apache
支柱。

Portlet 桥充当
portlet 之间的翻译引擎
环境和目标系统。
它表达了Portlet请求
桥接环境的上下文,
执行请求并转换
适当的响应
门户组件环境。它提供了一个
Portlet 环境的抽象
对于桥接环境,以及
在桥接内工作的开发人员
环境。这些开发商是
可以自由执行 Faces 视图
portlet,无需
了解 portlet 的详细信息
API和开发模型。

简单来说,Portlet 桥就是
允许 Java Web 的技术
开发人员执行开发的视图
使用其他网络编程
抽象为 portlet,无需
需要知道和/或了解
Portlet 开发、概念或
API。

JavaServer™ 的 Portlet Bridge
Faces 是特定的桥
支持这一点所需的技术
JavaServer™ 的桥接行为
面孔。

From the spec linked by Jeremy Walton above.

2.1 What is a Portlet Bridge?

The Java™ Portlet Specification
defines a set of APIs for directly
implementing a portlet. A portlet
bridge is a technology used by a
portlet to bridge to an execution
environment where differing
abstractions are used for rendering
markup or processing user
interactions. Typically these are
well-known, possibly standard web
development environments. Examples
include JavaServer™ Faces and Apache
Struts.

The portlet bridge acts as the
translation engine between the portlet
environment and the targeted system.
It expresses the portlet request
context to the bridged environment,
executes the request and transforms
the response as appropriate for the
portlet environment. It provides an
abstraction of the portlet environment
for the bridged environment, and for
developers working within the bridged
environment. These developers are
freed to execute Faces views as
portlets, without the need to
understand the details of the portlet
APIs and development model.

To put it simply, a portlet bridge is
the technology that allows a Java web
developer to execute views developed
using other web programming
abstractions as portlets without
needing to know and or learn about
portlet development, concepts, or
APIs.

The Portlet Bridge for JavaServer™
Faces is the specific bridge
technology needed to support this
bridging behavior for JavaServer™
Faces.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文