Skip to content

gwt-widgets: Compile issues when using org.gwtproject namespace #23

Description

@jnehlmeier

Migrating gwt-widgets to gwt-uibinder reveals the following issue:

Using

<ui:UiBinder xmlns:ui='urn:ui:org.gwtproject.uibinder' 
             xmlns:g='urn:import:org.gwtproject.user.client.ui'>

fails with

/.../src/main/java/org/gwtproject/user/client/ui/NotificationMole.java:44: 
error: Bad prefix on <ui:UiBinder>? The root element must be in 
xml namespace "urn:ui:com.google.gwt.uibinder" (usually with prefix "ui:"), 
but this has prefix "ui": <ui:UiBinder> (:3)
  interface Binder extends UiBinder<HTMLPanel, NotificationMole> {

Changing namespace back to com.google.gwt as suggested/required by the error above, results in:

/.../src/main/java/org/gwtproject/user/client/ui/NotificationMole.java:44: 
error: Found unexpected child element: 
<div class='{style.centered}' style='display:none' ui:field='borderElement'> (:30)
  interface Binder extends UiBinder<HTMLPanel, NotificationMole> {

I guess XML schema files, validation and maybe some code need to be updated to check/allow both com.google.gwt and org.gwtproject packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions