Reputation: 9649
When GWT UIBinder being used by default, a pair of java source and UI template files are created under the same directory.
What are required to keep them under separate directories. e.g client/MyApp.java and client/ui/xml/MyApp.ui.xml?
@EDIT
Below is based on@jonasr
's answer, but the annotaion should be valued with rather the file path
of the UI template than the package prefix.
@UiTemplate("ui/xml/MyApp.ui.xml")
interface MyAppUiBinder extends UiBinder<Widget, MyApp>
{}
Upvotes: 5
Views: 1689
Reputation: 1876
try using @UiTemplate annotation with full path for your ui.xml file on your interface declaration
@UiTemplate("com.company.ui.xml.MyApp.ui.xml")
interface MyAppUiBinder extends UiBinder<Widget, MyApp>
{}
Upvotes: 6