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