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> There is a class that is ClickyLink renamed to CloseButton minus the call to addDomHandler (which doesn't compile) public class CloseButton extends Widget { public CloseButton() { setElement(DOM.createButton()); sinkEvents(Event.ONCLICK); } } The instantiation is: public class TaskView extends Composite { @UiTemplate("CloseButton.ui.xml") interface TaskBinder extends UiBinder<Widget, TaskView> {} private static TaskBinder taskBinder = GWT.create(TaskBinder.class); @UiField CloseButton closeBtn; public TaskView() { initWidget(taskBinder.createAndBindUi(this)); } } Adding "provided=true" and an initializer merely generates another compile-time error. I thought I'd have to use the @UiFactory annotation (a la CricketScores), but ClickyLink doesn't do this. I'm sure this is a relatively minor problem which someone with experience in creating custom widgets can easily answer. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.