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