Rename getTableData methods to getListData.
[online-glom:gwt-glom.git] / ChangeLog
1 2011-06-23  Ben Konrath  <ben@bagu.org>
2
3         Rename getTableData methods to getListData.
4
5         This is a rename refactor for consistency with other methods.
6
7         * src/main/java/org/glom/web/client/OnlineGlomService.java:
8         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
9         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
10         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
11
12 2011-06-23  Ben Konrath  <ben@bagu.org>
13
14         Extract the ConfiguredDocument innerclass into its own class.
15
16         This makes the servlet code more object oriented.
17
18         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
19         from private ConfiguredDocument class in OnlineGlomServiceImpl.
20         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
21         new ConfiguredDocument class.
22
23 2011-06-21  Ben Konrath  <ben@bagu.org>
24
25         Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
26
27         This makes things more inline with how libglom works and reduces code
28         duplication. This refactor lays the groundwork for adding the primary key to
29         the LayoutGroup object.
30
31         * src/main/java/org/glom/web/client/OnlineGlomService.java:
32         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
33         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
34         Change method names to getListLayout and getDefaultListLayout for
35         consistency. Use LayoutGroup as the DTO for the list layout instead of
36         ColumnInfo and LayoutListTable.
37         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
38         new method names along with the LayoutGroup object for transferring the
39         list layout.
40         * src/main/java/org/glom/web/client/ui/ListView.java:
41         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
42         Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
43         * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
44         with LayoutGroup.
45         * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
46         Replaced with LayoutGroup.
47         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
48         expectedResultSize and defaultTableName fields which are needed for
49         the list layout.
50         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
51         type field which is needed for the list layout but will also be
52         useful for the details layout as things progress.
53         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
54         Make class abstract. Remove the unnecessary
55         getFormattingHorizontalAlignment method. Add setFormatting method.
56
57 2011-06-16  Ben Konrath  <ben@bagu.org>
58
59         Add scripts for building and installing war.
60
61         These will help when updating OnlineGlom but they're also good
62         supplemental documentation of the build and deployment proceeding.
63
64         * utils/build-onlineglom-war.sh: New file.
65         * utils/install-onlineglom-war.sh: New file.
66
67 2011-06-16  Ben Konrath  <ben@bagu.org>
68
69         Create wrapper class to create consistent log messages.
70
71         I wrapped methods in the Log class of gwt-log to add the method names
72         from the servlet and create consistent formatting of the document title
73         and table names in the log messages.
74
75         * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
76         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
77         log methods to use methods from wrapped Log class.
78
79 2011-06-16  Ben Konrath  <ben@bagu.org>
80
81         Remove superfluous conditional return.
82
83         Thanks to Murray Cumming for pointing this out!
84
85         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
86
87 2011-06-15  Ben Konrath  <ben@bagu.org>
88
89         Return an ArrayList of LayoutGroups for the Details layout.
90
91         This corrects a problem with the details layout as it can have more
92         than one top level LayoutGroup.
93
94         * src/main/java/org/glom/web/client/OnlineGlomService.java:
95         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
96         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
97         an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
98         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
99         with ArrayList of LayoutGroups for the details view layout.
100         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
101         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
102         ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
103         getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
104         the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
105         getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
106
107 2011-06-14  Ben Konrath  <ben@bagu.org>
108
109         Use cast_dynamic method to determine the libglom LayoutItem type.
110
111         This is better than finding the LayoutItem type by using the string
112         returned from the get_part_type_name() method.
113
114         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
115
116 2011-06-14  Ben Konrath  <ben@bagu.org>
117
118         Add method names to log entries in the servlet.
119
120         This helps when tracking down deployment problems.
121
122         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
123
124 2011-06-14  Ben Konrath  <ben@bagu.org>
125
126         Add data to the DetailsView using a hard-coded primary key value.
127
128         The layout and functionality of the DetailsView is not complete. This
129         is just a checkpoint so the patch doesn't get too big.
130
131         * src/main/java/org/glom/web/client/OnlineGlomService.java:
132         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
133         Add getDetailsData() servlet method.
134         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
135         Add RPC to getDetailsData(). Change the way the LayoutGroups and
136         LayoutFields are added to the DetailsView.
137         * src/main/java/org/glom/web/client/ui/DetailsView.java:
138         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
139         Add setData() method. Change addLayoutGroup() and addLayoutField() to
140         take the string for the title instead of the object.
141         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
142         Add implementation getDetailsData() along with some private helper
143         methods.
144         * src/main/webapp/style.css: Add padding to details-data class. Add a
145         details-label class with the same padding as the details-data class.
146
147 2011-06-03  Ben Konrath  <ben@bagu.org>
148
149         Use presenter.goTo() to change to the DetailsPlace.
150
151         This will make things easier when we need to open the DetailsView with
152         data specific to the row that was clicked.
153
154         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
155
156 2011-06-02  Ben Konrath  <ben@bagu.org>
157
158         Add CSS file from mockups.
159
160         I'm adding this now because it's going to be useful to have when
161         developing the DetailsView. The TableSelectionView and ListView aren't
162         setup properly yet.
163
164         * src/main/webapp/OnlineGlom.html:
165         * src/main/webapp/style.css:
166
167 2011-06-02  Ben Konrath  <ben@bagu.org>
168
169         Use String.isEmpty() to check for empty string.
170
171         * src/main/java/org/glom/web/client/activity/ListActivity.java:
172
173 2011-06-02  Ben Konrath  <ben@bagu.org>
174
175         Display main layout group titles in the DetailsView.
176
177         This is the start of the DetailsActivity/DetailsView implementation.
178
179         * src/main/java/org/glom/web/client/OnlineGlomService.java:
180         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
181         Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
182         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
183         Get the layout information for the details view from the server and set
184         the main layout group titles.
185         * src/main/java/org/glom/web/client/ui/DetailsView.java:
186         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
187         Add addLayoutGroup() and addLayoutField() methods. This are just
188         temporary methods for creating the the details view that will change
189         in the future.
190         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
191         Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
192         methods.
193         * src/main/java/org/glom/web/shared/layout/Formatting.java:
194         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
195         * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
196         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
197         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
198         Data Transfer Objects that mimic the libglom object structure. These are
199         used for transferring the details layout but could also be used for
200         transferring the list layout.
201
202 2011-05-27  Ben Konrath  <ben@bagu.org>
203
204         Reset the AuthenticationPopup when clearing the ListView.
205
206         * src/main/java/org/glom/web/client/activity/ListActivity.java:
207
208 2011-05-27  Ben Konrath  <ben@bagu.org>
209
210         Fix problem with onlineglom.properties file loading.
211
212         The old way worked in Eclipse but not on the server. Loading the
213         onlineglom.properties file now works in Eclipse and on the server.
214
215         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
216
217 2011-05-24  Ben Konrath  <ben@bagu.org>
218
219         Update gwt-log from 3.1.0 to 3.1.2.
220
221         Gwt-log 3.1.0 has been marked as depreciated.
222
223         * pom.xml:
224
225 2011-05-24  Ben Konrath  <ben@bagu.org>
226
227         Add comment to ListActivity.goTo() method.
228
229         * src/main/java/org/glom/web/client/activity/ListActivity.java:
230
231 2011-05-24  Ben Konrath  <ben@bagu.org>
232
233         Remove FIXME in convertGdkColorToHtmlColour()
234
235         The Gdk::Color value returned by libglom is 16-bits per channel on both
236         64 and 32-bit platforms.
237
238         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
239
240 2011-05-19  Ben Konrath  <ben@bagu.org>
241
242         Improve performance of initial ListView load.
243
244         I removed a round trip to the server for getting the default table name
245         and then requesting information about that table. This also removes a potential
246         problem with the table change handler not being setup in time to receive the
247         table change event from the ListActivity.
248
249         * src/main/java/org/glom/web/client/OnlineGlomService.java:
250         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
251         getDefaultLayoutListTable() method. Improve comments.
252         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
253         getDefaultLayoutListTable() method instead of firing a table change
254         event to get the table to load.
255         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
256         implementation of getDefaultLayoutListTable() method.
257         * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
258         table name.
259
260 2011-05-19  Ben Konrath  <ben@bagu.org>
261
262         Override toDebugString() in TableChangeEvent.
263
264         This is useful to have for debugging.
265
266         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
267
268 2011-05-19  Ben Konrath  <ben@bagu.org>
269
270         Add a "Back to List" link when at the DetailsPlace.
271
272         * src/main/java/org/glom/web/client/activity/ListActivity.java:
273         Populate the CellTable based on the selected table of the ListBox if
274         it's set otherwise use the default table. This allows the "Back to
275         List" link to work.
276         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
277         Remove Place from constructors. Add a setPlace() method. Add
278         goToPlace() method. Set class as presenter for TableSelectionView.
279         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
280         Use the same TableSelectionActivity when switching between the List and
281         Details Places.
282         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
283         Subclass the new HasSelectableTablePlace. This removes some duplicate
284         code.
285         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
286         New class to represent Places that display the TableSelectionView.
287         * src/main/java/org/glom/web/client/place/ListPlace.java:
288         Subclass the new HasSelectableTablePlace. This removes some duplicate
289         code.
290         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
291         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
292         Add Presenter interface. Add setBackLinkVisible() method. Add
293         setBackLink() method.
294
295 2011-05-18  Ben Konrath  <ben@bagu.org>
296
297         Enable the "Details" buttons.
298
299         Right now only an empty details view is displayed.
300
301         * src/main/java/org/glom/web/client/ClientFactory.java:
302         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
303         Add DetailsView to ClientFactory.
304         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
305         A basic activity for the details view.
306         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
307         Add a new constructor that takes a DetailsPlace. Rename shutdown() to
308         clearView().
309         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
310         Add DetailsPlace.Tokenizer to the list of tokens that are generated by
311         GWT.
312         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
313         Create a new DetailsActivity when a DetailsPlace is requested. Remove
314         unnecessary super() in constructor.
315         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
316         Create a new TableSelectionActivity when a DetailsPlace is requested. We
317         really shouldn't create a new TableSelectionActivity for both the ListPlace
318         and the DetailsPlace so this should be considered a temporary solution.
319         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
320         New file. Represents a URL for the details view.
321         * src/main/java/org/glom/web/client/ui/DetailsView.java:
322         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
323         A basic details view interface and implementation.
324         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
325         Enable the "Details" buttons.
326
327 2011-05-12  Ben Konrath  <ben@bagu.org>
328
329         Use a LayoutPanel with multiple display areas for main layout.
330
331         This is mostly a refactor in that there are no changes from the user
332         point of view. These changes are required so that we can swap out the list view
333         with the details view when the user clicks the "Details" button.
334
335         * src/main/java/org/glom/web/client/ClientFactory.java:
336         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
337         OnlineGlomView. Add TableSelectionView, ListView and
338         AuthenticationPopup.
339         * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
340         for main layout. Add display regions for main activities. Add
341         activity manager for for main activities.
342         * src/main/java/org/glom/web/client/activity/ListActivity.java: New
343         file from parts of the deleted OnlineGlomActivity.
344         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
345         New file from parts of the deleted OnlineGlomActivity.
346         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
347         * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
348         New files for app wide table change event.
349         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
350         * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
351         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
352         Activity mappers for the main activities replace the deleted app-wide
353         AppActivityMapper.
354         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
355         Fix a spelling error in he comment.
356         * src/main/java/org/glom/web/client/ui/ListView.java:
357         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
358         Renamed from LayoutListView and modified for MVP. This still not a
359         proper dumb view as prescribed by the MVP pattern but it works for now.
360         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
361         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
362         New widget stripped out of the deleted OnlineGlomView.
363         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
364         Remove hack that is fixed by this patch.
365
366 2011-05-06  Ben Konrath  <ben@bagu.org>
367
368         Rename OnlineGlomPlace to ListPlace.
369
370         The only change besides the rename is that url will now display #list
371         instead of #Document.
372
373         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
374         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
375         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
376         * src/main/java/org/glom/web/client/place/ListPlace.java:
377         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
378
379 2011-05-06  Ben Konrath  <ben@bagu.org>
380
381         Use Presenter for app navigation.
382
383         This is the proper way to deal with Place (URL) changes with the MVP
384         framework.
385
386         * src/main/java/org/glom/web/client/ClientFactory.java:
387         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
388         PlaceHistoryMapper and PlaceHistoryHandler.
389         * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
390         PlaceHistoryMapper and PlaceHistoryHandler.
391         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
392         Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
393         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
394         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
395         Add Presenter interface and setPresenter methods. Rename addHyperLink
396         to addDocumentLink taking only the document title as a parameter.
397
398 2011-04-14  Ben Konrath  <ben@bagu.org>
399
400         Prompt for db username/password if they haven't been set.
401
402         This is implemented with a popup widget that is contained within the
403         OnlineGlomView and managed by the OnlineGlomActivity.
404
405         * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
406         methods for checking and setting the database username and password.
407         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
408         new methods for checking and setting the database username and
409         password.
410         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
411         Display authentication popup if the JDBC connection to the database
412         has not been authenticated.
413         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
414         file.
415         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
416         for dealing with the authentication popup.
417         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
418         Implement the methods for dealing with the authentication popup.
419         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
420         try to executed queries if the database connection hasn't been
421         authenticated. Implement methods for checking and setting the
422         database username and password.
423
424 2011-04-12  Ben Konrath  <ben@bagu.org>
425
426         Make log messages a little clearer.
427
428         Add a dash betweeen the document title and the table name.
429
430         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
431
432 2011-04-12  Ben Konrath  <ben@bagu.org>
433
434         Protect against NPEs when cleaning up database resources.
435
436         While this isn't strictly necessary because the exception is caught,
437         not protecting against the NPEs makes it harder to find the real error
438         in the log file.
439
440         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
441
442 2011-04-12  Ben Konrath  <ben@bagu.org>
443
444         Move configuration of the servlet to the constructor.
445
446         The servlet will be initialized even if the database authentication
447         information is not set or correct. I still need to add the UI for prompting
448         the user for the authentication information when it's required.
449
450         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
451         javadocs for getDocumentTitles() method.
452         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
453         Set error message when RPC fails.
454         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
455         glom files directory from the configuration file. Try to set the
456         database authentication information for the specific document if it's
457         set and works otherwise try to use the global authentication
458         information set for the directory.
459         * src/main/resources/onlineglom.properties: Moved from
460         src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
461         Added detailed comments for the new keys.
462
463 2011-04-11  Ben Konrath  <ben@bagu.org>
464
465         Remove unnecessary @Override in DocumentSelectionViewImpl.
466
467         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
468
469 2011-04-11  Ben Konrath  <ben@bagu.org>
470
471         Remove center alignment in DocumentSelectionView.
472
473         The title element is still centred but the document titles and bottom
474         sentence are both left-aligned.
475
476         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
477
478 2011-04-11  Ben Konrath  <ben@bagu.org>
479
480         Change 'Demo' naming convention to 'Document'.
481
482         This is just a rename refactor with no functional changes to the code.
483
484         * src/main/java/org/glom/web/client/ClientFactory.java:
485         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
486         * src/main/java/org/glom/web/client/OnlineGlom.java:
487         * src/main/java/org/glom/web/client/OnlineGlomService.java:
488         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
489         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
490         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
491         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
492         * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
493         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
494         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
495         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
496         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
497
498 2011-04-08  Ben Konrath  <ben@bagu.org>
499
500         Remove FIXME from safeLongToInt() method.
501
502         Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
503         this method.
504
505         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
506
507 2011-04-08  Ben Konrath  <ben@bagu.org>
508
509         Display an error if no glom documents are found in the specified directory.
510
511         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
512         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
513         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
514         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
515
516 2011-04-08  Ben Konrath  <ben@bagu.org>
517
518         Add copyright header to one more file ... oops.
519
520         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
521
522 2011-04-08  Ben Konrath  <ben@bagu.org>
523
524         Add copyright header to files without it.
525
526         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
527         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
528         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
529         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
530         * src/main/java/org/glom/web/shared/ColumnInfo.java:
531         * src/main/java/org/glom/web/shared/GlomField.java:
532
533 2011-04-08  Ben Konrath  <ben@bagu.org>
534
535         Add support for accessing multiple glom documents in the servlet.
536
537         This completes the demo selection functionality.
538
539         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
540         document title to methods.
541         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
542         document title to methods.
543         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
544         Set browser window title when the activity starts. Correct name of
545         document title variable.
546         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
547         Set browser window title when the activity starts. Set the table
548         selector change handler after table selector has been set. Clear the
549         OnlineGlomView when the activity has been stopped.
550         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
551         document title as the place token. Use "#Document:" instead of
552         "#OnlineGlomPlace:" in the URL.
553         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
554         Change heading to "Online Glom"
555         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
556         document title in RPC methods.
557         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
558         setDocumentTitle() method. Add clear() method.
559         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
560         setDocumentTitle() method. Implement clear() method which removes the
561         change handler on the ListBox, clears the ListBox and clears the
562         DataPanel.
563         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
564         Implement methods with document title. Keep track for the configured
565         glom documents and their corresponding JDBC configurations in a hash
566         table. This information is retrieved using the document title as the
567         key in the hash table.
568         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
569         document title field as it's no longer needed.
570
571 2011-04-08  Ben Konrath  <ben@bagu.org>
572
573         Update the Eclipse JDT configuration.
574
575         * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
576         methods. Automatically add the copyright header to new files.
577
578 2011-04-05  Ben Konrath  <ben@bagu.org>
579
580         Add new page for demo selection.
581
582         This patch adds all the components required to view and start an
583         OnlineGlom demo by clicking on the desired hyperlink. The user is
584         able to return to the demo selection page with the browser's back
585         button. I still need to modify the servlet to work with multiple
586         documents so all demo links will load the file defined in the
587         OnlineGlom.properties.
588
589         * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
590         This is only useful during development so we don't need to save it.
591         * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
592         get a reference to the DemoSelectionView.
593         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
594         method to get a reference to the DemoSelectionView.
595         * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
596         default view to DemoSelectionView.
597         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
598         to get glom document titles for glom files in a hard-coded directory.
599         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
600         method to get glom document titles for glom files in a hard-coded
601         directory.
602         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
603         Presenter for DemoSelectionView.
604         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
605         for DemoSelectionView.
606         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
607         Update for DemoSelectionView.
608         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
609         Basic 'Place' implementation for the DemoSelectionView.
610         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
611         The interface for the DemoSelectionView.
612         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
613         The implementation of the DemoSelectionView.
614         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
615         The GWT UiBuilder xml file used in DemoSelectionViewImpl.
616         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
617         implementation of method to get glom document titles for glom files
618         in a hard-coded directory.
619         * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
620         on longer being used.
621         * src/main/webapp/glom.png: Glom logo.
622
623 2011-04-05  Ben Konrath  <ben@bagu.org>
624
625         Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
626
627         This is the forth and final commit of a refactor that will allow
628         OnlineGlom to be used with multiple documents.
629
630         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
631         Move RPC code from OnlineGlomViewImpl to this class.
632         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
633         to inferface.
634         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
635         RPC code to the presenter class (the P in MVP).
636
637 2011-04-04  Ben Konrath  <ben@bagu.org>
638
639         Start moving the existing OnlineGlom code to MVP.
640
641         This work is based on the GWT MVP framework that is documented here:
642
643         https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
644
645         This is the third commit of a refactor that will allow OnlineGlom to
646         be used with multiple documents.
647
648         * src/main/java/org/glom/web/client/ClientFactory.java: New file.
649         Interface for client factory which is used to get instances of various
650         classes throughout the app.
651         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
652         Implementation of client factory.
653         * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
654         initialize the MVP framework.
655         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
656         New file. Activity manager for the main container widget. This is the
657         Presenter in MVP.
658         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
659         Maps place (URL) to its corresponding activity.
660         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
661         New file. This is just a place holder for a generated file.
662         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
663         New file. Represents the URL for the main Online Glom app.
664         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
665         for changes in LayoutListViewImpl.
666         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
667         interface for View. Move code to OnlineGlomViewImpl class.
668         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
669         file. Implementation of OnlineGlomView.
670         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
671         Place resources. Use ClientFactoryImpl by default.
672
673 2011-04-04  Ben Konrath  <ben@bagu.org>
674
675         Move View classes to their own package.
676
677         This is the second commit of a refactor that will allow OnlineGlom to
678         be used with multiple documents.
679
680         * src/main/java/org/glom/web/client/OnlineGlom.java:
681         * src/main/java/org/glom/web/client/ui/LayoutListView.java:
682         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
683
684 2011-04-02  Ben Konrath  <ben@bagu.org>
685
686         Move UI code from the main module to its own class.
687
688         This is the first commit of a refactor that will allow OnlineGlom to be
689         used with multiple documents.
690
691         * src/main/java/org/glom/web/client/LayoutListView.java: Update
692         references to OnlineGlom to OnlineGlomView.
693         * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
694         OnlineGlomView and instantiate it here.
695         * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
696         represents the main OnlineGlomView with one document.
697
698 2011-04-01  Ben Konrath  <ben@bagu.org>
699
700         Fix formatting of gwt.xml and add DTD.
701
702         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
703
704 2011-03-30  Ben Konrath  <ben@bagu.org>
705
706         Propperly convert gdkColor string to html colour string.
707
708         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
709
710 2011-03-28  Ben Konrath  <ben@bagu.org>
711
712         Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
713
714         This implementation matches
715         OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
716         readable and is not tied to Swig.
717
718         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
719
720 2011-03-28  Ben Konrath  <ben@bagu.org>
721
722         Use read-only checkboxes for boolean field types.
723
724         * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
725         in the CellTable based on the field type. It currently only
726         distinguishes between boolean and text columns but I'll need to add
727         support for more types.
728         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
729         column type in the ColumnInfo object. Add method to convert between the
730         glom field type enum in ColumnInfo and the glom field type in libglom.
731         * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
732         field type.
733         * src/main/java/org/glom/web/shared/GlomField.java: Add support for
734         getting and setting booleans.
735
736 2011-03-25  Ben Konrath  <ben@bagu.org>
737
738         Don't get the Date twice from the ResultSet.
739
740         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
741
742 2011-03-25  Ben Konrath  <ben@bagu.org>
743
744         Cleanup code in the servlet.
745
746         * TODO: Remove item about row count. Add item about testing row count
747         query with large number of rows.
748         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
749         spelling mistakes, change method parameter to be consistent with
750         other methods.
751
752 2011-03-25  Ben Konrath  <ben@bagu.org>
753
754         Add server side logging with the gwt-log library.
755
756         * .gitignore: Ignore the log file we're now producing.
757         * TODO: Add a couple TODO item for logging.
758         * pom.xml: Add gwt-log and log4j as a dependency.
759         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
760         logging of errors, warnings and some important info.
761         * src/main/resources/log4j.properties: New file to configure log4j.
762
763 2011-03-24  Ben Konrath  <ben@bagu.org>
764
765         Add a disable button for the Details view.
766
767         * src/main/java/org/glom/web/client/LayoutListView.java:
768
769 2011-03-22  Ben Konrath  <ben@bagu.org>
770
771         Use a count query to get the number of rows for the list view pager.
772
773         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
774
775 2011-03-22  Ben Konrath  <ben@bagu.org>
776
777         Add more TODO information about CellTable pager positioning. 
778
779         * TODO:
780
781 2011-03-19  Ben Konrath  <ben@bagu.org>
782
783         Add TODO item about CellTable pager positioning.
784
785         * TODO:
786
787 2011-03-18  Ben Konrath  <ben@bagu.org>
788
789         Remove unneeded GlomFieldColumn class.
790
791         This is just a small code cleanup.
792
793         * src/main/java/org/glom/web/client/LayoutListView.java:
794
795 2011-03-18  Ben Konrath  <ben@bagu.org>
796
797         Use cursor mode in the query that gets data for the list view.
798
799         I still need to fix the potential memory problem when getting the row
800         count for the list view.
801
802         * TODO: Add note about testing memory usage with large data sets. Add
803         item about fixing row counting with large data sets.
804         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
805         PostgreSQL JDBC driver into cursor mode when getting data for the
806         list view.
807
808 2011-03-15  Ben Konrath  <ben@bagu.org>
809
810         Remove the GWT Container from the Eclipse build classpath.
811
812         The GWT dependencies are set by Maven so this isn't needed.
813
814         * .classpath:
815
816 2011-03-15  Murray Cumming  <murrayc@murrayc.com>
817
818         Added some earlier mockups to git, but not to the tarball dist.
819
820         * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
821         Openismus. These hopefully show how we might structure the HTML so that
822         it can be styled easily with CSS. However, we probably need to adapt them
823         for the CSS structure that GWT dictates for common widgets.
824
825 2011-03-14  Ben Konrath  <ben@bagu.org>
826
827         Locate OnlineGlom.properties using the ServletContext.
828
829         This is required to be able to locate the file in the deployed servlet.
830
831         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
832         Configure the database and glom document in in a helper method so
833         that the ServletContext can be used to locate OnlineGlom.properties.
834         * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
835         src/main/webapp. This is the proper location for .properites files.
836
837 2011-03-12  Ben Konrath  <ben@bagu.org>
838
839         Add note to README about why we're compiling down to obfuscated JavaScript.
840
841         * README:
842
843 2011-03-11  Ben Konrath  <ben@bagu.org>
844
845         Use properties file to configure servlet.
846
847         This allows people to change the glom file path, db username and db
848         password without recompiling the code.
849
850         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
851         * src/main/webapp/OnlineGlom.properties:
852
853 2011-03-11  Ben Konrath  <ben@bagu.org>
854
855         Use table fields in layout list view if the layout list is not defined.
856
857         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
858         Manually create a LayoutFieldVector for the query builder using the
859         table fields when a layout list is not defined in the glom file.
860
861 2011-03-11  Ben Konrath  <ben@bagu.org>
862
863         Only show FIXME string for images when there's an image.
864
865         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
866         in this change are some small code cleanups.
867
868 2011-03-11  Ben Konrath  <ben@bagu.org>
869
870         Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
871
872         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
873
874 2011-03-11  Ben Konrath  <ben@bagu.org>
875
876         Correctly set the index of the default table.
877
878         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
879         Correctly set the index of the default table. Add commented out example
880         file paths.
881
882 2011-03-10  Ben Konrath  <ben@bagu.org>
883
884         Add comment to pom.xml about the previous change.
885
886         * pom.xml: Add comment about the deployment issue so that it's obvious
887         why java-libglom is set to the provided scope.
888
889 2011-03-10  Ben Konrath  <ben@bagu.org>
890
891         Change java-libglom dependency from compile to provided in pom.xml.
892
893         Since java-libglom uses jni it can only be loaded once and therefore
894         must be placed in $CATALINA_HOME/lib and not included in each war.
895         This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
896         More information about this issue can be found in the Tomcat 6 release
897         notes in the "JNI Based Applications" section:
898
899         http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
900
901         * README: Remove note about this issue. Deployment info should really
902         be on the wiki anyway so I'll add it right now.
903         * pom.xml: Change java-libglom dependency from compile to provided so
904         that it's copied in to the packaged war.
905
906 2011-03-09  Ben Konrath  <ben@bagu.org>
907
908         Change to using a neutral locale for currency, date and time formatting.
909
910         This solves the problem of currency values being represented without a
911         space between the currency code and the number (e.g. "EUR5.89" is now
912         represented as "EUR 5.89"). More work is required when we implement
913         a locale preference setting.
914
915         * TODO: Add note about currency formatting issues with different
916         locales.
917         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
918         to using the neutral ROOT locale.
919
920 2011-03-09  Ben Konrath  <ben@bagu.org>
921
922         Add support for currency codes that are not ISO 4217 codes.
923
924         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
925         the currency code defined in the glom file when it's not 3 characters
926         long or when Java doesn't recognize the string as an ISO 4217 code.
927
928 2011-03-08  Ben Konrath  <ben@bagu.org>
929
930         Remove test classes, launch configurations and configuration.
931
932         The test stuff was getting in the way when creating the war. To make
933         the war file you can now do 'mvn clean package'. The packaged war file
934         will be in the target directory.
935
936         * .classpath: Remove unused classpathentry for tests and i18n.
937         * pom.xml: Remove junit.jar dependency. Properly use gwt.version
938         property. Don't run test or i18n goals when packaging the war.
939         * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
940         formatting.
941
942         Removed files:
943
944         * OnlineGlomTest-dev.launch:
945         * OnlineGlomTest-prod.launch:
946         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
947         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
948
949 2011-03-07  Ben Konrath  <ben@bagu.org>
950
951         Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
952
953         These fixes allow me to use 'mvn deploy' to create the war file.
954
955         * .classpath: This generated config has been updated by Eclipse. This
956         change was probably triggered by me updating from Eclipse 3.6.1 to
957         3.6.2.
958         * .gitignore: Add entry to ignore the directory
959         src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
960         * .project: The generated config has been updated by Eclipse. This
961         change was probably triggered by me updating from Eclipse 3.6.1 to
962         3.6.2.
963         * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
964         so that Eclipse doesn't complain
965         * pom.xml: Update to gwt-maven-plugin 2.2.0.
966         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
967         'tests' directory to 'client' directory. This is the new
968         gwt-maven-plugin convension.
969         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
970         refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
971
972 2011-03-07  Ben Konrath  <ben@bagu.org>
973
974         Add support for horizontal alignment in the LayoutList columns.
975
976         * TODO: Remove item about horizontal alignment. Add item about
977         improvements to ColumnInfo.
978         * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
979         alignment on the columns. Use ColumnInfo RPC object get the column
980         title and horizontal alignment.
981         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
982         LayoutListView creation with ColumnInfo RPC object.
983         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
984         a ColumnInfo object for every LayoutList columnn. Convert the
985         FieldFormatting.HorizontalAlignment to the correct
986         ColumnnInfo.HorizontatlAlignment with the new
987         getColumnInfoHorizontalAlignment helper method.
988         * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
989         to encapsulate column information like alignment and title. This
990         could be used to set the colour instead of on a per cell field basis.
991         * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
992         column title storage and retrieval with ColumnInfo.
993
994 2011-03-04  Ben Konrath  <ben@bagu.org>
995
996         Add support for column sorting.
997
998         * src/main/java/org/glom/web/client/LayoutListView.java: Change
999         AsynDataProvider to be an anonymous inner class. Use new
1000         getSortedTableData RPC method when column sort is requested. Set all
1001         columns sortable and add an AsyncHandler to activate sorting in the
1002         AsyncDataProvider.
1003         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1004         method getSortedTableData(). Cleanup other method signatures.
1005         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1006         new method getSortedTableData(). Cleanup other method signatures.
1007         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1008         Implement getSortedTableData() and getTableData() methods by using a
1009         private helper method with the appropriate parameters filled in. Use
1010         user supplied sort clause when supplied, otherwise fall back to
1011         sorting by the primary key. Move destroy() method to be underneath
1012         constructor for readability.  Cleanup comments.
1013
1014 2011-03-03  Ben Konrath  <ben@bagu.org>
1015
1016         Add support for colour text and colour backgrounds to the layout list cells.
1017
1018         Only the cell backgrounds are coloured which leaves a gap between the
1019         cells that isn't coloured. I need to figure out a way to set
1020         'style=background-colour:' on the whole column rather than just the
1021         cell.
1022
1023         * TODO: Add a note about colouring the background of the whole column.
1024         * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1025         column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1026         render the coloured text and backgrounds. Use GlomField[] for the row type.
1027         * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1028         for the row type.
1029         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1030         GlomField[] for the row type.
1031         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1032         GlomField[] for the row type. Set the text, text colour and background
1033         colour in the GlomField objects as specified in the glom document. Add
1034         method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1035         * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1036         the glom field text, foreground colour and background colour.
1037
1038 2011-03-02  Ben Konrath  <ben@bagu.org>
1039
1040         Don't display hidden tables in the combo box.
1041
1042         * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1043         ArrayLists.
1044         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1045         code to ignore hidden tables using ArrayLists for the table names and
1046         titles.
1047         * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1048         tableNames to use ArrayLists instead of String[]. Update getter and setter
1049         methods.
1050
1051 2011-03-01  Ben Konrath  <ben@bagu.org>
1052
1053         Add support for Date and Time number types.
1054
1055         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1056         Implement formatting for Date and Time values. Change the default glom
1057         file to small business example.
1058
1059 2011-03-01  Ben Konrath  <ben@bagu.org>
1060
1061         Add support for formatting glom types as specified in the glom file.
1062
1063         Formatting isn't finished yet - I still need to add support for Date
1064         and Time values.
1065
1066         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1067         formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1068         checks for null values in JDBC cleanup code and catch all exceptions
1069         instead of just SQLExceptions.
1070         * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1071         method name.
1072
1073 2011-03-01  Ben Konrath  <ben@bagu.org>
1074
1075         Use GWT 2.2.0 instead of 2.1.1.
1076
1077         * pom.xml: Change GWT version numbers.
1078
1079 2011-03-01  Ben Konrath  <ben@bagu.org>
1080
1081         A few small code cleanups.
1082
1083         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1084         duplicate for loop.
1085         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1086         unnecessary object creation in constructor.
1087         * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1088         unnecessary object creation in constructor.
1089
1090 2011-02-28  Ben Konrath  <ben@bagu.org>
1091
1092         Add file for TODO list.
1093
1094         * TODO: New file.
1095
1096 2011-02-18  Ben Konrath  <ben@bagu.org>
1097
1098         Enable the CellTable Pager when more than 20 rows need to be viewed.
1099
1100         The Pager will automatically become active when the results are larger
1101         than the CellTable size which is currently set to 20 lines.
1102
1103         * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1104         name on debug statment in RPC call in LayoutListDataProvider, add
1105         numRows parameter to LayoutListView constructor, propperly set rowCount
1106         in CellTable.
1107         * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1108         name on debug statment in RPC call, use LayoutListTable object in RPC
1109         calls, pass rowCount to LayoutListView.
1110         * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1111         getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1112         object.
1113         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1114         interface for changes in OnlineGlomService.
1115         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1116         getLayoutListHeaders() to getLayoutListTable() and return
1117         LayoutListTable. Using this object allows me to pass other information
1118         about the LayoutList like the expected number of rows in the result set.
1119         The Connection object from the connection pool is now propperly closed.
1120         Only the requested number of lines are returned to the client in
1121         getTableData().
1122         * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1123         GlomTable and add columnTitles and numRows.
1124
1125 2011-02-18  Ben Konrath  <ben@bagu.org>
1126
1127         Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1128
1129         This is a small performance boost. I'll use GlomTable to get the required
1130         layoutlist information.
1131
1132         * src/main/java/org/glom/web/client/OnlineGlom.java:
1133         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1134         * src/main/java/org/glom/web/shared/GlomDocument.java:
1135
1136 2011-02-18  Ben Konrath  <ben@bagu.org>
1137
1138         Add option to turn off formatting in JDT formatter preferences.
1139
1140         * .settings/org.eclipse.jdt.core.prefs:
1141
1142 2011-02-18  Ben Konrath  <ben@bagu.org>
1143
1144         Rename LayoutList to LayoutListView.
1145
1146         I'm working towards setting things up to easily use MVP when the time
1147         comes.
1148
1149         * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1150         LayoutList.java.
1151         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1152         references.
1153
1154 2011-02-17  Ben Konrath  <ben@bagu.org>
1155
1156         Move LayoutListDataProvider class into LayoutList.java.
1157
1158         * src/main/java/org/glom/web/client/LayoutList.java:
1159
1160 2011-02-17  Ben Konrath  <ben@bagu.org>
1161
1162         Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1163
1164         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1165         references.
1166         * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1167         * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1168         from LibGlomServer.java.
1169         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1170         Rename from LibGlomServiceAsync.java.
1171         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1172         Rename from LibGlomServiceImpl.java.
1173         * src/main/webapp/WEB-INF/web.xml: Update configuration.
1174
1175 2011-02-17  Ben Konrath  <ben@bagu.org>
1176
1177         Update JDT settings.
1178
1179         * .settings/org.eclipse.jdt.core.prefs:
1180
1181 2011-02-17  Ben Konrath  <ben@bagu.org>
1182
1183         Move GWT-RPC objects to shared package (where they should be).
1184
1185         * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1186         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1187         * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1188         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1189         * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1190         org.glom.web.shared package.
1191         * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1192         org.glom.web.shared package.
1193         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1194         directory in compilation to javascript.
1195
1196 2011-02-16  Ben Konrath  <ben@bagu.org>
1197
1198         Add sort clause to the sql query that grabs table information.
1199
1200         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1201         if one of the columns is a primary key.
1202
1203 2011-02-16  Ben Konrath  <ben@bagu.org>
1204
1205         Disable generateAsync feature of gwt-maven.
1206
1207         The generated interface does not correctly match the methods in LibGlomService
1208         and the generated singleton Util inner-class doesn't respect the servlet
1209         mappings.
1210
1211         * pom.xml: Turn off generateAsync feature.
1212         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1213         with singleton Util inner-class.
1214
1215 2011-02-14  Ben Konrath  <ben@bagu.org>
1216
1217         Add LGPL v3 licence notices.
1218
1219         Followed directions listed here:
1220         http://www.gnu.org/licenses/gpl-howto.html
1221
1222         * COPYING: This file is a copy of the GPL v3.
1223         * COPYING.LESSER: This file is a copy of the LGPL v3.
1224         * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1225         notice.
1226         * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1227         notice.
1228         * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1229         notice.
1230         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1231         licence notice.
1232         * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1233         notice.
1234         * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1235         notice.
1236         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1237         licence notice.
1238
1239 2011-02-14  Ben Konrath  <ben@bagu.org>
1240
1241         Use ArrayList instead of Array in GWT-RPC calls.
1242
1243         Apparently this gives a slight performance boost to the compiled
1244         java script.
1245
1246         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1247         instead of Array.
1248         * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1249         of Array.
1250
1251 2011-02-14  Ben Konrath  <ben@bagu.org>
1252
1253         Access data from a postgres db rather than the example glom file.
1254
1255         * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1256         compile down to obfuscated javascript.
1257         * pom.xml: Add c3p0 and postgres JDBC libraries.
1258         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1259         using a postgres db accessed through the c3p0 connection pooling library.
1260
1261 2011-02-14  Ben Konrath  <ben@bagu.org>
1262
1263         Update Java formatter settings.
1264
1265         * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1266
1267 2011-02-02  Ben Konrath  <ben@bagu.org>
1268
1269         Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1270
1271         * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1272         using Maven.
1273         * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1274         the compiled webapp directory that Eclipse uses as we're using Maven now.
1275         * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1276         * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1277         to 1.6.
1278         * pom.xml: Format file, change target Java version to 1.6.
1279
1280 2011-02-02  Ben Konrath  <ben@bagu.org>
1281
1282         Add information about a deployment related issue.
1283
1284         * README: Add Notes section with the problem outlined.
1285
1286 2011-02-02  Ben Konrath  <ben@bagu.org>
1287
1288         Call Glom.libglom_deinit() when the servlet is shutdown.
1289
1290         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1291         Glom.libglom_deinit() to destroy() method.
1292
1293 2011-01-28  Ben Konrath  <ben@bagu.org>
1294
1295         Use generated Util class to get the RPC Async interface.
1296
1297         * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1298         file.
1299         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1300         getInstance() method to get a reference to the RPC Async interface.
1301         * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1302         getInstance() method to get a reference to the RPC Async interface, remove
1303         the now unused getLibGlomServiceProxy() method.
1304
1305 2011-01-27  Ben Konrath  <ben@bagu.org>
1306
1307         Cleanup ChangeLog entry from previous commit.
1308
1309         * ChangeLog: Group logical changes together and add comments.
1310
1311 2011-01-25  Ben Konrath  <ben@bagu.org>
1312
1313         Convert to gwt-maven project.
1314
1315         * .gitignore: Update for new project structure.
1316         * README: New file with a link to the online documentation.
1317         * pom.xml: The generated maven configuration file with some tweaks.
1318
1319         Add / update Eclipse settings. These files are a merge of the files that
1320         were generated with the gwt-maven plugin and the files we were previously
1321         using.
1322         * .classpath:
1323         * .project:
1324         * .settings/.jsdtscope:
1325         * .settings/com.google.gdt.eclipse.core.prefs:
1326         * .settings/com.google.gwt.eclipse.core.prefs:
1327         * .settings/org.eclipse.jdt.core.prefs:
1328         * .settings/org.eclipse.wst.common.component:
1329         * .settings/org.eclipse.wst.common.project.facet.core.xml:
1330         * .settings/org.eclipse.wst.jsdt.ui.superType.container:
1331         * .settings/org.maven.ide.eclipse.prefs:
1332         * OnlineGlomTest-dev.launch:
1333         * OnlineGlomTest-prod.launch:
1334
1335         Java source files moved from the 'src' directory to the directory structure
1336         required by maven.
1337         * src/main/java/org/glom/web/client/GlomDocument.java:
1338         * src/main/java/org/glom/web/client/GlomTable.java:
1339         * src/main/java/org/glom/web/client/LayoutList.java:
1340         * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
1341         * src/main/java/org/glom/web/client/LibGlomService.java:
1342         * src/main/java/org/glom/web/client/OnlineGlom.java:
1343         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
1344
1345         Non-functional property file used for translations. I included this as
1346         reminder that it's something I need to sort out.
1347         * src/main/resources/org/glom/web/client/Messages.properties:
1348
1349         The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
1350         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1351
1352         The servlet configuration files moved from the 'war' directory.
1353         * src/main/webapp/OnlineGlom.css:
1354         * src/main/webapp/OnlineGlom.html:
1355         * src/main/webapp/WEB-INF/web.xml:
1356
1357         Generated test files with most of the code commented out. I included these
1358         so that it's easy to add tests when we're ready for them.
1359         * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
1360         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1361
1362 2011-01-25  Ben Konrath  <ben@bagu.org>
1363
1364         Remove unused println.
1365
1366         * src/org/glom/web/server/LibGlomServiceImpl.java:
1367
1368 2011-01-25  Ben Konrath  <ben@bagu.org>
1369
1370         Add project specific JDT settings.
1371
1372         * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
1373         * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
1374
1375 2011-01-25  Ben Konrath  <ben@bagu.org>
1376
1377         Populate celltable with example data.
1378
1379         * src/org/glom/web/client/GlomDocument.java: Correct formatting.
1380         * src/org/glom/web/client/GlomTable.java: Correct formatting.
1381         * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
1382         add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
1383         * src/org/glom/web/client/LayoutListDataProvider.java: New file,
1384         asynchronously gets the example data.
1385         * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
1386         * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
1387         * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
1388         curently selected table to be retrieved by other widgets.
1389         * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
1390         implement getTableData() in a hacky way. This method needs to be updated
1391         to grab information from the database when database creating is
1392         implemented.
1393
1394 2011-01-20  Ben Konrath  <ben@bagu.org>
1395
1396         Set table headers when table dropBox changes.
1397
1398         * src/org/glom/web/client/GlomDocument.java: Correct some method
1399         names.
1400         * src/org/glom/web/client/LibGlomService.java: Add method
1401         to get list layout field names.
1402         * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
1403         to get list layout field names.
1404         * src/org/glom/web/client/ListLayoutTable.java: New file - composite
1405         widget for list layout table.
1406         * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
1407         the table drop box and add new updateTable() method to asynchronously
1408         get the layout list field names for the currently selected table.
1409         * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
1410         implementation of getLayoutListHeaders() method.
1411         * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
1412
1413 2011-01-18  Ben Konrath  <ben@bagu.org>
1414
1415         Make a listBox with table titles instead of the flexTable demo.
1416
1417         This is the start of something more useful.
1418
1419         * .classpath: Exclude a bunch of packages from the JVM that are
1420         getting in the way of the Eclipse content assist.
1421         * src/org/glom/web/client/GlomDocument.java:
1422         * src/org/glom/web/client/GlomTable.java:
1423         * src/org/glom/web/client/LibGlomService.java:
1424         * src/org/glom/web/client/LibGlomServiceAsync.java:
1425         * src/org/glom/web/client/OnlineGlom.java:
1426         * src/org/glom/web/server/LibGlomServiceImpl.java:
1427         * war/OnlineGlom.html:
1428         * war/WEB-INF/web.xml:
1429
1430 211-01-13  Ben Konrath  <ben@bagu.org>
1431
1432         Update to new java-libglom API.
1433
1434         * .gitignore: Ignore OnlineGlom.war.
1435         * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
1436
1437 2010-12-20  Ben Konrath  <ben@bagu.org>
1438
1439         Add some basic style to the table listing.
1440
1441         * src/org/glom/web/client/OnlineGlom.java: Add style to the table
1442         header, print useful error message on async callback failure.
1443         * war/OnlineGlom.css: Add style for table header, remove defaults
1444         provided by the Eclipse project wizard.
1445
1446 2010-12-20  Ben Konrath  <ben@bagu.org>
1447
1448         Load example file from installed glom dir.
1449
1450         * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
1451         provided by java-libglom to find the example file.
1452
1453 2010-12-20  Ben Konrath  <ben@bagu.org>
1454
1455         Update Eclipse settings.
1456
1457         * .classpath:
1458         * .settings/com.google.gdt.eclipse.core.prefs:
1459         * .settings/com.google.gwt.eclipse.core.prefs:
1460
1461 2010-12-17  Ben Konrath  <ben@bagu.org>
1462
1463         Initial commit.
1464
1465         * .classpath: New file.
1466         * .gitignore: New file.
1467         * .project: New file.
1468         * .settings/com.google.gdt.eclipse.core.prefs: New file.
1469         * .settings/com.google.gwt.eclipse.core.prefs: New file.
1470         * src/org/glom/web/OnlineGlom.gwt.xml: New file.
1471         * src/org/glom/web/client/GlomTable.java: New file.
1472         * src/org/glom/web/client/OnlineGlom.java: New file.
1473         * src/org/glom/web/client/TableNameService.java: New file.
1474         * src/org/glom/web/client/TableNameServiceAsync.java: New file.
1475         * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
1476         * war/OnlineGlom.css: New file.
1477         * war/OnlineGlom.html: New file.
1478         * war/WEB-INF/web.xml: New file.
1479         * war/images/glom.png: New file.