Seam GWT 页面流转换 [英] Seam GWT pageflow transition
问题描述
我正在尝试整合 Seam 和 GWT.我想知道是否可以在 Seam 页面流中指定 html 页面.是否可以 ?如果是,过渡中的名称代表什么?
I am trying to integrate, Seam and GWT. I was wondering if can specify html pages in Seam page flow. Is it possible ? If yes what will the name in the tranisition stand for ?
推荐答案
我们还使用了 Seam 页面流和 GWT 的组合.明确地,我们将登录页面与主页面分开,以启用通过 https 登录.但是,我们不使用普通的 html 页面,我们仍然使用 xhtml 页面.您可以通过将 </html>
对与
对:
We also use a combination of Seam page flow and GWT. Explicitly, we divide the login page from the main page to enable login via https. But, we do not use normal html pages, we still use xhtml pages. You can include a GWT html page within a Seam xhtml page by wrapping the <html></html>
pair with a <f:view></f:view>
pair:
<f:view
contentType="text/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:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets">
<html>
<!-- ... -->
</html>
</f:view>
通过使用这样一个 Seam 包装的 html 页面,您可以轻松定义页面转换.
By using such a Seam wrapped html page, you do not have any trouble for defining the page transitions.
正如 Peter Knego 已经指出的那样,建议对不同的 (x)html 页面使用不同的 GWT 模块.
As Peter Knego already pointed out, it is advisable to use different GWT modules for different (x)html pages.
这篇关于Seam GWT 页面流转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!