Wednesday, April 20, 2016

Re: Organizing project files with UIBinder


I also started using MVP and Polymer with UIBinder. Problem is, that Polymer does not have all the interfaces that vanilla GWT has to enable MVP and proper unit testing, for example HasText, HasClickListeners etc. How did you manage to implement MVP with GWT-Polymer? I am using vaadin-gwt-polymer-elements version with GWT2.8beta1. 


On Tuesday, 15 December 2015 09:26:20 UTC+1, wrote:
Thank you for response Luke,

       I am going to build project using Polymer UI elements and MVP. Thus I have no option other than GWT 2.8.0 and GSS. CSS is not working for this type of projects (or better to say - they work in auto conversion mode). I am afraid that if I keep .java, .gss, .ui.xml files in the same packages they become rather big. There is also kind of "scare" to mix different types of files in JAVA packages. Shouldn't JAVA packages be only for .java files and all the rest of the stuff -- somewhere at /resources?  This is my main question.

On Tuesday, December 15, 2015 at 5:43:09 AM UTC+2, Luke Last wrote:
Here's my quick stab at these, hope it helps.

1. I've never seen this done differently, and personally I find it helpful to have them in the same package.
2. UIBinder is only client side.
3. UIBinder will work with classic CSS. You could also consider using CssResource (gss) or using gss embedded in UIBinder templates.

On Monday, December 14, 2015 at 8:31:14 AM UTC-5, wrote:
Hello all,

        I have read the chapter about GWT project layout, but still have some questions:
  1. View .ui.xml files are "by default" located at the same folder where .java files are. Is it better to move them to some "resource" package?  How to bind .ui.xml in corresponding composite .java if so?
  2. Going through UIBuinder example there is only "client" side that is executed at client browser. Is server side remains pretty much the same as described at ?
  3. If I have root .css (gss) at my WEB-INF -- will this resource be accessible for all .ui.xml modules ?


You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment