Tuesday, December 15, 2015

Re: Organizing project files with UIBinder

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, va...@ant.ee wrote:
Hello all,

        I have read the chapter http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html 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 http://www.gwtproject.org/doc/latest/DevGuideServerCommunication.html ?
  3. If I have root .css (gss) at my WEB-INF -- will this resource be accessible for all .ui.xml modules ?

Thanks

--
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment