Add copyright header to files without it.
[online-glom:gwt-glom.git] / ChangeLog
1 2011-04-08  Ben Konrath  <ben@bagu.org>
2
3         Add copyright header to files without it.
4
5         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
6         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
7         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
8         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
9         * src/main/java/org/glom/web/shared/ColumnInfo.java:
10         * src/main/java/org/glom/web/shared/GlomField.java:
11
12 2011-04-08  Ben Konrath  <ben@bagu.org>
13
14         Add support for accessing multiple glom documents in the servlet.
15
16         This completes the demo selection functionality.
17
18         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
19         document title to methods.
20         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
21         document title to methods.
22         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
23         Set browser window title when the activity starts. Correct name of
24         document title variable.
25         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
26         Set browser window title when the activity starts. Set the table
27         selector change handler after table selector has been set. Clear the
28         OnlineGlomView when the activity has been stopped.
29         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
30         document title as the place token. Use "#Document:" instead of
31         "#OnlineGlomPlace:" in the URL.
32         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
33         Change heading to "Online Glom"
34         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
35         document title in RPC methods.
36         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
37         setDocumentTitle() method. Add clear() method.
38         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
39         setDocumentTitle() method. Implement clear() method which removes the
40         change handler on the ListBox, clears the ListBox and clears the
41         DataPanel.
42         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
43         Implement methods with document title. Keep track for the configured
44         glom documents and their corresponding JDBC configurations in a hash
45         table. This information is retrieved using the document title as the
46         key in the hash table.
47         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
48         document title field as it's no longer needed.
49
50 2011-04-08  Ben Konrath  <ben@bagu.org>
51
52         Update the Eclipse JDT configuration.
53
54         * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
55         methods. Automatically add the copyright header to new files.
56
57 2011-04-05  Ben Konrath  <ben@bagu.org>
58
59         Add new page for demo selection.
60
61         This patch adds all the components required to view and start an
62         OnlineGlom demo by clicking on the desired hyperlink. The user is
63         able to return to the demo selection page with the browser's back
64         button. I still need to modify the servlet to work with multiple
65         documents so all demo links will load the file defined in the
66         OnlineGlom.properties.
67
68         * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
69         This is only useful during development so we don't need to save it.
70         * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
71         get a reference to the DemoSelectionView.
72         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
73         method to get a reference to the DemoSelectionView.
74         * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
75         default view to DemoSelectionView.
76         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
77         to get glom document titles for glom files in a hard-coded directory.
78         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
79         method to get glom document titles for glom files in a hard-coded
80         directory.
81         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
82         Presenter for DemoSelectionView.
83         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
84         for DemoSelectionView.
85         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
86         Update for DemoSelectionView.
87         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
88         Basic 'Place' implementation for the DemoSelectionView.
89         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
90         The interface for the DemoSelectionView.
91         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
92         The implementation of the DemoSelectionView.
93         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
94         The GWT UiBuilder xml file used in DemoSelectionViewImpl.
95         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
96         implementation of method to get glom document titles for glom files
97         in a hard-coded directory.
98         * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
99         on longer being used.
100         * src/main/webapp/glom.png: Glom logo.
101
102 2011-04-05  Ben Konrath  <ben@bagu.org>
103
104         Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
105
106         This is the forth and final commit of a refactor that will allow
107         OnlineGlom to be used with multiple documents.
108
109         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
110         Move RPC code from OnlineGlomViewImpl to this class.
111         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
112         to inferface.
113         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
114         RPC code to the presenter class (the P in MVP).
115
116 2011-04-04  Ben Konrath  <ben@bagu.org>
117
118         Start moving the existing OnlineGlom code to MVP.
119
120         This work is based on the GWT MVP framework that is documented here:
121
122         https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
123
124         This is the third commit of a refactor that will allow OnlineGlom to
125         be used with multiple documents.
126
127         * src/main/java/org/glom/web/client/ClientFactory.java: New file.
128         Interface for client factory which is used to get instances of various
129         classes throughout the app.
130         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
131         Implementation of client factory.
132         * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
133         initialize the MVP framework.
134         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
135         New file. Activity manager for the main container widget. This is the
136         Presenter in MVP.
137         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
138         Maps place (URL) to its corresponding activity.
139         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
140         New file. This is just a place holder for a generated file.
141         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
142         New file. Represents the URL for the main Online Glom app.
143         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
144         for changes in LayoutListViewImpl.
145         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
146         interface for View. Move code to OnlineGlomViewImpl class.
147         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
148         file. Implementation of OnlineGlomView.
149         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
150         Place resources. Use ClientFactoryImpl by default.
151
152 2011-04-04  Ben Konrath  <ben@bagu.org>
153
154         Move View classes to their own package.
155
156         This is the second commit of a refactor that will allow OnlineGlom to
157         be used with multiple documents.
158
159         * src/main/java/org/glom/web/client/OnlineGlom.java:
160         * src/main/java/org/glom/web/client/ui/LayoutListView.java:
161         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
162
163 2011-04-02  Ben Konrath  <ben@bagu.org>
164
165         Move UI code from the main module to its own class.
166
167         This is the first commit of a refactor that will allow OnlineGlom to be
168         used with multiple documents.
169
170         * src/main/java/org/glom/web/client/LayoutListView.java: Update
171         references to OnlineGlom to OnlineGlomView.
172         * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
173         OnlineGlomView and instantiate it here.
174         * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
175         represents the main OnlineGlomView with one document.
176
177 2011-04-01  Ben Konrath  <ben@bagu.org>
178
179         Fix formatting of gwt.xml and add DTD.
180
181         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
182
183 2011-03-30  Ben Konrath  <ben@bagu.org>
184
185         Propperly convert gdkColor string to html colour string.
186
187         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
188
189 2011-03-28  Ben Konrath  <ben@bagu.org>
190
191         Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
192
193         This implementation matches
194         OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
195         readable and is not tied to Swig.
196
197         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
198
199 2011-03-28  Ben Konrath  <ben@bagu.org>
200
201         Use read-only checkboxes for boolean field types.
202
203         * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
204         in the CellTable based on the field type. It currently only
205         distinguishes between boolean and text columns but I'll need to add
206         support for more types.
207         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
208         column type in the ColumnInfo object. Add method to convert between the
209         glom field type enum in ColumnInfo and the glom field type in libglom.
210         * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
211         field type.
212         * src/main/java/org/glom/web/shared/GlomField.java: Add support for
213         getting and setting booleans.
214
215 2011-03-25  Ben Konrath  <ben@bagu.org>
216
217         Don't get the Date twice from the ResultSet.
218
219         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
220
221 2011-03-25  Ben Konrath  <ben@bagu.org>
222
223         Cleanup code in the servlet.
224
225         * TODO: Remove item about row count. Add item about testing row count
226         query with large number of rows.
227         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
228         spelling mistakes, change method parameter to be consistent with
229         other methods.
230
231 2011-03-25  Ben Konrath  <ben@bagu.org>
232
233         Add server side logging with the gwt-log library.
234
235         * .gitignore: Ignore the log file we're now producing.
236         * TODO: Add a couple TODO item for logging.
237         * pom.xml: Add gwt-log and log4j as a dependency.
238         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
239         logging of errors, warnings and some important info.
240         * src/main/resources/log4j.properties: New file to configure log4j.
241
242 2011-03-24  Ben Konrath  <ben@bagu.org>
243
244         Add a disable button for the Details view.
245
246         * src/main/java/org/glom/web/client/LayoutListView.java:
247
248 2011-03-22  Ben Konrath  <ben@bagu.org>
249
250         Use a count query to get the number of rows for the list view pager.
251
252         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
253
254 2011-03-22  Ben Konrath  <ben@bagu.org>
255
256         Add more TODO information about CellTable pager positioning. 
257
258         * TODO:
259
260 2011-03-19  Ben Konrath  <ben@bagu.org>
261
262         Add TODO item about CellTable pager positioning.
263
264         * TODO:
265
266 2011-03-18  Ben Konrath  <ben@bagu.org>
267
268         Remove unneeded GlomFieldColumn class.
269
270         This is just a small code cleanup.
271
272         * src/main/java/org/glom/web/client/LayoutListView.java:
273
274 2011-03-18  Ben Konrath  <ben@bagu.org>
275
276         Use cursor mode in the query that gets data for the list view.
277
278         I still need to fix the potential memory problem when getting the row
279         count for the list view.
280
281         * TODO: Add note about testing memory usage with large data sets. Add
282         item about fixing row counting with large data sets.
283         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
284         PostgreSQL JDBC driver into cursor mode when getting data for the
285         list view.
286
287 2011-03-15  Ben Konrath  <ben@bagu.org>
288
289         Remove the GWT Container from the Eclipse build classpath.
290
291         The GWT dependencies are set by Maven so this isn't needed.
292
293         * .classpath:
294
295 2011-03-15  Murray Cumming  <murrayc@murrayc.com>
296
297         Added some earlier mockups to git, but not to the tarball dist.
298
299         * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
300         Openismus. These hopefully show how we might structure the HTML so that
301         it can be styled easily with CSS. However, we probably need to adapt them
302         for the CSS structure that GWT dictates for common widgets.
303
304 2011-03-14  Ben Konrath  <ben@bagu.org>
305
306         Locate OnlineGlom.properties using the ServletContext.
307
308         This is required to be able to locate the file in the deployed servlet.
309
310         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
311         Configure the database and glom document in in a helper method so
312         that the ServletContext can be used to locate OnlineGlom.properties.
313         * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
314         src/main/webapp. This is the proper location for .properites files.
315
316 2011-03-12  Ben Konrath  <ben@bagu.org>
317
318         Add note to README about why we're compiling down to obfuscated JavaScript.
319
320         * README:
321
322 2011-03-11  Ben Konrath  <ben@bagu.org>
323
324         Use properties file to configure servlet.
325
326         This allows people to change the glom file path, db username and db
327         password without recompiling the code.
328
329         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
330         * src/main/webapp/OnlineGlom.properties:
331
332 2011-03-11  Ben Konrath  <ben@bagu.org>
333
334         Use table fields in layout list view if the layout list is not defined.
335
336         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
337         Manually create a LayoutFieldVector for the query builder using the
338         table fields when a layout list is not defined in the glom file.
339
340 2011-03-11  Ben Konrath  <ben@bagu.org>
341
342         Only show FIXME string for images when there's an image.
343
344         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
345         in this change are some small code cleanups.
346
347 2011-03-11  Ben Konrath  <ben@bagu.org>
348
349         Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
350
351         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
352
353 2011-03-11  Ben Konrath  <ben@bagu.org>
354
355         Correctly set the index of the default table.
356
357         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
358         Correctly set the index of the default table. Add commented out example
359         file paths.
360
361 2011-03-10  Ben Konrath  <ben@bagu.org>
362
363         Add comment to pom.xml about the previous change.
364
365         * pom.xml: Add comment about the deployment issue so that it's obvious
366         why java-libglom is set to the provided scope.
367
368 2011-03-10  Ben Konrath  <ben@bagu.org>
369
370         Change java-libglom dependency from compile to provided in pom.xml.
371
372         Since java-libglom uses jni it can only be loaded once and therefore
373         must be placed in $CATALINA_HOME/lib and not included in each war.
374         This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
375         More information about this issue can be found in the Tomcat 6 release
376         notes in the "JNI Based Applications" section:
377
378         http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
379
380         * README: Remove note about this issue. Deployment info should really
381         be on the wiki anyway so I'll add it right now.
382         * pom.xml: Change java-libglom dependency from compile to provided so
383         that it's copied in to the packaged war.
384
385 2011-03-09  Ben Konrath  <ben@bagu.org>
386
387         Change to using a neutral locale for currency, date and time formatting.
388
389         This solves the problem of currency values being represented without a
390         space between the currency code and the number (e.g. "EUR5.89" is now
391         represented as "EUR 5.89"). More work is required when we implement
392         a locale preference setting.
393
394         * TODO: Add note about currency formatting issues with different
395         locales.
396         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
397         to using the neutral ROOT locale.
398
399 2011-03-09  Ben Konrath  <ben@bagu.org>
400
401         Add support for currency codes that are not ISO 4217 codes.
402
403         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
404         the currency code defined in the glom file when it's not 3 characters
405         long or when Java doesn't recognize the string as an ISO 4217 code.
406
407 2011-03-08  Ben Konrath  <ben@bagu.org>
408
409         Remove test classes, launch configurations and configuration.
410
411         The test stuff was getting in the way when creating the war. To make
412         the war file you can now do 'mvn clean package'. The packaged war file
413         will be in the target directory.
414
415         * .classpath: Remove unused classpathentry for tests and i18n.
416         * pom.xml: Remove junit.jar dependency. Properly use gwt.version
417         property. Don't run test or i18n goals when packaging the war.
418         * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
419         formatting.
420
421         Removed files:
422
423         * OnlineGlomTest-dev.launch:
424         * OnlineGlomTest-prod.launch:
425         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
426         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
427
428 2011-03-07  Ben Konrath  <ben@bagu.org>
429
430         Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
431
432         These fixes allow me to use 'mvn deploy' to create the war file.
433
434         * .classpath: This generated config has been updated by Eclipse. This
435         change was probably triggered by me updating from Eclipse 3.6.1 to
436         3.6.2.
437         * .gitignore: Add entry to ignore the directory
438         src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
439         * .project: The generated config has been updated by Eclipse. This
440         change was probably triggered by me updating from Eclipse 3.6.1 to
441         3.6.2.
442         * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
443         so that Eclipse doesn't complain
444         * pom.xml: Update to gwt-maven-plugin 2.2.0.
445         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
446         'tests' directory to 'client' directory. This is the new
447         gwt-maven-plugin convension.
448         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
449         refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
450
451 2011-03-07  Ben Konrath  <ben@bagu.org>
452
453         Add support for horizontal alignment in the LayoutList columns.
454
455         * TODO: Remove item about horizontal alignment. Add item about
456         improvements to ColumnInfo.
457         * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
458         alignment on the columns. Use ColumnInfo RPC object get the column
459         title and horizontal alignment.
460         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
461         LayoutListView creation with ColumnInfo RPC object.
462         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
463         a ColumnInfo object for every LayoutList columnn. Convert the
464         FieldFormatting.HorizontalAlignment to the correct
465         ColumnnInfo.HorizontatlAlignment with the new
466         getColumnInfoHorizontalAlignment helper method.
467         * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
468         to encapsulate column information like alignment and title. This
469         could be used to set the colour instead of on a per cell field basis.
470         * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
471         column title storage and retrieval with ColumnInfo.
472
473 2011-03-04  Ben Konrath  <ben@bagu.org>
474
475         Add support for column sorting.
476
477         * src/main/java/org/glom/web/client/LayoutListView.java: Change
478         AsynDataProvider to be an anonymous inner class. Use new
479         getSortedTableData RPC method when column sort is requested. Set all
480         columns sortable and add an AsyncHandler to activate sorting in the
481         AsyncDataProvider.
482         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
483         method getSortedTableData(). Cleanup other method signatures.
484         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
485         new method getSortedTableData(). Cleanup other method signatures.
486         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
487         Implement getSortedTableData() and getTableData() methods by using a
488         private helper method with the appropriate parameters filled in. Use
489         user supplied sort clause when supplied, otherwise fall back to
490         sorting by the primary key. Move destroy() method to be underneath
491         constructor for readability.  Cleanup comments.
492
493 2011-03-03  Ben Konrath  <ben@bagu.org>
494
495         Add support for colour text and colour backgrounds to the layout list cells.
496
497         Only the cell backgrounds are coloured which leaves a gap between the
498         cells that isn't coloured. I need to figure out a way to set
499         'style=background-colour:' on the whole column rather than just the
500         cell.
501
502         * TODO: Add a note about colouring the background of the whole column.
503         * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
504         column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
505         render the coloured text and backgrounds. Use GlomField[] for the row type.
506         * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
507         for the row type.
508         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
509         GlomField[] for the row type.
510         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
511         GlomField[] for the row type. Set the text, text colour and background
512         colour in the GlomField objects as specified in the glom document. Add
513         method to convert from Gdk::Color to HTML colour string. Cleanup comments.
514         * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
515         the glom field text, foreground colour and background colour.
516
517 2011-03-02  Ben Konrath  <ben@bagu.org>
518
519         Don't display hidden tables in the combo box.
520
521         * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
522         ArrayLists.
523         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
524         code to ignore hidden tables using ArrayLists for the table names and
525         titles.
526         * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
527         tableNames to use ArrayLists instead of String[]. Update getter and setter
528         methods.
529
530 2011-03-01  Ben Konrath  <ben@bagu.org>
531
532         Add support for Date and Time number types.
533
534         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
535         Implement formatting for Date and Time values. Change the default glom
536         file to small business example.
537
538 2011-03-01  Ben Konrath  <ben@bagu.org>
539
540         Add support for formatting glom types as specified in the glom file.
541
542         Formatting isn't finished yet - I still need to add support for Date
543         and Time values.
544
545         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
546         formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
547         checks for null values in JDBC cleanup code and catch all exceptions
548         instead of just SQLExceptions.
549         * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
550         method name.
551
552 2011-03-01  Ben Konrath  <ben@bagu.org>
553
554         Use GWT 2.2.0 instead of 2.1.1.
555
556         * pom.xml: Change GWT version numbers.
557
558 2011-03-01  Ben Konrath  <ben@bagu.org>
559
560         A few small code cleanups.
561
562         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
563         duplicate for loop.
564         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
565         unnecessary object creation in constructor.
566         * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
567         unnecessary object creation in constructor.
568
569 2011-02-28  Ben Konrath  <ben@bagu.org>
570
571         Add file for TODO list.
572
573         * TODO: New file.
574
575 2011-02-18  Ben Konrath  <ben@bagu.org>
576
577         Enable the CellTable Pager when more than 20 rows need to be viewed.
578
579         The Pager will automatically become active when the results are larger
580         than the CellTable size which is currently set to 20 lines.
581
582         * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
583         name on debug statment in RPC call in LayoutListDataProvider, add
584         numRows parameter to LayoutListView constructor, propperly set rowCount
585         in CellTable.
586         * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
587         name on debug statment in RPC call, use LayoutListTable object in RPC
588         calls, pass rowCount to LayoutListView.
589         * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
590         getLayoutListHeaders to getLayoutListTable and return LayoutListTable
591         object.
592         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
593         interface for changes in OnlineGlomService.
594         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
595         getLayoutListHeaders() to getLayoutListTable() and return
596         LayoutListTable. Using this object allows me to pass other information
597         about the LayoutList like the expected number of rows in the result set.
598         The Connection object from the connection pool is now propperly closed.
599         Only the requested number of lines are returned to the client in
600         getTableData().
601         * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
602         GlomTable and add columnTitles and numRows.
603
604 2011-02-18  Ben Konrath  <ben@bagu.org>
605
606         Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
607
608         This is a small performance boost. I'll use GlomTable to get the required
609         layoutlist information.
610
611         * src/main/java/org/glom/web/client/OnlineGlom.java:
612         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
613         * src/main/java/org/glom/web/shared/GlomDocument.java:
614
615 2011-02-18  Ben Konrath  <ben@bagu.org>
616
617         Add option to turn off formatting in JDT formatter preferences.
618
619         * .settings/org.eclipse.jdt.core.prefs:
620
621 2011-02-18  Ben Konrath  <ben@bagu.org>
622
623         Rename LayoutList to LayoutListView.
624
625         I'm working towards setting things up to easily use MVP when the time
626         comes.
627
628         * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
629         LayoutList.java.
630         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
631         references.
632
633 2011-02-17  Ben Konrath  <ben@bagu.org>
634
635         Move LayoutListDataProvider class into LayoutList.java.
636
637         * src/main/java/org/glom/web/client/LayoutList.java:
638
639 2011-02-17  Ben Konrath  <ben@bagu.org>
640
641         Rename RPC service classes from LibGlomService* to OnlineGlomService*.
642
643         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
644         references.
645         * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
646         * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
647         from LibGlomServer.java.
648         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
649         Rename from LibGlomServiceAsync.java.
650         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
651         Rename from LibGlomServiceImpl.java.
652         * src/main/webapp/WEB-INF/web.xml: Update configuration.
653
654 2011-02-17  Ben Konrath  <ben@bagu.org>
655
656         Update JDT settings.
657
658         * .settings/org.eclipse.jdt.core.prefs:
659
660 2011-02-17  Ben Konrath  <ben@bagu.org>
661
662         Move GWT-RPC objects to shared package (where they should be).
663
664         * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
665         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
666         * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
667         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
668         * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
669         org.glom.web.shared package.
670         * src/main/java/org/glom/web/shared/GlomTable.java: Move to
671         org.glom.web.shared package.
672         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
673         directory in compilation to javascript.
674
675 2011-02-16  Ben Konrath  <ben@bagu.org>
676
677         Add sort clause to the sql query that grabs table information.
678
679         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
680         if one of the columns is a primary key.
681
682 2011-02-16  Ben Konrath  <ben@bagu.org>
683
684         Disable generateAsync feature of gwt-maven.
685
686         The generated interface does not correctly match the methods in LibGlomService
687         and the generated singleton Util inner-class doesn't respect the servlet
688         mappings.
689
690         * pom.xml: Turn off generateAsync feature.
691         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
692         with singleton Util inner-class.
693
694 2011-02-14  Ben Konrath  <ben@bagu.org>
695
696         Add LGPL v3 licence notices.
697
698         Followed directions listed here:
699         http://www.gnu.org/licenses/gpl-howto.html
700
701         * COPYING: This file is a copy of the GPL v3.
702         * COPYING.LESSER: This file is a copy of the LGPL v3.
703         * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
704         notice.
705         * src/main/java/org/glom/web/client/GlomTable.java: Add licence
706         notice.
707         * src/main/java/org/glom/web/client/LayoutList.java: Add licence
708         notice.
709         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
710         licence notice.
711         * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
712         notice.
713         * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
714         notice.
715         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
716         licence notice.
717
718 2011-02-14  Ben Konrath  <ben@bagu.org>
719
720         Use ArrayList instead of Array in GWT-RPC calls.
721
722         Apparently this gives a slight performance boost to the compiled
723         java script.
724
725         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
726         instead of Array.
727         * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
728         of Array.
729
730 2011-02-14  Ben Konrath  <ben@bagu.org>
731
732         Access data from a postgres db rather than the example glom file.
733
734         * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
735         compile down to obfuscated javascript.
736         * pom.xml: Add c3p0 and postgres JDBC libraries.
737         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
738         using a postgres db accessed through the c3p0 connection pooling library.
739
740 2011-02-14  Ben Konrath  <ben@bagu.org>
741
742         Update Java formatter settings.
743
744         * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
745
746 2011-02-02  Ben Konrath  <ben@bagu.org>
747
748         Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
749
750         * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
751         using Maven.
752         * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
753         the compiled webapp directory that Eclipse uses as we're using Maven now.
754         * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
755         * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
756         to 1.6.
757         * pom.xml: Format file, change target Java version to 1.6.
758
759 2011-02-02  Ben Konrath  <ben@bagu.org>
760
761         Add information about a deployment related issue.
762
763         * README: Add Notes section with the problem outlined.
764
765 2011-02-02  Ben Konrath  <ben@bagu.org>
766
767         Call Glom.libglom_deinit() when the servlet is shutdown.
768
769         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
770         Glom.libglom_deinit() to destroy() method.
771
772 2011-01-28  Ben Konrath  <ben@bagu.org>
773
774         Use generated Util class to get the RPC Async interface.
775
776         * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
777         file.
778         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
779         getInstance() method to get a reference to the RPC Async interface.
780         * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
781         getInstance() method to get a reference to the RPC Async interface, remove
782         the now unused getLibGlomServiceProxy() method.
783
784 2011-01-27  Ben Konrath  <ben@bagu.org>
785
786         Cleanup ChangeLog entry from previous commit.
787
788         * ChangeLog: Group logical changes together and add comments.
789
790 2011-01-25  Ben Konrath  <ben@bagu.org>
791
792         Convert to gwt-maven project.
793
794         * .gitignore: Update for new project structure.
795         * README: New file with a link to the online documentation.
796         * pom.xml: The generated maven configuration file with some tweaks.
797
798         Add / update Eclipse settings. These files are a merge of the files that
799         were generated with the gwt-maven plugin and the files we were previously
800         using.
801         * .classpath:
802         * .project:
803         * .settings/.jsdtscope:
804         * .settings/com.google.gdt.eclipse.core.prefs:
805         * .settings/com.google.gwt.eclipse.core.prefs:
806         * .settings/org.eclipse.jdt.core.prefs:
807         * .settings/org.eclipse.wst.common.component:
808         * .settings/org.eclipse.wst.common.project.facet.core.xml:
809         * .settings/org.eclipse.wst.jsdt.ui.superType.container:
810         * .settings/org.maven.ide.eclipse.prefs:
811         * OnlineGlomTest-dev.launch:
812         * OnlineGlomTest-prod.launch:
813
814         Java source files moved from the 'src' directory to the directory structure
815         required by maven.
816         * src/main/java/org/glom/web/client/GlomDocument.java:
817         * src/main/java/org/glom/web/client/GlomTable.java:
818         * src/main/java/org/glom/web/client/LayoutList.java:
819         * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
820         * src/main/java/org/glom/web/client/LibGlomService.java:
821         * src/main/java/org/glom/web/client/OnlineGlom.java:
822         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
823
824         Non-functional property file used for translations. I included this as
825         reminder that it's something I need to sort out.
826         * src/main/resources/org/glom/web/client/Messages.properties:
827
828         The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
829         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
830
831         The servlet configuration files moved from the 'war' directory.
832         * src/main/webapp/OnlineGlom.css:
833         * src/main/webapp/OnlineGlom.html:
834         * src/main/webapp/WEB-INF/web.xml:
835
836         Generated test files with most of the code commented out. I included these
837         so that it's easy to add tests when we're ready for them.
838         * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
839         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
840
841 2011-01-25  Ben Konrath  <ben@bagu.org>
842
843         Remove unused println.
844
845         * src/org/glom/web/server/LibGlomServiceImpl.java:
846
847 2011-01-25  Ben Konrath  <ben@bagu.org>
848
849         Add project specific JDT settings.
850
851         * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
852         * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
853
854 2011-01-25  Ben Konrath  <ben@bagu.org>
855
856         Populate celltable with example data.
857
858         * src/org/glom/web/client/GlomDocument.java: Correct formatting.
859         * src/org/glom/web/client/GlomTable.java: Correct formatting.
860         * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
861         add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
862         * src/org/glom/web/client/LayoutListDataProvider.java: New file,
863         asynchronously gets the example data.
864         * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
865         * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
866         * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
867         curently selected table to be retrieved by other widgets.
868         * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
869         implement getTableData() in a hacky way. This method needs to be updated
870         to grab information from the database when database creating is
871         implemented.
872
873 2011-01-20  Ben Konrath  <ben@bagu.org>
874
875         Set table headers when table dropBox changes.
876
877         * src/org/glom/web/client/GlomDocument.java: Correct some method
878         names.
879         * src/org/glom/web/client/LibGlomService.java: Add method
880         to get list layout field names.
881         * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
882         to get list layout field names.
883         * src/org/glom/web/client/ListLayoutTable.java: New file - composite
884         widget for list layout table.
885         * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
886         the table drop box and add new updateTable() method to asynchronously
887         get the layout list field names for the currently selected table.
888         * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
889         implementation of getLayoutListHeaders() method.
890         * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
891
892 2011-01-18  Ben Konrath  <ben@bagu.org>
893
894         Make a listBox with table titles instead of the flexTable demo.
895
896         This is the start of something more useful.
897
898         * .classpath: Exclude a bunch of packages from the JVM that are
899         getting in the way of the Eclipse content assist.
900         * src/org/glom/web/client/GlomDocument.java:
901         * src/org/glom/web/client/GlomTable.java:
902         * src/org/glom/web/client/LibGlomService.java:
903         * src/org/glom/web/client/LibGlomServiceAsync.java:
904         * src/org/glom/web/client/OnlineGlom.java:
905         * src/org/glom/web/server/LibGlomServiceImpl.java:
906         * war/OnlineGlom.html:
907         * war/WEB-INF/web.xml:
908
909 211-01-13  Ben Konrath  <ben@bagu.org>
910
911         Update to new java-libglom API.
912
913         * .gitignore: Ignore OnlineGlom.war.
914         * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
915
916 2010-12-20  Ben Konrath  <ben@bagu.org>
917
918         Add some basic style to the table listing.
919
920         * src/org/glom/web/client/OnlineGlom.java: Add style to the table
921         header, print useful error message on async callback failure.
922         * war/OnlineGlom.css: Add style for table header, remove defaults
923         provided by the Eclipse project wizard.
924
925 2010-12-20  Ben Konrath  <ben@bagu.org>
926
927         Load example file from installed glom dir.
928
929         * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
930         provided by java-libglom to find the example file.
931
932 2010-12-20  Ben Konrath  <ben@bagu.org>
933
934         Update Eclipse settings.
935
936         * .classpath:
937         * .settings/com.google.gdt.eclipse.core.prefs:
938         * .settings/com.google.gwt.eclipse.core.prefs:
939
940 2010-12-17  Ben Konrath  <ben@bagu.org>
941
942         Initial commit.
943
944         * .classpath: New file.
945         * .gitignore: New file.
946         * .project: New file.
947         * .settings/com.google.gdt.eclipse.core.prefs: New file.
948         * .settings/com.google.gwt.eclipse.core.prefs: New file.
949         * src/org/glom/web/OnlineGlom.gwt.xml: New file.
950         * src/org/glom/web/client/GlomTable.java: New file.
951         * src/org/glom/web/client/OnlineGlom.java: New file.
952         * src/org/glom/web/client/TableNameService.java: New file.
953         * src/org/glom/web/client/TableNameServiceAsync.java: New file.
954         * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
955         * war/OnlineGlom.css: New file.
956         * war/OnlineGlom.html: New file.
957         * war/WEB-INF/web.xml: New file.
958         * war/images/glom.png: New file.