Foros de discusión

Problem in creating composite widget and including in Liferay project

Shahriar Khondokar, modificado hace 11 años.

Problem in creating composite widget and including in Liferay project

New Member Mensajes: 3 Fecha de incorporación: 7/02/13 Mensajes recientes
Hi all
this is what we have done so far:

  • We created a GWT Composite widget project successfully
  • Next created a jar of this composite widget project
  • Included the jar in the lib folder of the Liferay project and indicated the jar in the buildpath using Eclipse
  • Also attached the source in the jar


However when we build the project, we get error "package not found"

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;
import com.prolexic.commonCompositeWidget.client.CommonCompositeWidget;

public class DataGridServiceEntryPoint implements EntryPoint {

private static final String rootNodeId = "gridView";

@Override
public void onModuleLoad() {
CommonCompositeWidget mycomposite = new CommonCompositeWidget("This is the GWT Composite portlet.");
RootPanel rootPanel = RootPanel.get(rootNodeId);
rootPanel.add(mycomposite);
//rootPanel.add(new HTML("This is the <b>GWT chat rooms</b> portlet."));
}

}


Error message received:
[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