我只想通过 gwt 项目创建一个 gwt 组合。然后将此复合材料制成罐子。然后想在我的liferay项目的lib文件夹中添加我的每个protlet都可以使用这个gwt组合。
我该怎么做?
到目前为止我做了什么:
- 创建 gwt 复合,删除入口点并重新编写 .gwt.xml 并创建我的类扩展复合。
- 然后创建罐子。
- 然后复制 jar liferay lib 文件夹
- 然后用jar附加源(java构建路径>库>选择jar并附加源意味着gwt复合项目)[我正在使用eclipse]。
- 然后继承 portlet .gwt.xml 文件,如:
- 然后创建复合类的实例并得到这个错误
[javac] Compiling 1 source file to /home/bglobal/liferay-sdk/portlets/data-grid-portlet/docroot/WEB-INF/classes
[javac] /home/bglobal/liferay-sdk/portlets/data-grid-portlet/docroot/WEB-INF/src/com/prolexic/portlet/datagrid/client/DataGridServiceEntryPoint.java:9: package com.prolexic.commonCompositeWidget.client does not exist
[javac] import com.prolexic.commonCompositeWidget.client.CommonCompositeWidget;
[javac] ^
[javac] /home/bglobal/liferay-sdk/portlets/data-grid-portlet/docroot/WEB-INF/src/com/prolexic/portlet/datagrid/client/DataGridServiceEntryPoint.java:17: cannot find symbol
[javac] symbol : class CommonCompositeWidget
[javac] location: class com.prolexic.portlet.datagrid.client.DataGridServiceEntryPoint
[javac] CommonCompositeWidget mycomposite = new CommonCompositeWidget("This is the GWT Composite portlet.");
[javac] ^
[javac] /home/bglobal/liferay-sdk/portlets/data-grid-portlet/docroot/WEB-INF/src/com/prolexic/portlet/datagrid/client/DataGridServiceEntryPoint.java:17: cannot find symbol
[javac] symbol : class CommonCompositeWidget
[javac] location: class com.prolexic.portlet.datagrid.client.DataGridServiceEntryPoint
[javac] CommonCompositeWidget mycomposite = new CommonCompositeWidget("This is the GWT Composite portlet.");
[javac] ^
[javac] 3 errors