Question

I tried to import one of my widgets in another ui.xml file. In eclipse no errors are shown but in (maven) development mode it says: [ERROR] Package not found: de.s.pp.client.application.projectdetail.overview.subview

The widget that imports:

<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
    xmlns:g='urn:import:com.google.gwt.user.client.ui'
    xmlns:ovs='urn:import:de.s.pp.client.application.projectdetail.overview.subview'>

    <ovs:ProjectProperties/>
</ui:UiBinder>

ProjectProperties.java:

    package de.s.pp.client.application.projectdetail.overview.subview;

import com.google.common.io.Resources;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class ProjectProperties extends Composite {
    interface MyUiBinder extends UiBinder<Widget, ProjectProperties> {
    }

    private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
    private Resources resources;

    public ProjectProperties() {
        super();
        initWidget(uiBinder.createAndBindUi(this));
    }

    public ProjectProperties(Resources resources) {
        this();
        this.resources = resources;
    }

}

ProjectProperties.ui.xml:

<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
    xmlns:g="urn:import:com.google.gwt.user.client.ui">
    <ui:style>

    </ui:style>
    <g:CaptionPanel width="95%" captionText="Projekteigenschaften">

    </g:CaptionPanel>
</ui:UiBinder> 
Was it helpful?

Solution 2

The problem was that the absolute path of the file was to long

OTHER TIPS

Did you forgot to add jar file, to use the de.s.pp.client.application.projectdetail.overview.subview

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top