Websphere Portal中的Vaadin7主题

时间:2016-10-19 07:42:22

标签: vaadin portlet websphere-portal

我会在Websphere中部署我的Vaadin自定义主题,并在部署在Websphere Portal中的一些vaadin portlet中引用它们。 我使用的是Websphere 8.5和Vaadin 7.我发现了很多关于Tomcat和Liferay组合的主题,但没有对Websphere有用。

我还尝试在' WP PortletContainerService'中设置vaadin.resources.path变量。在资源>资源环境>资源环境提供者和我设置一个名称为#std.portalcontext.vaadin.resources.path'的资源。但是我无法在用户界面中看到它。

谢谢。

1 个答案:

答案 0 :(得分:0)

在portletcontainerservice上设置该属性不会对您有所帮助,因为它不是WebSphere Portal容器将其识别为属性的属性之一。我认为你可能需要做https://vaadin.com/forum/#!/thread/2732876/2732875这类https://vaadin.com/wiki?p_p_id=36&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=row-1&p_p_col_pos=1&p_p_col_count=3&_36_struts_action=%2Fwiki%2Fview&p_r_p_185834411_nodeName=vaadin.com+wiki&p_r_p_185834411_title=Developing+portlets+for+the+Websphere+Portal+Server

这样的事情

要做的主要是这个 在portlet标记中,您必须为portlet类设置一个值。对于这个简单的我们可以使用默认的Vaadin portlet类com.vaadin.server.VaadinPortlet;您还必须将UI类命名为portlet init参数。

要让WPS找到Vaadin javascript和主题资源,您必须使用portlet init参数vaadin.resources.path。值PORTLET_CONTEXT是一个Vaadin常量值,它使porta资源路径中的vaadin资源可用。

以干净包作为目标运行Maven构建,并在门户网站管理中部署创建的war文件。创建一个空白门户页面并将您的portlet添加到页面。您的“Click me”portlet应如下所示: