Seam GWT页面流转换(Seam GWT pageflow transition)

编程入门 行业动态 更新时间:2024-10-15 00:18:39
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页面。 您可以通过使用<f:view></f:view>对包装<html></html>对,在Seam xhtml页面中包含GWT html页面:

<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页面,您可以毫无困难地定义页面转换。

正如Peter Knego已经指出的那样,建议对不同的(x)html页面使用不同的GWT模块。

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>

By using such a Seam wrapped html page, you do not have any trouble for defining the page transitions.

As Peter Knego already pointed out, it is advisable to use different GWT modules for different (x)html pages.

更多推荐

本文发布于:2023-08-06 22:17:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1456574.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:页面   GWT   Seam   pageflow   transition

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!