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