GWT: use the same UI template for multiple pages?

Posted by janya on Stack Overflow See other posts from Stack Overflow or by janya
Published on 2010-04-13T19:11:06Z Indexed on 2010/04/13 22:33 UTC
Read the original article Hit count: 683

Filed under:
|
|
|

Hello,

how can I use the same UI template (*.ui.xml file) with multiple Java objects extending from Composite?

I need to build several pages that should display basically the same information with the same layout, but on one page some fields will be editable, and on a different page other fields will be editable. I would like to specify layout only once in ui.xml, and create different behaviors in different *.java classes.

Eclipse is giving me a syntax error "FirstAppUI.ui.xml is missing" on

@UiTemplate("Template.ui.xml")
public class FirstAppUI extends Composite {
  interface FirstAppUIUiBinder extends
          UiBinder<Widget, FirstAppUI> {
  }
}

thanks! jane prusakova

© Stack Overflow or respective owner

Related posts about gwt

Related posts about uibinder