In my application I have come across a common pattern where I have a template for the page, annotated with the @Page annotation and it contains the header, navigation, and footer, and then a second template for the actual main contents of the page that is injected into the corresponding datafield of the page. Since the page template is very simple I would like to create the content template as an inner class of the page template and avoid having two top level class for every logical page. While GWT finds the inner class and the template at the very end of the compilation I get the error "[ERROR] Unable to find type 'org.jboss.errai.ioc.client.BootstrapperImpl.<my package>_client_local_Page.ContentTemplateResource' I presume if the last . was an _ it might find it.
Are inner class templates supported and if so what am I doing wrong?
@Page(path = "page")
@Templated(LayoutTemplates.DEFAULT_LAYOUT)
public class Page extends MainLayout {
@Inject
@DataField("page-header")
private PageHeader pageHeader;
@Inject
@DataField("page-content")
Content pageContent;
@Templated(LayoutTemplates.BASE + "/PageContent.html")
public class Content extends Composite {
}
}