我正在尝试整合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.
更多推荐
发布评论