Skip to main content

Home/ GWT - Samples/ Group items tagged google

Rss Feed Group items tagged

Esfand S

Maven and GWT - a never ending story? - 0 views

  • One of the cool things on GWT is, that you cannot just use Java as a programming language, you can also use all your cool and great tools, like Eclipse, JUnit, or build tools like Ant, Gradle or Maven. Sure you can, but this Maven thing seems not to be so easy. So lets take a look on how to solve it.
  • keep the structure clean by separating client (GWT) and server (maybe Java or even any other language) code in a strict way. This means, that your GWT code will not be in the same project as your Java EE web descriptor (web.xml).
  • If you have done the import, our photo-album-server module will be a Dynamic Web Project in Eclipse and you can add it to your Tomcat, JBoss or whatever server runtime. You can start it and run it as you like.
  • ...2 more annotations...
  • the GWT compiler configuration is done in the web application project. This is the best place, since you can just change the dependency and the GWT module and the compiler will compile a completly different GWT client. With other words, the web application pulls the right JAR out from the Maven space and uses it. This is much better than letting another project compile some JavaScript and than copy the JavaScript to your web application, or whatever solution you might find. So just add the GWT Maven plugin configuration and dependency below to the photo-album-server module’s POM.
  • our project is just a simple Java project.
Esfand S

My First GWT IGoogle Gadget, What do you think? - Google Web Toolkit | Google Groups - 0 views

  • I built a basic and more complex gadgets which are demoed here. More Info here: http://code.google.com/p/gwt-examples/wiki/project_Gadget?ts=12722477... Basic Gadget is released here: IGoogle Directory: http://www.google.com/ig/directory?url=demogadgetmathflashcard.appspo...
Esfand S

http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryPlusPaths - 0 views

shared by Esfand S on 27 Sep 10 - Cached
  •  
    "> its one project example? As the name implies [1], it's where new features are being developped "in the open": - Enterprise widgets (complete rewrite of the incubators PagingScrollTable and the like) - data binding http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryPlusPaths - lightweight collections Note that the current development seems to have moved over to / branches/2.1/bikeshed instead of /trunk/bikeshed [1] http://en.wikipedia.org/wiki/Bikeshed "
Esfand S

GWT 2.0.3 + Maven2 + Eclipse - Google Web Toolkit | Google Groups - 0 views

  •  
    I converted the GWT starter app into a Maven project (see attachment), which might serve as a good starting point for you. It uses GWT 2.0.3, gwt-maven-plugin 1.2, and Google Plugin for Eclipse 1.3.1. I've also included an Eclipse project and launch configuration.
Esfand S

Can anyone provide a step by step maven + gwt mvp tutorial? - 0 views

  • There is an outdated archetype which creates a very simple Gwt project without tests nor RPCs. Unfortunately the generated pom.xml is for old gwt versions and needs that you do a bunch of changes by hand.   mvn archetype:generate  -DarchetypeGroupId=org.codehaus.mojo \    -DarchetypeArtifactId=gwt-maven-plugin  -DarchetypeVersion=1.1 \    -DgroupId=com.foo  -DartifactId=myApplication - Lately I have sent a patch to gwt which adds the ability to generate pom.xm to webAppCreator. But the patch is under review and it wont be available until a new gwt version (in the case it is included). http://gwt-code-reviews.appspot.com/397801/show - So, I recommend you to get the pom.xml from a working application and use it as a template for your project. Some days ago, I  ported the google contacts example application in order to use available libraries for MVP and add tests for all the code. I think It should be a good point for starting your project: http://gwt-workshop.googlecode.com/files/GwtWsMvpContacts.zip
Esfand S

Simple working example of the Data Presentation Widget CellTable - Google Web Toolkit |... - 0 views

  • protected void init() {                 VerticalPanel container = new VerticalPanel();                 initWidget(container);                 int pageSize = 10;                 CellTable<User> cellTable = new CellTable<User>(pageSize);                 setColumns(cellTable);                 setSelectionModel(cellTable);                 setDataSize(cellTable);                 int pageStart = 0;                 loadData(pageStart, pageSize, cellTable);                 SimplePager<User> pager = createPager(cellTable);                 container.add(cellTable);                 container.add(pager);         }
Esfand S

how to enable scrolling for app using DecoratedTabPanel? - Google Web Toolkit | Google ... - 1 views

  • There is two type of layouts: RIA-like and web-page-like. The RIA-like layout is done using the layout panels. The app stretch to the whole available space. There is no scrollbars. The web-page-like layout is done using HTML tags (and some standard panels). The app don't stretch. If the content is larger than the viewport, scrollbars appears, like in traditional pages. Looking at the first screenshot, here is my proposal: 1) The main panel is a DockLayoutPanel attached to RootLayoutPanel. 2) The north slot contains the header. 3) The center slot contains a TabLayoutPanel. But when you show data (list, form...) you may have no enough space to show all. Here you start to use web-page-like layout. So: 4) The contain of the contact tab is a LayoutPanel with four slot: Tighformat, the list, Detail view, Relations. 5) Tighformat, Detail view and Relations are standard panels (FlowPanel) into ScrollPanels. If there not enough space, a scrollbar will appear. 6) The list is some sort of DockLayoutPanel with the headers top, the navigation buttons bottom and the contains of the list in the center with a scrollbar is needed. The exact implementation depends on the used widget for the list (SmartGWT, GXT, gwt-incubator...)
Esfand S

Implementing login and maintaining sessions - Google Web Toolkit | Google Groups - 0 views

  • You can use two modules/entries, one for the login other after login
1 - 20 of 89 Next › Last »
Showing 20 items per page