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