We had – and still probably have – a tough time porting Template-Based Widgets in Dojo for Google Web Toolkit.
The reason is – Templates defined attach-points and attach-events, variable names / function names that are to be made use of at runtime. However, GWT optimizes the Java function names and as such one does not know what will be the function name at runtime.
And hence the conflict and an area of problem.
The DWT team has posted a writeup at their blog that outlines the problem and proposed solution.
If you find the problem interesting or have an opinion, please do write in.