> Try to compile it and I get the error copied below.
> I believe i need to inherit it, or need to specify the source path in
> Monkee.gwt.xml, but don't know how to do it. And the source code of
> the whole project I downloaded is a bit too complicated for me to
> understand, as I am still a beginner.
>
> Does anyone have an idea?
I would guess you did forget to inherit the right module, because GWT
Compiler only includes sourcecode for included GWT modules. You have
to add the following line to your project .gwt.xml file:
<inherits name='org.gwt.advanced.Grid'/>
> Also, not being a GWT standard widget, can it still be declared in a
> UIBinder xml?
Yes, this is possibly! You have to import the package of the widget
using xml namespace declaration:
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:adv='urn:import:org.gwt.advanced.client.ui.widget'>
<g:HTMLPanel>
<!-- usage of datepicker -->
<adv:DatePicker ... />
</g:HTMLPanel>
</ui:UiBinder>
If the datepicker has no no-args constructor then you have to supply a
@UiFactory Method in your UiBinder class. You should have a look at
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Using_a_widget
--
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.