On Sun, Nov 29, 2009 at 12:57 PM, Jeff Chimene <[email protected]> wrote:
> Hi: > > I'm trying to figure out how to create a custom widget in RC2, based on > ClickyLink. > > The error I get is > "Template field and owner field types don't match: > com.google.gwt.dom.client.Element != com.my.office.client.view.CloseButton" > > I'm sure message this means something to someone. > > the ui.xml file is > <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> > <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" > xmlns:gwt='urn:import:com.google.gwt.user.client.ui' > xmlns:fori="urn:ui:com.my.office"> > <ui:style> > > </ui:style> > <my:CloseButton ui:field="closeBtn"/> > </ui:UiBinder> > For those of you playing the home version of this game: 1. Create a public class named CloseButton 2. Refer to that class in the XML namespace change xmlns:fori="urn:ui:com.my.office" to xmlns:fori="urn:import:com.my.office.client.view" two changes: - "urn:ui" becomes "urn:import" - the URN is the path to the containing Java package. FWIW, jec -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
