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