• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

GWT simple question

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All!

I'm new to GWT, so my question might be trivial for you. Well then, I decided to start my adventure with GWT from reading Google tutorials and trying to work with some of their examples of apps to see how all this stuff works. The example I'm currently trying to modify is the the dynamic table with school schedule -> link (source code can be found in the GWT distribution under the samples/DynaTable directory or if you don't have gwt installed i up'ed the zipped project to MU: link). And when you look on the source code for the server side application, you will see that the data for the table is generated randomly, and it's generated once because on every page refresh, the data in the table stays the same. What I want to know is what should I do to make the application generate new data to the table on each page refresh? I tried to modify the code but since I'm new to all this I haven't solved this problem and I really want to do something with this, because in the near future I would like to make a simmilar table with other source of data that will need to be updated. I know this question might be trivial to you guys but as I said, I'm new to GWT and now I'm stuck on this and I don't know what to do please help (and sorry for my english )

Regards, Daniel
 
Bartender
Posts: 2343
102
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you would need to modify the SchoolCalendarServiceImpl.java class
specifically the
generateRandomPeople(), generateRandomPerson(), generateRandomProfessor(), generateRandomSchedule(), generateRandomStudent()
you can even make values come from the database or any other source such as XML or properties file since this is server side code....
 
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!