Best practices for extending GWT UiBinder views
I believe there are no best practices yet. So I'll present the result of my weekend research. Hope GWT developers required to work on extending views will find this useful. 1. Copy-paste approach This is the most obvious approach and obviously the most difficult to maintain. So you create a copy of Java class and ui.xml and change it to suit your needs. One might say this is a no-brainer and a non-sense approach. The only reason I'm even mentioning this is because the responses I received suggested this. 2. Embed approach This is useful when you want to add content on the peripheral of an existing view .e.g. adding header/ footer/ sidebar content. You need to create a UIField of the type existing view in a new class in addition to other content and then create your layout in new ui.xml. Java class @UiField TransactionDetailsView baseView; UI xml ... xmlns:b="urn:import:com. crossview.gwt.client. transaction.view" ... <!-- HTML content --> &l