Add TypedDataItem.
[online-glom:gwt-glom.git] / ChangeLog
1 2011-11-28  Ben Konrath  <ben@bagu.org>
2
3         Add TypedDataItem.
4
5         This should have been added with the refactor. Oops!
6
7         * src/main/java/org/glom/web/shared/TypedDataItem.java:
8
9 2011-11-28  Ben Konrath  <ben@bagu.org>
10
11         Create primary key value from URL string using type from Glom document.
12
13         See this bug, comments 19 - 25:
14
15         https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
16
17         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
18         create a TypeDataItem for the primary key here when loading from a
19         URL. Show the same string for the primary key value as was received
20         from the URL string (when loading from a URL).
21         * src/main/java/org/glom/web/server/Utils.java: Update method for
22         creating the Gda Value from the TypeDataItem to properly deal with
23         creating a Gda Value based on the Glom document type for the primary
24         key value string when loading from a URL.
25         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
26         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
27         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
28         Update for changed method name.
29
30 2011-11-27  Ben Konrath  <ben@bagu.org>
31
32         Rename PrimaryKeyItem to TypedDataItem.
33
34         The name PrimaryKeyItem suggests what the class should be used for.
35         TypedDataItem is a neutral name that describes the class better.
36
37         This is a rename-only refactor.
38
39         * src/main/java/org/glom/web/client/OnlineGlomService.java:
40         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
41         * src/main/java/org/glom/web/client/Utils.java:
42         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
43         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
44         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
45         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
46         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
47         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
48         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
49         * src/main/java/org/glom/web/server/Utils.java:
50         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
51         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
52         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
53         * src/main/java/org/glom/web/shared/NavigationRecord.java:
54
55 2011-11-25  Ben Konrath  <ben@bagu.org>
56
57         Improve Gda Value conversion from PrimaryKeyItem.
58
59         The value from the PrimaryKeyItem is only used if its type match the
60         type from the glom document.
61
62         * src/main/java/org/glom/web/server/Utils.java:
63
64 2011-11-25  Ben Konrath  <ben@bagu.org>
65
66         Manually check if the java-liblgom .so is visible to the JVM.
67
68         It seems that Tomcat has problems when a static initializer throws an
69         exception. This check is done before the first method call into
70         java-libglom so that execution doesn't continue if the .so is not
71         found.
72
73         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
74
75 2011-11-25  Ben Konrath  <ben@bagu.org>
76
77         Improve browser configuration error messages.
78
79         This fixes:
80
81         https://bugzilla.gnome.org/show_bug.cgi?id=662792
82
83         * src/main/java/org/glom/web/client/OnlineGlomService.java:
84         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
85         getConfigurationErrorMessage() method.
86         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
87         Get and display a specific configuration error message when no Glom
88         documents are found.
89         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
90         Implement getConfigurationErrorMessage() method. Surround configuration
91         code in the init() method with a try/catch block. This allows the
92         errors to be caught while keeping the servlet available to retrieve the
93         configuration error message.
94
95 2011-11-25  Ben Konrath  <ben@bagu.org>
96
97         Don't use Strings to hold primary key values.
98
99         The primary key values are now held in a new data object
100         (PrimaryKeyItem) that holds type information and the primary key value
101         using the correct type.
102
103         * src/main/java/org/glom/web/client/OnlineGlomService.java:
104         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
105         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
106         PrimaryKeyItem instead of String to hold the primary key value.
107         * src/main/java/org/glom/web/client/Utils.java: Remove
108         getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
109         PrimaryKeyItem based on the GlomFieldType and the DataItem.
110         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
111         PrimaryKeyItem instead of String to hold the primary key value. Load
112         document selection page when the documentID has not been set correctly.
113         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
114         DetailsPlace -> URL and URL -> DetailsPlace conversion with
115         PrimaryKeyItem.
116         * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
117         Return empty string for URL instead of "null".
118         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
119         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
120         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
121         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
122         PrimaryKeyItem instead of String to hold primary key values.
123         * src/main/java/org/glom/web/server/Utils.java: New method to convert a
124         PrimaryKeyValue to a Gda Value.
125         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
126         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
127         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
128         Replace temporary database access code that uses the PrimaryKeyValue to
129         Gda Value conversion.
130         * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
131         * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
132         PrimaryKeyItem instead of String.
133         * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
134         hold primary key values.
135
136 2011-11-24  Ben Konrath  <ben@bagu.org>
137
138         Use newly added java-libglom API to create queries.
139
140         This isn't finished. I still need to stop using Strings for primary key
141         values in the client code.
142
143         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
144         libglom to use fake connections so that retrieving the query string will
145         work.
146         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
147         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
148         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
149         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
150         Use the newly added libglom sql methods and classes to create the
151         query. Add temporary hack to convert primary value strings to Gda
152         Value.
153
154 2011-11-23  Ben Konrath  <ben@bagu.org>
155
156         Don't explicitly set the height of Portals.
157
158         See comments 6 - 10 of this bug for details:
159
160         https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
161
162         * src/main/java/org/glom/web/client/ui/details/Portal.java:
163
164 2011-11-23  Ben Konrath  <ben@bagu.org>
165
166         Use an HTML table instead of CSS for the FlowTable layout.
167
168         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
169         GWT's FlexTable to implement the FlowTable.
170         * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
171
172 2011-11-18  Ben Konrath  <ben@bagu.org>
173
174         Add boolean example to HTML table mockup.
175
176         * mockups/details-view-html-tables-text-entries.html:
177
178 2011-11-17  Ben Konrath  <ben@bagu.org>
179
180         Ensure the pager buttons are always visible for related lists.
181
182         To accomplish this, I've turned off text wrapping in the list view and
183         related list tables for both the header and data text. The related list
184         table now has a fixed layout so the it doesn't overflow its container.
185         This is required to ensure that the cell text is clipped when it
186         overflows the cell and an ellipsis is added to the right side of the
187         cell when text is clipped.
188
189         A fixed table layout for the related list table in the details view
190         seems what we want for the details view anyway, so the side-effect is
191         desirable.
192
193         The ellipsis will only be displayed in Firefox >= 7.
194
195         This fixes bug:
196
197         https://bugzilla.gnome.org/show_bug.cgi?id=662930
198
199         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
200         * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
201         'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
202         cell text.
203         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
204         Set the 'table-layout: fixed' CSS property to the related list table.
205         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
206         'white-space: nowrap;' CSS property on both the list view and the
207         related list tables.
208
209 2011-11-16  Ben Konrath  <ben@bagu.org>
210
211         Rework the fix for empty notebook tab labels.
212
213         Setting the empty group titles with its name caused problems for the
214         details layout. Instead of using libglom's
215         LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
216         to the client when the title is empty. This allows the Notebook to use
217         the name when the title is empty without affecting anything else.
218
219         * src/main/java/org/glom/web/client/ui/details/Notebook.java:
220         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
221
222 2011-11-16  Ben Konrath  <ben@bagu.org>
223
224         Set group titles with name when title is empty.
225
226         This fixes a problem with an empty notebook tab label in the Lesson
227         Planner document. The forth tab in the notebook should be "Internet":
228
229         http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
230
231         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
232         libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
233         DTO title.
234
235 2011-11-16  Ben Konrath  <ben@bagu.org>
236
237         Remove whitespace from the configured username properties.
238
239         This assumes that usernames won't have whitespace at the beginning
240         or end. But I think this is a reasonable assumption.
241
242         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
243         String.trim() to remove the whitespace from the username properties.
244
245 2011-11-15  Ben Konrath  <ben@bagu.org>
246
247         Add details view mockup with HTML tables and text entries.
248
249         This is from the attachment on this bug:
250
251         https://bugzilla.gnome.org/show_bug.cgi?id=663109
252
253         * mockups/details-view-html-tables-text-entries.html:
254
255 2011-11-15  Ben Konrath  <ben@bagu.org>
256
257         Add space between the columns of the flow table.
258
259         This fixes:
260
261         https://bugzilla.gnome.org/show_bug.cgi?id=662918
262
263         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
264         space between columns in the flow table.
265
266 2011-11-15  Ben Konrath  <ben@bagu.org>
267
268         Add backup files to the .gitignore.
269
270         * .gitignore: Ignore files that end with ~.
271
272 2011-11-09  Ben Konrath  <ben@bagu.org>
273
274         Use latest release of gwt-log.
275
276         Gwt-log releases are now being submitted to the maven central
277         repository so manual installation of the jar is no longer required.
278
279         * pom.xml: Update version and groupId of gwt-log dependency.
280
281 2011-10-31  Ben Konrath  <ben@bagu.org>
282
283         Don't use GWT numeric formatting to override the glom currency formatting.
284
285         Currencies are now displayed like they are in Glom. See this bug:
286
287         https://bugzilla.gnome.org/show_bug.cgi?id=646216
288
289         * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
290         formatting.
291         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
292         currency code to constructor and set it when the cell is rendered.
293         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
294         currency code to the constructor of the NumericCell.
295
296 2011-10-27  Ben Konrath  <ben@bagu.org>
297
298         Require the latest release of java-libglom (1.17.4).
299
300         * pom.xml:
301
302 2011-10-26  Ben Konrath  <ben@bagu.org>
303
304         Add style to Notebook that matches current theme.
305
306         It's not the best style in the world but it's better than the default.
307
308         * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
309         padding at the bottom of the child widgets.
310         * src/main/webapp/style.css: Add style for the Notebook.
311
312 2011-10-26  Ben Konrath  <ben@bagu.org>
313
314         Move servlet initialization code to overridden init method.
315
316         This is half of the solution to getting proper error messages
317         displayed when configuration errors occur. Here's the relevant bug:
318
319         https://bugzilla.gnome.org/show_bug.cgi?id=662792
320
321         The rest of the solution involves surrounding the init method with a
322         try/catch block and setting a global variable with the error /
323         exception. A new async method should be created to retrieve and display
324         the error message / exception.
325
326         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
327         code from constructor to init method adding exceptions as needed.
328
329 2011-10-26  Ben Konrath  <ben@bagu.org>
330
331         Add script to monitor and restart tomcat if required.
332
333         * utils/check-and-recover-tomcat.py: New file.
334
335 2011-10-26  Ben Konrath  <ben@bagu.org>
336
337         Display the correct number of data items in the pager.
338
339         This commit fixes:
340
341         https://bugzilla.gnome.org/show_bug.cgi?id=661441
342
343         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
344         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
345         The implementation is the same for both tables: Keep track of the
346         number of non-empty rows and fire and RowCountChangeEvent after the data has
347         been updated.
348         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
349         custom Pager class that subclasses SimplePager to handle displaying
350         the correct number when empty rows have been added.
351
352 2011-10-26  Ben Konrath  <ben@bagu.org>
353
354         Correct error in previous commit.
355
356         * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
357         eventBus parameter from listView.setCellTable().
358
359 2011-10-26  Ben Konrath  <ben@bagu.org>
360
361         Fix error in TODO comment.
362
363         * src/main/java/org/glom/web/client/activity/ListActivity.java:
364
365 2011-10-24  Ben Konrath  <ben@bagu.org>
366
367         Create Notebook widgets to the details view.
368
369         This isn't finished just yet - I still need to create a reasonable
370         style to match the current theme.
371
372         * src/main/java/org/glom/web/client/Utils.java: Add method for
373         calculating the height of a widget. This is used in the Notebook class.
374         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
375         new constructor method in Group.
376         * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
377         method for creating child widget that can be used by subclasses
378         like Notebook. New constructor that allows disabling the group
379         titles - Notebooks don't set a group title for their child groups.
380         * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
381         to make Notebooks using GWT's TabLayoutPanel.
382         * src/main/java/org/glom/web/client/ui/details/Portal.java: New
383         constructor that allows disabling the group titles.
384         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
385         LayoutItemNotebook DTO.
386         * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
387         DTO for Notebooks. It's just an empty class for now but we might need
388         it to transfer some specific information in the future.
389
390 2011-10-21  Ben Konrath  <ben@bagu.org>
391
392         Add navigation buttons to related list tables.
393
394         * src/main/java/org/glom/web/client/OnlineGlomService.java:
395         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
396         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
397         method getSuitableRecordToViewDetails() for getting the table name
398         and primary key value for related list navigation buttons.
399         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
400         private cell renderer class to get the navigation information for
401         related list tables from the server. Extract the navigation
402         processing code from the details cell navigation and use it for the
403         related list navigation as well.
404         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
405         cell renderer class for the details open buttons. This was needed
406         because the related list navigation buttons and the list view
407         navigation buttons need to react differently when clicked.
408         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
409         the onEnterKeyDown() method because it's now overriden in the
410         subclasses that are specific to the related list tables and the list
411         view tables.
412         * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
413         the vertical size a little because the buttons add a bit of vertical
414         space to table. This is not a perfect solution because the vertical
415         size of with table fewer than 5 rows will be a little smaller.
416         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
417         changes in how navigation buttons are handled.
418         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
419         getSuitableRecordToViewDetails() using the new RelatedListNavigation
420         database access object.
421         * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
422         to find the portal for a given relationship name from
423         RelatedListDBAccess. Add method to find a primary key field for a
424         given table.
425         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
426         Move code to find the portal for a given relationship name to
427         DBAccess.
428         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
429         New file: database access object for getting the related list
430         navigation information (the table name and the primary key value).
431         * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
432         DTO for transferring a table name to navigate to and a primary key
433         value.
434         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
435         boolean and getter/setter to specifies if the related list should add
436         navigation buttons.
437
438 2011-10-24  Murray Cumming  <murrayc@murrayc.com>
439
440         Use the master branch of java-libglom
441
442         * pom.xml: Depend on java-libglom 1.19 instead.
443         
444         This is the master branch. See also the libglom-1-18 branch.
445
446 2011-10-11  Ben Konrath  <ben@bagu.org>
447
448         Enable the open navigation button when the data has been set.
449
450         This avoids having active buttons that don't do anything when the data
451         has not been set.
452
453         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
454
455 2011-10-11  Ben Konrath  <ben@bagu.org>
456
457         Use IsWidget interface for FlowTableItem.
458
459         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
460         FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
461
462 2011-10-11  Ben Konrath  <ben@bagu.org>
463
464         Remove GWT styling from open button in details view.
465
466         There are still some issues with how the details cell is arranged but
467         this should be made to match Glom 1.20. I'm going to leave fixing this
468         until I have Glom 1.20 up and running.
469
470         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
471         style name on open button.
472         * src/main/webapp/style.css: Move and edit details-navigation class.
473         Re-arrange some classes to make them appear in the same order as the
474         UI.
475
476 2011-10-07  Ben Konrath  <ben@bagu.org>
477
478         Update to GWT 2.4.0.
479
480         * .gitignore: Ignore new cache directory.
481         * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
482         * pom.xml: Change GWT and maven plugin to 2.4.0.
483         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
484         2.4.0.
485         * src/main/java/org/glom/web/client/ClientFactory.java:
486         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
487         * src/main/java/org/glom/web/client/OnlineGlom.java:
488         Update source for API changes.
489         * utils/build-onlineglom-war.sh: Remove cache directory before the
490         build.
491
492 2011-10-07  Ben Konrath  <ben@bagu.org>
493
494         Add navigation buttons in the details view.
495
496         This isn't finished but I thought I'd commit what I have as it's a
497         pretty good start. I still need to:
498
499         1. Change the style so that it fits better into the current theme
500         2. Adjust the details cell to expand as much as possible.
501
502         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
503         click handlers to navigation buttons in the DetailsCells. Create a
504         refreshData() method to get just the data from the server without the
505         layout.
506         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
507         Update the tableSelector and browser title when the table name
508         changes without using the tableSelector.
509         * src/main/java/org/glom/web/client/ui/DetailsView.java:
510         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
511         getDetailsCells() to getCells(). Update variable names.
512         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
513         method to set click handler on navigation button. Rename a few
514         variables. Add navigation buttons where needed.
515         * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
516         variables and methods.
517         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
518         navigation boolean and navigation table as required in the
519         LayoutItemField DTO.
520         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
521         variables for navigation along with getter/setter methods.
522
523 2011-10-07  Ben Konrath  <ben@bagu.org>
524
525         Rename Field to DetailsCell.
526
527         This is a refactor-only commit. No functionality has been added or
528         removed.
529
530         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
531         Update variable and method names.
532         * src/main/java/org/glom/web/client/ui/DetailsView.java:
533         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
534         variable and method names.
535         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
536         Renamed from Field.
537         * src/main/java/org/glom/web/client/ui/details/Group.java: Update
538         variable and method names.
539
540 2011-10-07  Ben Konrath  <ben@bagu.org>
541
542         Create separate methods for layout and data the details view.
543
544         This is a refactor-only commit. No functionality has been added or
545         removed.
546
547         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
548         private methods: setData(), createLayout().
549
550 2011-10-07  Ben Konrath  <ben@bagu.org>
551
552         Don't use TableSelectorImpl implementation details in TableSelectorActivity.
553
554         This is part of a change to get navigation buttons in the details view
555         but it should have been done this way from the start.
556
557         * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
558         for method name change in TableSelectionView.
559         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
560         Create TableChangeEvent and set the browser title using the
561         TableSelectionView API.
562         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
563         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
564         Change getSelectedTable() to getSelectedTableName(). Add
565         getSelectedTableTitle().
566
567 2011-10-07  Ben Konrath  <ben@bagu.org>
568
569         Use primaryKeyValue naming convention in constructor of DetailsPlace.
570
571         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
572
573 2011-10-07  Ben Konrath  <ben@bagu.org>
574
575         Update TableChangeEvent to use newTableName naming convention.
576
577         This makes the class more consistent with GWT naming conventions.
578
579         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
580         Update for method name change in TableChangeEvent.
581         * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
582         for method name change in TableChangeEvent.
583         * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
584         newTableName variable and getter method. Make toDebugString()
585         actually work.
586
587 2011-09-30  Ben Konrath  <ben@bagu.org>
588
589         Disable the pager in the list tables when the data row count is less than the minimum.
590
591         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
592         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
593
594 2011-09-30  Ben Konrath  <ben@bagu.org>
595
596         Add empty rows to the end of related list and list view tables.
597
598         I also extracted the cell rendering classes from the ListTable because
599         the code was becoming a little crazy with all the anonymous inner
600         classes. My plan is to use these cell rendering classes in the details
601         view as well so this refactor will be needed for that change.
602
603         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
604         set the row count in related list tables if the data has more rows
605         than the minimum number of rows visible.
606         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
607         row count in list view tables if the data has more rows than the
608         minimum number of rows visible.
609         * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
610         for rendering TYPE_BOOLEAN cells. The code was extracted from the
611         ListTable class.
612         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
613         for rendering TYPE_NUMERIC cells. The code was extracted from the
614         ListTable class.
615         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
616         class for rendering cells with buttons in list views. The code was
617         extracted from the ListTable class.
618         * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
619         for rendering TYPE_TEXT cells. The code was extracted from the
620         ListTable class.
621         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
622         Add empty rows to the end of the data if required. Implement
623         ListTable.getMinNumVisibleRows().
624         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
625         cell renderer code to public classes. Return null in
626         Column.getValue() for empty rows. Add new abstract method:
627         getMinNumVisibleRows(). Move code to set the row count of the list view
628         table to ListViewImpl.
629         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
630         empty rows to the end of the data if required. Implement
631         ListTable.getMinNumVisibleRows().
632
633
634 2011-09-27  Ben Konrath  <ben@bagu.org>
635
636         Use GWT.log for client-side debugging statements.
637
638         These are optimized out when deployed so I should have used this method
639         in the first place. These statements will eventually be replaced with some sort
640         of notification in the browser.
641
642         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
643         * src/main/java/org/glom/web/client/activity/ListActivity.java:
644         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
645         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
646         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
647
648 2011-09-27  Ben Konrath  <ben@bagu.org>
649
650         Put tableselector on the right, back to list link on right.
651
652         The idea is that the table selector is acting like a label for the
653         currently displayed table so it should be placed below the document title. This
654         puts the table title in a similar position to where it is in Glom.
655
656         * mockups/details-contacts.html:
657         * mockups/details-projects.html:
658         * mockups/listview-contacts.html:
659         * mockups/listview-projects.html:
660         * mockups/style.css:
661         Update mockups to match how the interfaces currently look.
662         * src/main/webapp/style.css: Swap positions of backlink with the table
663         selector. Add some space on the left side of the table selector to
664         line things up with the document title.
665
666 2011-09-27  Ben Konrath  <ben@bagu.org>
667
668         Add field colouring to details view.
669
670         This change re-works how field colouring works. The colour formatting
671         information is now set to the client with the layout information instead of
672         with the data. This eliminates the need to send the same colour strings for
673         data in list view column when colour information is set.
674
675         In order to set an alternate colour for negative numeric values, the
676         number is now sent to client and formatted with the GWT NumberFormat class.
677
678         This change also fixes:
679
680         https://bugzilla.gnome.org/show_bug.cgi?id=659752
681
682         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
683         internationalization framework which is needed for client side numeric
684         formatting.
685         * src/main/java/org/glom/web/client/Utils.java: New file for some
686         client static utility methods.
687         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
688         the DataItem object to the Field class. Use a utility method to
689         create the foreignKeyValue string.
690         * src/main/java/org/glom/web/client/ui/details/Field.java: Set
691         alignment and text colours in the constructor. Add setData(DataItem)
692         method. Remove setText(String) method.
693         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
694         colour information to GlomTextCell. Create and use GlomNumberCell for
695         rendering numbers. Use utility method to get the string for the
696         primary key of the key provider. Re-work how the horizontal alignment
697         is set.
698         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
699         formatting to layout information. Methods for converting the libglom
700         formatting information were moved from DBAccess.
701         * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
702         numeric formatting (it's now done on the client side). Don't set text
703         colours in DataItem. Move libglom formatting conversion methods to
704         ConfiguredDocument.
705         * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
706         getters/setters for text colour information.
707         * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
708         for transferring the libglom NumericFormat information to the client.
709         * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
710         and getters/setters for: GlomNumericFormat, background colour and
711         foreground colour strings.
712
713 2011-09-26  Ben Konrath  <ben@bagu.org>
714
715         Simplify code that iterates through the LayoutGroup.
716
717         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
718
719 2011-09-26  Ben Konrath  <ben@bagu.org>
720
721         Accept Eclipse formatting for OnlineGlomServiceAsync.
722
723         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
724
725 2011-09-26  Ben Konrath  <ben@bagu.org>
726
727         Don't use the ListDBAccess classes to get the primary key layout information.
728
729         This was causing a bug where the wrong index for the hidden primary key
730         was being sent to the client.
731
732         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
733         primary key while creating the LayoutGroup DTO. Create a
734         LayoutItemField DTO for hidden primary keys. Don't use the
735         RelatedListDBAccess because it was only used for getting the primary
736         key.
737         * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
738         access modifier from public to protected for getPrimaryKeyField() and
739         getPrimaryKeyLayoutItemField().
740         * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
741         abstract method getExpectedResultSize() because RelatedListDBAccess
742         doesn't have enough info to implement it.
743         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
744         Remove @Override for getExpectedResultSize().
745         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
746         Remove method getExpectedResultSize().
747
748 2011-09-23  Ben Konrath  <ben@bagu.org>
749
750         Log which layout (list or details) the ignored item is from.
751
752         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
753
754 2011-09-23  Ben Konrath  <ben@bagu.org>
755
756         Remove annotations that turn off code formatting in DataItem.
757
758         * src/main/java/org/glom/web/shared/DataItem.java:
759
760 2011-09-23  Ben Konrath  <ben@bagu.org>
761
762         Rename GlomField to DataItem and update associated methods.
763
764         This is a rename-only refactor. No functionality has been added or
765         removed.
766
767         * src/main/java/org/glom/web/client/OnlineGlomService.java:
768         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
769         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
770         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
771         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
772         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
773         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
774         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
775         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
776         * src/main/java/org/glom/web/server/database/DBAccess.java:
777         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
778         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
779         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
780         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
781         * src/main/java/org/glom/web/shared/DataItem.java:
782         * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
783         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
784
785 2011-09-23  Ben Konrath  <ben@bagu.org>
786
787         Rename GlomDocument to DocumentInfo and update associated methods.
788
789         This is a rename-only refactor. No functionality has been added or
790         removed.
791
792         * src/main/java/org/glom/web/client/OnlineGlomService.java:
793         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
794         * src/main/java/org/glom/web/client/activity/ListActivity.java:
795         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
796         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
797         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
798         * src/main/java/org/glom/web/shared/DocumentInfo.java:
799
800 2011-09-20  Ben Konrath  <ben@bagu.org>
801
802         Require java-libglom 1.17.3.
803
804         This picks up the fix for the seg fault problem with the Scenes table
805         in the Openismus Film Manager example.
806
807         * pom.xml:
808
809 2011-09-20  Ben Konrath  <ben@bagu.org>
810
811         Change the way sort clause is added for primary key when no sort clause is requested.
812
813         The primary key is now added to the LayoutFieldVector (fieldsToGet)
814         before the sort clause is created. When a sort clause is not requested, the
815         sort clause is created by finding the primary key in the LayoutFieldVector
816         (fieldsToGet).
817
818         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
819
820 2011-09-20  Ben Konrath  <ben@bagu.org>
821
822         Log error message if no documents are found in the configured directory.
823
824         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
825         Extract the glom file extension string to a private static final class
826         variable (mostly as syntactic sugar). Accept a minor formatting change.
827         * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
828         the example glom.document.directory configuration property to make it
829         more clear that it can any directory, not just the home directory.
830
831 2011-09-18  Ben Konrath  <ben@bagu.org>
832
833         Add related lists to details view.
834
835         The related list table has support for paging and sorting just like the
836         table in the list view.
837
838         * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
839         SQL queries for the related list tables.
840         * src/main/java/org/glom/web/client/OnlineGlomService.java:
841         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
842         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
843         Rename getList methods to getListView and add comments. Remove
844         getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
845         it being unused. Add methods: getDetailsLayoutAndData(),
846         getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
847         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
848         Create the layout and set the data for the fields in one async call
849         instead of two. Create related lists where appropriate.
850         * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
851         for method name changes in OnlineGlomService.
852         * src/main/java/org/glom/web/client/ui/DetailsView.java:
853         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
854         addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
855         visible UI objects.
856         * src/main/java/org/glom/web/client/ui/ListView.java:
857         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
858         tableName from setCellTable(). Create a ListViewTable instead of
859         ListTable.
860         * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
861         represent a data field in the details view.
862         * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
863         from addDetailsCell() to Field class. Keep track of the Fields and
864         Portals in the details view.
865         * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
866         a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
867         and add a method to get it. Add method to set the contents of the
868         portal.
869         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
870         New class for related list tables. This class has the data provider
871         for the related list table.
872         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
873         abstract class which is the base class for the ListViewTable and the
874         RelatedListTable.
875         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
876         New class for list view tables. This class has the data provider for
877         the list view table.
878         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
879         methods for related list tables. Add more information to the
880         LayoutItemField and LayoutItemPortal DTOs.
881         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
882         Remove debugging print statement.
883         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
884         Remove debugging print statements. Add primary key field to SQL count
885         query.
886         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
887         Remove unnecessary LayoutFieldVector parameter from
888         getResultSizeOfSQLQuery() method.
889         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
890         New class for related list table database access.
891         * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
892         class that is a wrapper DTO for details view layout and data.
893         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
894         new 'fromField' string to this DTO.
895         * src/main/webapp/style.css: Remove bottom margin and override top
896         margin with 0em.
897
898 2011-09-15  Ben Konrath  <ben@bagu.org>
899
900         Breakup the OnlineGlomServiceImpl class to make it more manageable.
901
902         This sets things up to make it easier to add the data retrieval for
903         related lists (portals). No user noticeable changes were made with
904         this commit.
905
906         * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
907         class has the code to retrieve the layouts and access the
908         database using the new database helper classes.
909         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
910         Most of the functionality has been removed from this class. This
911         class now represents the public interface for the client side
912         code. It also deals with configuring the servlet and cleaning
913         things up when the servlet is stopped.
914         * src/main/java/org/glom/web/server/Utils.java: Extract a couple
915         of static methods into this utility class.
916         * src/main/java/org/glom/web/server/database/DBAccess.java:
917         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
918         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
919         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
920         These classes have the database retrieval code. The class hierarchy
921         has been setup to make it easy to reuse code for similar
922         functionality.
923
924 2011-09-06  Ben Konrath  <ben@bagu.org>
925
926         Create separate classes for list table code and the data provider.
927
928         As part of this refactor, I also split up the code a bit to make it
929         more manageable.
930
931         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
932         table code to two new classes (below).
933         * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
934         with code from ListViewImpl.
935         * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
936         New file with code from ListViewImpl.
937
938 2011-09-06  Ben Konrath  <ben@bagu.org>
939
940         Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
941
942         This fixes the LayoutItemPortal DTO to match the libglom layout object
943         hierarchy.
944
945         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
946
947 2011-09-01  Ben Konrath  <ben@bagu.org>
948
949         Set title of Portals in the Details View.
950
951         * pom.xml: Bump required version of java-libglom to 1.17.1.
952         * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
953         widget creation to its own class. Add comments to constructor.
954         * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
955         The code is mostly from the Group class with the title now set.
956         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
957         title of Portal. Update some comments. Fix some code formatting.
958
959 2011-09-01  Ben Konrath  <ben@bagu.org>
960
961         Remove TODO comment for the flow table column width.
962
963         The flow table column width is working correctly and doesn't need to be
964         changed. See this mailing list post for more info:
965
966         https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
967
968         * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
969
970 2011-08-27  Ben Konrath  <ben@bagu.org>
971
972         Add document title (database name) to top of the browser page.
973
974         I added the document title to the TableSelecitonView but that will
975         change if / when we add a view that doesn't require table selection.
976
977         * mockups/details-contacts.html:
978         * mockups/details-projects.html:
979         * mockups/listview-contacts.html:
980         * mockups/listview-projects.html:
981         * mockups/style.css: Add document title to mockups to keep things
982         consistent.
983         * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
984         sizes to account for the document title.
985         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
986         Set the document title when it has been retrieved from the server.
987         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
988         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
989         and implement setDocumentTitle(String) method.
990         * src/main/webapp/style.css: Add ID for document title style.
991
992 2011-08-25  Ben Konrath  <ben@bagu.org>
993
994         Add NavigationType enum to LayoutItemPortal DTO.
995
996         This is the start of adding support for Portals to the Details View.
997
998         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
999         LayoutItem_Portal.navigation_type enum from libglom to
1000         LayoutItemPortal.NavigationType enum.
1001         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1002         NavigationType enum, field for storing the NavigationType and getter
1003         and setter methods.
1004
1005 2011-08-25  Ben Konrath  <ben@bagu.org>
1006
1007         Implement the flow table layout in the Details View.
1008
1009         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1010         FlowTable to Group to account for the renamed class.
1011         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1012         File. This is a container widget that implements the Glom details view
1013         flow table behaviour.
1014         * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1015         org/glom/web/client/ui/FlowTable.java.
1016         * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1017         so that the size of the subgroups are a closer match to the size of
1018         the Glom subgroups. This makes the flowtable layout match the layout
1019         in Glom for the Music Collection example file.
1020
1021 2011-08-16  Ben Konrath  <ben@bagu.org>
1022
1023         Create container element for LayoutItemPortal in Details View.
1024
1025         This will help me develop the layout for the FlowTable.
1026
1027         * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1028         fieldPanel variable to detailsCell.
1029
1030 2011-08-15  Ben Konrath  <ben@bagu.org>
1031
1032         Set the height of the data element in the Details View.
1033
1034         I changed the InlineLabels (text in a span element) to Labels (text in
1035         a div element) so that I could set the height of the details-data
1036         elements instead of the details-cell parent elements. This allows the
1037         the details-data element to display the correct height if style is
1038         applied that shows the height.
1039
1040         This change has the added benefit of allowing the order of the labels
1041         and data elements to be changed for right-to-left languages.
1042
1043         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1044         InlineLabels to Labels.
1045         * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1046         InlineLabels to Labels. Set the height of the data element.
1047         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1048         multiline text height in the Formatting DTO.
1049         * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1050         for multiline height along with getter and setter methods.
1051         * src/main/webapp/style.css: Adjust style to account for the change
1052         from span elements to div elements in the details cell.
1053
1054 2011-08-15  Ben Konrath  <ben@bagu.org>
1055
1056         Make the List View appearance match the mockups.
1057
1058         It doesn't match exactly but it's much better than it was.
1059
1060         * mockups/listview-contacts.html: Remove unused css classes.
1061         * mockups/listview-projects.html: Remove unused css classes.
1062         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1063         rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1064         for mainPanel instead of VerticalPanel (table). Set style name on
1065         CellTable. Set style name on Details column. Right-align Details
1066         buttons.
1067         * src/main/webapp/style.css: Adjust properties to match the mockups.
1068
1069 2011-08-12  Ben Konrath  <ben@bagu.org>
1070
1071         Add better support for subgroups in the details view.
1072
1073         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1074         changed FlowTable constructor.
1075         * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1076         support for subgroups and subgroup-titles.
1077         * src/main/webapp/style.css: Add CSS class for subgroups and
1078         subgroup-titles.
1079
1080 2011-08-12  Ben Konrath  <ben@bagu.org>
1081
1082         Return the top level LayoutGroup title.
1083
1084         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1085
1086 2011-08-11  Ben Konrath  <ben@bagu.org>
1087
1088         Make the TableSelector header match the mockup.
1089
1090         * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1091         the layout panel. Properly lineup the table selection header with
1092         the list and details view.
1093         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1094         margin around the details view.
1095         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1096         Rename listBox variable to tableSelector. Set id for the style sheet.
1097         Use a FlowPanel instead of a HorizontalPanel.
1098         * src/main/webapp/style.css: Add properties to make the TableSelector
1099         box match the mockups.
1100
1101 2011-07-13  Ben Konrath  <ben@bagu.org>
1102
1103         Update install script for java-libglom version change.
1104
1105         * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1106         java-libglom fails.
1107
1108 2011-07-13  Ben Konrath  <ben@bagu.org>
1109
1110         Add support sub-group in the details view.
1111
1112         I also removed the code that special-cased the default details view
1113         layout. See:
1114
1115         http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1116
1117         I still have to make a proper flowtable.
1118
1119         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1120         Don't special-case default details view layout.
1121         * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1122         addLayoutField() as I'm going to use it.
1123         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1124         GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1125         method.
1126         * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1127         extracted from DetailsViewImpl.GroupPanel. Add support for
1128         sub-groups.
1129         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1130         column count when getting the details layout.
1131
1132 2011-07-12  Ben Konrath  <ben@bagu.org>
1133
1134         Set browser title with database and table titles.
1135
1136         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1137         Set the browser title when the table changes and when the activity
1138         first starts.
1139         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1140         title when retrieving document info (the GlomDocument object).
1141         * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1142         with getter and setter methods. Remove unused convenience constructor.
1143         Use default code formatting.
1144
1145 2011-07-12  Ben Konrath  <ben@bagu.org>
1146
1147         Ignore LayoutItemPortals in the details view.
1148
1149         I added a new DTO for the LayoutItemPortal so that I can ignore it in
1150         the client code.
1151
1152         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1153         LayoutItemPortal layout objects.
1154         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1155         LayoutItemPortal objects when retrieving the details layout.
1156         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1157         file. This is an empty class and just used to get type information for
1158         now.
1159
1160 2011-07-12  Ben Konrath  <ben@bagu.org>
1161
1162         Use java-libglom 1.17.0.
1163
1164         * pom.xml:
1165
1166 2011-07-11  Ben Konrath  <ben@bagu.org>
1167
1168         Remove "Table:" label from table selector.
1169
1170         This matches a recent change in the Glom UI.
1171
1172         * mockups/details-contacts.html:
1173         * mockups/details-projects.html:
1174         * mockups/listview-contacts.html:
1175         * mockups/listview-projects.html: Remove the "Table:" label from the
1176         mockups as well.
1177         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1178
1179 2011-07-11  Ben Konrath  <ben@bagu.org>
1180
1181         Add main groups to the details view.
1182
1183         This makes things look a little nicer in the details view. The next step
1184         is to implement the flowtable.
1185
1186         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1187         resources from the standard gwt css theme. Standard.css is now
1188         included in OnlineGlom.html so that the online glom css rules have
1189         precedence over the gwt theme.
1190         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1191         the whole LayoutGroup to the DetailsView instead of just the titles.
1192         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1193         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1194         details layout with a helper class (GroupPanel). I might extract this
1195         class when I make the full flowtable.
1196         * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1197         string as default so I don't have to worry about NPEs when processing
1198         the layout objects.
1199         * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1200         note beside OnlineGlom.gwt.xml above).
1201         * src/main/webapp/style.css: Add default font-size to body to override
1202         the font-size set by the standard theme. Don't use h2 tags for
1203         group-title. Create new details-cell class.
1204
1205 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
1206
1207         ConfiguredDocument: Set the port number too.
1208
1209         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1210         (ConfiguredDocument.ConfiguredDocument): Get the port number from the 
1211         Glom document. Presumably this worked sometimes so far because there is a 
1212         default port number.
1213
1214 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
1215
1216         ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1217
1218         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1219         (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is 
1220         correct, though we should throw an exception too.
1221
1222 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
1223
1224         Fix a addDocuemnt typo.
1225
1226         * src/main/java/org/glom/web/shared/Documents.java
1227         (Documents.addDocuemnt): Rename to addDocument().
1228         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1229         (OnlineGlomServiceImpl.getDocuments): Adapt.
1230         
1231 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
1232
1233         Slightly improved log output when connection fails.
1234
1235         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1236         (ConfiguredDocument.setUsernameAndPassword):
1237         We don't know for sure if it' the username/password that's wrong, so 
1238         rephrase the message.
1239         Also ouput the exception message, though it's generic in this case.
1240
1241 2011-07-08  Ben Konrath  <ben@bagu.org>
1242
1243         Cleanup comments.
1244
1245         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1246         added braces to a one line if statement because the Eclipse formatter
1247         was getting confused.
1248
1249 2011-07-07  Ben Konrath  <ben@bagu.org>
1250
1251         Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1252
1253         These should really be two separate tasks but I counldn't get things to
1254         work with GWT 2.2.0 and Eclipse 3.7.
1255
1256         * .classpath:
1257         * .project:
1258         * .settings/org.eclipse.jdt.core.prefs:
1259         * .settings/org.eclipse.jdt.ui.prefs:
1260         * .settings/org.eclipse.ltk.core.refactoring.prefs:
1261         * .settings/org.eclipse.m2e.core.prefs:
1262         Add new config files. Update current files. Remove references to the
1263         webtools plugins as we're not using any of the webtools features.
1264         * .gitignore: Add logs directory which is created when running with
1265         'mvn gwt:run'.
1266         * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1267         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1268         src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1269         limitation:
1270         http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1271
1272 2011-07-07  Murray Cumming  <murrayc@murrayc.com>
1273
1274         onlineglom.properties: Add explanatory comments.
1275
1276         * src/main/resources/onlineglom.properties: Also change the default user 
1277         from ben to someuser, to avoid the risk of people thinking we just 
1278         stupidly hard-coded a locale path, when they see that on stderr or in a log.
1279
1280 2011-06-28  Ben Konrath  <ben@bagu.org>
1281
1282         Use filename in Log for incorrect passwords.
1283
1284         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1285         getFileName(String) method to get the filename from the URI.
1286
1287 2011-06-28  Ben Konrath  <ben@bagu.org>
1288
1289         Add the table name to the URL token for the ListPlace.
1290
1291         This makes things consistent between the DetailsPlace and the
1292         ListPlace. It also allows the the ListPlace to be bookmarked.
1293
1294         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1295         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1296         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1297         Remove getDefaultListLayout(). The default layout is now returned
1298         by the getListLayout() method when the table name is an empty string.
1299         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1300         Add table name field. Change to a new ListPlace when the table
1301         has been changed. Use getListLayout() for getting the default
1302         list layout.
1303         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1304         Add table name field. Set the correct table name in the list box
1305         when loading from bookmark. This corrects a problem for the
1306         DetailsPlace too.
1307         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1308         Move table name to super-class (HasSelectableTable). Move document
1309         and table URL keys to super-class in HasSelectableTable.
1310         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1311         Add table name field. Add Tokenizer class with URL key common to
1312         the subclasses (DetailsPlace and ListPlace).
1313         * src/main/java/org/glom/web/client/place/ListPlace.java:
1314         Add table name. Add code to parse the URL token.
1315         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1316         Update ListPlace construction with empty table name string.
1317         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1318         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1319         Change setTableSelectedIndex(int) to setSelectedTableName(String).
1320         Update ListPlace construction with table name string.
1321         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1322         Change defaultTableName field to tableName to reflect how it's now
1323         used. Update the getter and setter methods.
1324
1325 2011-06-28  Ben Konrath  <ben@bagu.org>
1326
1327         Enable the table selector in the DetailsView.
1328
1329         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1330         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1331         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1332         Remove getDefaultDetailsLayout(). The default layout is now returned
1333         by the getDetailsLayout() method when the table name is an empty
1334         string.
1335         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1336         event handler for table change event. Change to using
1337         getDetailsLayout() for the default details layout.
1338         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1339         name to URL token.
1340         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1341         when navigating to the details place.
1342
1343 2011-06-27  Ben Konrath  <ben@bagu.org>
1344
1345         Use filename based unique document ID in URL and for RPC.
1346
1347         The document ID is the glom document name with spaces (' ') replaced
1348         with pluses ('+') and without the .glom extension.
1349
1350         This change is mostly a string substitution of 'documentTitle' for
1351         'documentID'. The only code change is the addition of a Documents DTO to get the
1352         filename to document title mappings as indicated below.
1353
1354         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1355         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1356         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1357         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1358         Use Documents DTO to create the document links in the document
1359         selection view.
1360         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1361         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1362         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1363         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1364         * src/main/java/org/glom/web/client/place/ListPlace.java:
1365         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1366         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1367         * src/main/java/org/glom/web/client/ui/ListView.java:
1368         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1369         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1370         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1371         * src/main/java/org/glom/web/server/Log.java:
1372         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1373         getDocumentTitles() to getDocuments() and return the Documents DTO.
1374         * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1375         transferring the filename to document title mappings.
1376
1377 2011-06-25  Ben Konrath  <ben@bagu.org>
1378
1379         Make the authentication popup work again.
1380
1381         This bug was introduced when I extracted ConfiguredDocument to its own class.
1382
1383         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1384         correct success / fail status in setUsernameAndPassword().
1385
1386 2011-06-25  Ben Konrath  <ben@bagu.org>
1387
1388         Use filename as unique key for configuring database usernames and passwords.
1389
1390         This replaces the use of the Glom document title which could change
1391         depending on the locale. Thanks to Murray Cumming for pointing out this
1392         problem.
1393
1394         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1395         * src/main/resources/onlineglom.properties:
1396
1397 2011-06-24  Ben Konrath  <ben@bagu.org>
1398
1399         Pass primary key value to DetailsView.
1400
1401         This enables the DetailsView to load the correct data.
1402
1403         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1404         primary key value field and set in constructor. Pass primary key
1405         value to getDetailsData().
1406         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1407         variables for document title and primary key value.
1408         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1409         key value to the DetailsPlace.
1410
1411 2011-06-24  Ben Konrath  <ben@bagu.org>
1412
1413         Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1414
1415         This allows the primary key to be retrieved by the Details button. This
1416         functionality has not been implemented yet but it's in the works.
1417
1418         * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1419         the LayoutGroup result to ListView.setCellTable instead of all of its
1420         fields individually.
1421         * src/main/java/org/glom/web/client/ui/ListView.java:
1422         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1423         LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1424         get the primary key for the table.
1425         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1426         index of the primary key in the LayoutGroup accounting for hidden
1427         primary keys. Rename getJavaNumberFormat() to
1428         convertToJavaNumberFormat() for consistency. Cleanup / add some
1429         comments.
1430         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1431         field for primary key index and a field to indicate whether the
1432         primary key is hidden or not.
1433
1434 2011-06-23  Ben Konrath  <ben@bagu.org>
1435
1436         Rename getTableData methods to getListData.
1437
1438         This is a rename refactor for consistency with other methods.
1439
1440         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1441         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1442         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1443         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1444
1445 2011-06-23  Ben Konrath  <ben@bagu.org>
1446
1447         Extract the ConfiguredDocument innerclass into its own class.
1448
1449         This makes the servlet code more object oriented.
1450
1451         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1452         from private ConfiguredDocument class in OnlineGlomServiceImpl.
1453         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1454         new ConfiguredDocument class.
1455
1456 2011-06-21  Ben Konrath  <ben@bagu.org>
1457
1458         Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1459
1460         This makes things more inline with how libglom works and reduces code
1461         duplication. This refactor lays the groundwork for adding the primary key to
1462         the LayoutGroup object.
1463
1464         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1465         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1466         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1467         Change method names to getListLayout and getDefaultListLayout for
1468         consistency. Use LayoutGroup as the DTO for the list layout instead of
1469         ColumnInfo and LayoutListTable.
1470         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1471         new method names along with the LayoutGroup object for transferring the
1472         list layout.
1473         * src/main/java/org/glom/web/client/ui/ListView.java:
1474         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1475         Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1476         * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1477         with LayoutGroup.
1478         * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1479         Replaced with LayoutGroup.
1480         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1481         expectedResultSize and defaultTableName fields which are needed for
1482         the list layout.
1483         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1484         type field which is needed for the list layout but will also be
1485         useful for the details layout as things progress.
1486         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1487         Make class abstract. Remove the unnecessary
1488         getFormattingHorizontalAlignment method. Add setFormatting method.
1489
1490 2011-06-16  Ben Konrath  <ben@bagu.org>
1491
1492         Add scripts for building and installing war.
1493
1494         These will help when updating OnlineGlom but they're also good
1495         supplemental documentation of the build and deployment proceeding.
1496
1497         * utils/build-onlineglom-war.sh: New file.
1498         * utils/install-onlineglom-war.sh: New file.
1499
1500 2011-06-16  Ben Konrath  <ben@bagu.org>
1501
1502         Create wrapper class to create consistent log messages.
1503
1504         I wrapped methods in the Log class of gwt-log to add the method names
1505         from the servlet and create consistent formatting of the document title
1506         and table names in the log messages.
1507
1508         * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1509         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1510         log methods to use methods from wrapped Log class.
1511
1512 2011-06-16  Ben Konrath  <ben@bagu.org>
1513
1514         Remove superfluous conditional return.
1515
1516         Thanks to Murray Cumming for pointing this out!
1517
1518         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1519
1520 2011-06-15  Ben Konrath  <ben@bagu.org>
1521
1522         Return an ArrayList of LayoutGroups for the Details layout.
1523
1524         This corrects a problem with the details layout as it can have more
1525         than one top level LayoutGroup.
1526
1527         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1528         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1529         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1530         an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1531         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1532         with ArrayList of LayoutGroups for the details view layout.
1533         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1534         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1535         ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1536         getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1537         the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1538         getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1539
1540 2011-06-14  Ben Konrath  <ben@bagu.org>
1541
1542         Use cast_dynamic method to determine the libglom LayoutItem type.
1543
1544         This is better than finding the LayoutItem type by using the string
1545         returned from the get_part_type_name() method.
1546
1547         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1548
1549 2011-06-14  Ben Konrath  <ben@bagu.org>
1550
1551         Add method names to log entries in the servlet.
1552
1553         This helps when tracking down deployment problems.
1554
1555         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1556
1557 2011-06-14  Ben Konrath  <ben@bagu.org>
1558
1559         Add data to the DetailsView using a hard-coded primary key value.
1560
1561         The layout and functionality of the DetailsView is not complete. This
1562         is just a checkpoint so the patch doesn't get too big.
1563
1564         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1565         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1566         Add getDetailsData() servlet method.
1567         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1568         Add RPC to getDetailsData(). Change the way the LayoutGroups and
1569         LayoutFields are added to the DetailsView.
1570         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1571         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1572         Add setData() method. Change addLayoutGroup() and addLayoutField() to
1573         take the string for the title instead of the object.
1574         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1575         Add implementation getDetailsData() along with some private helper
1576         methods.
1577         * src/main/webapp/style.css: Add padding to details-data class. Add a
1578         details-label class with the same padding as the details-data class.
1579
1580 2011-06-03  Ben Konrath  <ben@bagu.org>
1581
1582         Use presenter.goTo() to change to the DetailsPlace.
1583
1584         This will make things easier when we need to open the DetailsView with
1585         data specific to the row that was clicked.
1586
1587         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1588
1589 2011-06-02  Ben Konrath  <ben@bagu.org>
1590
1591         Add CSS file from mockups.
1592
1593         I'm adding this now because it's going to be useful to have when
1594         developing the DetailsView. The TableSelectionView and ListView aren't
1595         setup properly yet.
1596
1597         * src/main/webapp/OnlineGlom.html:
1598         * src/main/webapp/style.css:
1599
1600 2011-06-02  Ben Konrath  <ben@bagu.org>
1601
1602         Use String.isEmpty() to check for empty string.
1603
1604         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1605
1606 2011-06-02  Ben Konrath  <ben@bagu.org>
1607
1608         Display main layout group titles in the DetailsView.
1609
1610         This is the start of the DetailsActivity/DetailsView implementation.
1611
1612         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1613         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1614         Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1615         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1616         Get the layout information for the details view from the server and set
1617         the main layout group titles.
1618         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1619         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1620         Add addLayoutGroup() and addLayoutField() methods. This are just
1621         temporary methods for creating the the details view that will change
1622         in the future.
1623         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1624         Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1625         methods.
1626         * src/main/java/org/glom/web/shared/layout/Formatting.java:
1627         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1628         * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1629         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1630         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1631         Data Transfer Objects that mimic the libglom object structure. These are
1632         used for transferring the details layout but could also be used for
1633         transferring the list layout.
1634
1635 2011-05-27  Ben Konrath  <ben@bagu.org>
1636
1637         Reset the AuthenticationPopup when clearing the ListView.
1638
1639         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1640
1641 2011-05-27  Ben Konrath  <ben@bagu.org>
1642
1643         Fix problem with onlineglom.properties file loading.
1644
1645         The old way worked in Eclipse but not on the server. Loading the
1646         onlineglom.properties file now works in Eclipse and on the server.
1647
1648         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1649
1650 2011-05-24  Ben Konrath  <ben@bagu.org>
1651
1652         Update gwt-log from 3.1.0 to 3.1.2.
1653
1654         Gwt-log 3.1.0 has been marked as depreciated.
1655
1656         * pom.xml:
1657
1658 2011-05-24  Ben Konrath  <ben@bagu.org>
1659
1660         Add comment to ListActivity.goTo() method.
1661
1662         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1663
1664 2011-05-24  Ben Konrath  <ben@bagu.org>
1665
1666         Remove FIXME in convertGdkColorToHtmlColour()
1667
1668         The Gdk::Color value returned by libglom is 16-bits per channel on both
1669         64 and 32-bit platforms.
1670
1671         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1672
1673 2011-05-19  Ben Konrath  <ben@bagu.org>
1674
1675         Improve performance of initial ListView load.
1676
1677         I removed a round trip to the server for getting the default table name
1678         and then requesting information about that table. This also removes a potential
1679         problem with the table change handler not being setup in time to receive the
1680         table change event from the ListActivity.
1681
1682         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1683         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1684         getDefaultLayoutListTable() method. Improve comments.
1685         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1686         getDefaultLayoutListTable() method instead of firing a table change
1687         event to get the table to load.
1688         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1689         implementation of getDefaultLayoutListTable() method.
1690         * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1691         table name.
1692
1693 2011-05-19  Ben Konrath  <ben@bagu.org>
1694
1695         Override toDebugString() in TableChangeEvent.
1696
1697         This is useful to have for debugging.
1698
1699         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1700
1701 2011-05-19  Ben Konrath  <ben@bagu.org>
1702
1703         Add a "Back to List" link when at the DetailsPlace.
1704
1705         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1706         Populate the CellTable based on the selected table of the ListBox if
1707         it's set otherwise use the default table. This allows the "Back to
1708         List" link to work.
1709         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1710         Remove Place from constructors. Add a setPlace() method. Add
1711         goToPlace() method. Set class as presenter for TableSelectionView.
1712         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1713         Use the same TableSelectionActivity when switching between the List and
1714         Details Places.
1715         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1716         Subclass the new HasSelectableTablePlace. This removes some duplicate
1717         code.
1718         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1719         New class to represent Places that display the TableSelectionView.
1720         * src/main/java/org/glom/web/client/place/ListPlace.java:
1721         Subclass the new HasSelectableTablePlace. This removes some duplicate
1722         code.
1723         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1724         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1725         Add Presenter interface. Add setBackLinkVisible() method. Add
1726         setBackLink() method.
1727
1728 2011-05-18  Ben Konrath  <ben@bagu.org>
1729
1730         Enable the "Details" buttons.
1731
1732         Right now only an empty details view is displayed.
1733
1734         * src/main/java/org/glom/web/client/ClientFactory.java:
1735         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1736         Add DetailsView to ClientFactory.
1737         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1738         A basic activity for the details view.
1739         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1740         Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1741         clearView().
1742         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1743         Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1744         GWT.
1745         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1746         Create a new DetailsActivity when a DetailsPlace is requested. Remove
1747         unnecessary super() in constructor.
1748         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1749         Create a new TableSelectionActivity when a DetailsPlace is requested. We
1750         really shouldn't create a new TableSelectionActivity for both the ListPlace
1751         and the DetailsPlace so this should be considered a temporary solution.
1752         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1753         New file. Represents a URL for the details view.
1754         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1755         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1756         A basic details view interface and implementation.
1757         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1758         Enable the "Details" buttons.
1759
1760 2011-05-12  Ben Konrath  <ben@bagu.org>
1761
1762         Use a LayoutPanel with multiple display areas for main layout.
1763
1764         This is mostly a refactor in that there are no changes from the user
1765         point of view. These changes are required so that we can swap out the list view
1766         with the details view when the user clicks the "Details" button.
1767
1768         * src/main/java/org/glom/web/client/ClientFactory.java:
1769         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1770         OnlineGlomView. Add TableSelectionView, ListView and
1771         AuthenticationPopup.
1772         * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1773         for main layout. Add display regions for main activities. Add
1774         activity manager for for main activities.
1775         * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1776         file from parts of the deleted OnlineGlomActivity.
1777         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1778         New file from parts of the deleted OnlineGlomActivity.
1779         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1780         * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1781         New files for app wide table change event.
1782         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1783         * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1784         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1785         Activity mappers for the main activities replace the deleted app-wide
1786         AppActivityMapper.
1787         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1788         Fix a spelling error in he comment.
1789         * src/main/java/org/glom/web/client/ui/ListView.java:
1790         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1791         Renamed from LayoutListView and modified for MVP. This still not a
1792         proper dumb view as prescribed by the MVP pattern but it works for now.
1793         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1794         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1795         New widget stripped out of the deleted OnlineGlomView.
1796         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1797         Remove hack that is fixed by this patch.
1798
1799 2011-05-06  Ben Konrath  <ben@bagu.org>
1800
1801         Rename OnlineGlomPlace to ListPlace.
1802
1803         The only change besides the rename is that url will now display #list
1804         instead of #Document.
1805
1806         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1807         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1808         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1809         * src/main/java/org/glom/web/client/place/ListPlace.java:
1810         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1811
1812 2011-05-06  Ben Konrath  <ben@bagu.org>
1813
1814         Use Presenter for app navigation.
1815
1816         This is the proper way to deal with Place (URL) changes with the MVP
1817         framework.
1818
1819         * src/main/java/org/glom/web/client/ClientFactory.java:
1820         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1821         PlaceHistoryMapper and PlaceHistoryHandler.
1822         * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1823         PlaceHistoryMapper and PlaceHistoryHandler.
1824         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1825         Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1826         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1827         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1828         Add Presenter interface and setPresenter methods. Rename addHyperLink
1829         to addDocumentLink taking only the document title as a parameter.
1830
1831 2011-04-14  Ben Konrath  <ben@bagu.org>
1832
1833         Prompt for db username/password if they haven't been set.
1834
1835         This is implemented with a popup widget that is contained within the
1836         OnlineGlomView and managed by the OnlineGlomActivity.
1837
1838         * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1839         methods for checking and setting the database username and password.
1840         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1841         new methods for checking and setting the database username and
1842         password.
1843         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1844         Display authentication popup if the JDBC connection to the database
1845         has not been authenticated.
1846         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1847         file.
1848         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1849         for dealing with the authentication popup.
1850         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1851         Implement the methods for dealing with the authentication popup.
1852         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1853         try to executed queries if the database connection hasn't been
1854         authenticated. Implement methods for checking and setting the
1855         database username and password.
1856
1857 2011-04-12  Ben Konrath  <ben@bagu.org>
1858
1859         Make log messages a little clearer.
1860
1861         Add a dash betweeen the document title and the table name.
1862
1863         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1864
1865 2011-04-12  Ben Konrath  <ben@bagu.org>
1866
1867         Protect against NPEs when cleaning up database resources.
1868
1869         While this isn't strictly necessary because the exception is caught,
1870         not protecting against the NPEs makes it harder to find the real error
1871         in the log file.
1872
1873         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1874
1875 2011-04-12  Ben Konrath  <ben@bagu.org>
1876
1877         Move configuration of the servlet to the constructor.
1878
1879         The servlet will be initialized even if the database authentication
1880         information is not set or correct. I still need to add the UI for prompting
1881         the user for the authentication information when it's required.
1882
1883         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1884         javadocs for getDocumentTitles() method.
1885         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1886         Set error message when RPC fails.
1887         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1888         glom files directory from the configuration file. Try to set the
1889         database authentication information for the specific document if it's
1890         set and works otherwise try to use the global authentication
1891         information set for the directory.
1892         * src/main/resources/onlineglom.properties: Moved from
1893         src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1894         Added detailed comments for the new keys.
1895
1896 2011-04-11  Ben Konrath  <ben@bagu.org>
1897
1898         Remove unnecessary @Override in DocumentSelectionViewImpl.
1899
1900         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1901
1902 2011-04-11  Ben Konrath  <ben@bagu.org>
1903
1904         Remove center alignment in DocumentSelectionView.
1905
1906         The title element is still centred but the document titles and bottom
1907         sentence are both left-aligned.
1908
1909         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1910
1911 2011-04-11  Ben Konrath  <ben@bagu.org>
1912
1913         Change 'Demo' naming convention to 'Document'.
1914
1915         This is just a rename refactor with no functional changes to the code.
1916
1917         * src/main/java/org/glom/web/client/ClientFactory.java:
1918         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1919         * src/main/java/org/glom/web/client/OnlineGlom.java:
1920         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1921         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1922         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1923         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1924         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1925         * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1926         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1927         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1928         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1929         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1930
1931 2011-04-08  Ben Konrath  <ben@bagu.org>
1932
1933         Remove FIXME from safeLongToInt() method.
1934
1935         Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1936         this method.
1937
1938         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1939
1940 2011-04-08  Ben Konrath  <ben@bagu.org>
1941
1942         Display an error if no glom documents are found in the specified directory.
1943
1944         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1945         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1946         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1947         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1948
1949 2011-04-08  Ben Konrath  <ben@bagu.org>
1950
1951         Add copyright header to one more file ... oops.
1952
1953         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1954
1955 2011-04-08  Ben Konrath  <ben@bagu.org>
1956
1957         Add copyright header to files without it.
1958
1959         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1960         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1961         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1962         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1963         * src/main/java/org/glom/web/shared/ColumnInfo.java:
1964         * src/main/java/org/glom/web/shared/GlomField.java:
1965
1966 2011-04-08  Ben Konrath  <ben@bagu.org>
1967
1968         Add support for accessing multiple glom documents in the servlet.
1969
1970         This completes the demo selection functionality.
1971
1972         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1973         document title to methods.
1974         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1975         document title to methods.
1976         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1977         Set browser window title when the activity starts. Correct name of
1978         document title variable.
1979         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1980         Set browser window title when the activity starts. Set the table
1981         selector change handler after table selector has been set. Clear the
1982         OnlineGlomView when the activity has been stopped.
1983         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1984         document title as the place token. Use "#Document:" instead of
1985         "#OnlineGlomPlace:" in the URL.
1986         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1987         Change heading to "Online Glom"
1988         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1989         document title in RPC methods.
1990         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1991         setDocumentTitle() method. Add clear() method.
1992         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1993         setDocumentTitle() method. Implement clear() method which removes the
1994         change handler on the ListBox, clears the ListBox and clears the
1995         DataPanel.
1996         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1997         Implement methods with document title. Keep track for the configured
1998         glom documents and their corresponding JDBC configurations in a hash
1999         table. This information is retrieved using the document title as the
2000         key in the hash table.
2001         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2002         document title field as it's no longer needed.
2003
2004 2011-04-08  Ben Konrath  <ben@bagu.org>
2005
2006         Update the Eclipse JDT configuration.
2007
2008         * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2009         methods. Automatically add the copyright header to new files.
2010
2011 2011-04-05  Ben Konrath  <ben@bagu.org>
2012
2013         Add new page for demo selection.
2014
2015         This patch adds all the components required to view and start an
2016         OnlineGlom demo by clicking on the desired hyperlink. The user is
2017         able to return to the demo selection page with the browser's back
2018         button. I still need to modify the servlet to work with multiple
2019         documents so all demo links will load the file defined in the
2020         OnlineGlom.properties.
2021
2022         * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2023         This is only useful during development so we don't need to save it.
2024         * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2025         get a reference to the DemoSelectionView.
2026         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2027         method to get a reference to the DemoSelectionView.
2028         * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2029         default view to DemoSelectionView.
2030         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2031         to get glom document titles for glom files in a hard-coded directory.
2032         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2033         method to get glom document titles for glom files in a hard-coded
2034         directory.
2035         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2036         Presenter for DemoSelectionView.
2037         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2038         for DemoSelectionView.
2039         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2040         Update for DemoSelectionView.
2041         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2042         Basic 'Place' implementation for the DemoSelectionView.
2043         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2044         The interface for the DemoSelectionView.
2045         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2046         The implementation of the DemoSelectionView.
2047         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2048         The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2049         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2050         implementation of method to get glom document titles for glom files
2051         in a hard-coded directory.
2052         * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2053         on longer being used.
2054         * src/main/webapp/glom.png: Glom logo.
2055
2056 2011-04-05  Ben Konrath  <ben@bagu.org>
2057
2058         Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2059
2060         This is the forth and final commit of a refactor that will allow
2061         OnlineGlom to be used with multiple documents.
2062
2063         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2064         Move RPC code from OnlineGlomViewImpl to this class.
2065         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2066         to inferface.
2067         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2068         RPC code to the presenter class (the P in MVP).
2069
2070 2011-04-04  Ben Konrath  <ben@bagu.org>
2071
2072         Start moving the existing OnlineGlom code to MVP.
2073
2074         This work is based on the GWT MVP framework that is documented here:
2075
2076         https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2077
2078         This is the third commit of a refactor that will allow OnlineGlom to
2079         be used with multiple documents.
2080
2081         * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2082         Interface for client factory which is used to get instances of various
2083         classes throughout the app.
2084         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2085         Implementation of client factory.
2086         * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2087         initialize the MVP framework.
2088         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2089         New file. Activity manager for the main container widget. This is the
2090         Presenter in MVP.
2091         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2092         Maps place (URL) to its corresponding activity.
2093         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2094         New file. This is just a place holder for a generated file.
2095         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2096         New file. Represents the URL for the main Online Glom app.
2097         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2098         for changes in LayoutListViewImpl.
2099         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2100         interface for View. Move code to OnlineGlomViewImpl class.
2101         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2102         file. Implementation of OnlineGlomView.
2103         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2104         Place resources. Use ClientFactoryImpl by default.
2105
2106 2011-04-04  Ben Konrath  <ben@bagu.org>
2107
2108         Move View classes to their own package.
2109
2110         This is the second commit of a refactor that will allow OnlineGlom to
2111         be used with multiple documents.
2112
2113         * src/main/java/org/glom/web/client/OnlineGlom.java:
2114         * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2115         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2116
2117 2011-04-02  Ben Konrath  <ben@bagu.org>
2118
2119         Move UI code from the main module to its own class.
2120
2121         This is the first commit of a refactor that will allow OnlineGlom to be
2122         used with multiple documents.
2123
2124         * src/main/java/org/glom/web/client/LayoutListView.java: Update
2125         references to OnlineGlom to OnlineGlomView.
2126         * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2127         OnlineGlomView and instantiate it here.
2128         * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2129         represents the main OnlineGlomView with one document.
2130
2131 2011-04-01  Ben Konrath  <ben@bagu.org>
2132
2133         Fix formatting of gwt.xml and add DTD.
2134
2135         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2136
2137 2011-03-30  Ben Konrath  <ben@bagu.org>
2138
2139         Propperly convert gdkColor string to html colour string.
2140
2141         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2142
2143 2011-03-28  Ben Konrath  <ben@bagu.org>
2144
2145         Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2146
2147         This implementation matches
2148         OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2149         readable and is not tied to Swig.
2150
2151         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2152
2153 2011-03-28  Ben Konrath  <ben@bagu.org>
2154
2155         Use read-only checkboxes for boolean field types.
2156
2157         * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2158         in the CellTable based on the field type. It currently only
2159         distinguishes between boolean and text columns but I'll need to add
2160         support for more types.
2161         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2162         column type in the ColumnInfo object. Add method to convert between the
2163         glom field type enum in ColumnInfo and the glom field type in libglom.
2164         * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2165         field type.
2166         * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2167         getting and setting booleans.
2168
2169 2011-03-25  Ben Konrath  <ben@bagu.org>
2170
2171         Don't get the Date twice from the ResultSet.
2172
2173         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2174
2175 2011-03-25  Ben Konrath  <ben@bagu.org>
2176
2177         Cleanup code in the servlet.
2178
2179         * TODO: Remove item about row count. Add item about testing row count
2180         query with large number of rows.
2181         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2182         spelling mistakes, change method parameter to be consistent with
2183         other methods.
2184
2185 2011-03-25  Ben Konrath  <ben@bagu.org>
2186
2187         Add server side logging with the gwt-log library.
2188
2189         * .gitignore: Ignore the log file we're now producing.
2190         * TODO: Add a couple TODO item for logging.
2191         * pom.xml: Add gwt-log and log4j as a dependency.
2192         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2193         logging of errors, warnings and some important info.
2194         * src/main/resources/log4j.properties: New file to configure log4j.
2195
2196 2011-03-24  Ben Konrath  <ben@bagu.org>
2197
2198         Add a disable button for the Details view.
2199
2200         * src/main/java/org/glom/web/client/LayoutListView.java:
2201
2202 2011-03-22  Ben Konrath  <ben@bagu.org>
2203
2204         Use a count query to get the number of rows for the list view pager.
2205
2206         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2207
2208 2011-03-22  Ben Konrath  <ben@bagu.org>
2209
2210         Add more TODO information about CellTable pager positioning. 
2211
2212         * TODO:
2213
2214 2011-03-19  Ben Konrath  <ben@bagu.org>
2215
2216         Add TODO item about CellTable pager positioning.
2217
2218         * TODO:
2219
2220 2011-03-18  Ben Konrath  <ben@bagu.org>
2221
2222         Remove unneeded GlomFieldColumn class.
2223
2224         This is just a small code cleanup.
2225
2226         * src/main/java/org/glom/web/client/LayoutListView.java:
2227
2228 2011-03-18  Ben Konrath  <ben@bagu.org>
2229
2230         Use cursor mode in the query that gets data for the list view.
2231
2232         I still need to fix the potential memory problem when getting the row
2233         count for the list view.
2234
2235         * TODO: Add note about testing memory usage with large data sets. Add
2236         item about fixing row counting with large data sets.
2237         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2238         PostgreSQL JDBC driver into cursor mode when getting data for the
2239         list view.
2240
2241 2011-03-15  Ben Konrath  <ben@bagu.org>
2242
2243         Remove the GWT Container from the Eclipse build classpath.
2244
2245         The GWT dependencies are set by Maven so this isn't needed.
2246
2247         * .classpath:
2248
2249 2011-03-15  Murray Cumming  <murrayc@murrayc.com>
2250
2251         Added some earlier mockups to git, but not to the tarball dist.
2252
2253         * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2254         Openismus. These hopefully show how we might structure the HTML so that
2255         it can be styled easily with CSS. However, we probably need to adapt them
2256         for the CSS structure that GWT dictates for common widgets.
2257
2258 2011-03-14  Ben Konrath  <ben@bagu.org>
2259
2260         Locate OnlineGlom.properties using the ServletContext.
2261
2262         This is required to be able to locate the file in the deployed servlet.
2263
2264         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2265         Configure the database and glom document in in a helper method so
2266         that the ServletContext can be used to locate OnlineGlom.properties.
2267         * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2268         src/main/webapp. This is the proper location for .properites files.
2269
2270 2011-03-12  Ben Konrath  <ben@bagu.org>
2271
2272         Add note to README about why we're compiling down to obfuscated JavaScript.
2273
2274         * README:
2275
2276 2011-03-11  Ben Konrath  <ben@bagu.org>
2277
2278         Use properties file to configure servlet.
2279
2280         This allows people to change the glom file path, db username and db
2281         password without recompiling the code.
2282
2283         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2284         * src/main/webapp/OnlineGlom.properties:
2285
2286 2011-03-11  Ben Konrath  <ben@bagu.org>
2287
2288         Use table fields in layout list view if the layout list is not defined.
2289
2290         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2291         Manually create a LayoutFieldVector for the query builder using the
2292         table fields when a layout list is not defined in the glom file.
2293
2294 2011-03-11  Ben Konrath  <ben@bagu.org>
2295
2296         Only show FIXME string for images when there's an image.
2297
2298         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2299         in this change are some small code cleanups.
2300
2301 2011-03-11  Ben Konrath  <ben@bagu.org>
2302
2303         Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2304
2305         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2306
2307 2011-03-11  Ben Konrath  <ben@bagu.org>
2308
2309         Correctly set the index of the default table.
2310
2311         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2312         Correctly set the index of the default table. Add commented out example
2313         file paths.
2314
2315 2011-03-10  Ben Konrath  <ben@bagu.org>
2316
2317         Add comment to pom.xml about the previous change.
2318
2319         * pom.xml: Add comment about the deployment issue so that it's obvious
2320         why java-libglom is set to the provided scope.
2321
2322 2011-03-10  Ben Konrath  <ben@bagu.org>
2323
2324         Change java-libglom dependency from compile to provided in pom.xml.
2325
2326         Since java-libglom uses jni it can only be loaded once and therefore
2327         must be placed in $CATALINA_HOME/lib and not included in each war.
2328         This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2329         More information about this issue can be found in the Tomcat 6 release
2330         notes in the "JNI Based Applications" section:
2331
2332         http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2333
2334         * README: Remove note about this issue. Deployment info should really
2335         be on the wiki anyway so I'll add it right now.
2336         * pom.xml: Change java-libglom dependency from compile to provided so
2337         that it's copied in to the packaged war.
2338
2339 2011-03-09  Ben Konrath  <ben@bagu.org>
2340
2341         Change to using a neutral locale for currency, date and time formatting.
2342
2343         This solves the problem of currency values being represented without a
2344         space between the currency code and the number (e.g. "EUR5.89" is now
2345         represented as "EUR 5.89"). More work is required when we implement
2346         a locale preference setting.
2347
2348         * TODO: Add note about currency formatting issues with different
2349         locales.
2350         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2351         to using the neutral ROOT locale.
2352
2353 2011-03-09  Ben Konrath  <ben@bagu.org>
2354
2355         Add support for currency codes that are not ISO 4217 codes.
2356
2357         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2358         the currency code defined in the glom file when it's not 3 characters
2359         long or when Java doesn't recognize the string as an ISO 4217 code.
2360
2361 2011-03-08  Ben Konrath  <ben@bagu.org>
2362
2363         Remove test classes, launch configurations and configuration.
2364
2365         The test stuff was getting in the way when creating the war. To make
2366         the war file you can now do 'mvn clean package'. The packaged war file
2367         will be in the target directory.
2368
2369         * .classpath: Remove unused classpathentry for tests and i18n.
2370         * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2371         property. Don't run test or i18n goals when packaging the war.
2372         * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2373         formatting.
2374
2375         Removed files:
2376
2377         * OnlineGlomTest-dev.launch:
2378         * OnlineGlomTest-prod.launch:
2379         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2380         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2381
2382 2011-03-07  Ben Konrath  <ben@bagu.org>
2383
2384         Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2385
2386         These fixes allow me to use 'mvn deploy' to create the war file.
2387
2388         * .classpath: This generated config has been updated by Eclipse. This
2389         change was probably triggered by me updating from Eclipse 3.6.1 to
2390         3.6.2.
2391         * .gitignore: Add entry to ignore the directory
2392         src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2393         * .project: The generated config has been updated by Eclipse. This
2394         change was probably triggered by me updating from Eclipse 3.6.1 to
2395         3.6.2.
2396         * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2397         so that Eclipse doesn't complain
2398         * pom.xml: Update to gwt-maven-plugin 2.2.0.
2399         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2400         'tests' directory to 'client' directory. This is the new
2401         gwt-maven-plugin convension.
2402         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2403         refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2404
2405 2011-03-07  Ben Konrath  <ben@bagu.org>
2406
2407         Add support for horizontal alignment in the LayoutList columns.
2408
2409         * TODO: Remove item about horizontal alignment. Add item about
2410         improvements to ColumnInfo.
2411         * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2412         alignment on the columns. Use ColumnInfo RPC object get the column
2413         title and horizontal alignment.
2414         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2415         LayoutListView creation with ColumnInfo RPC object.
2416         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2417         a ColumnInfo object for every LayoutList columnn. Convert the
2418         FieldFormatting.HorizontalAlignment to the correct
2419         ColumnnInfo.HorizontatlAlignment with the new
2420         getColumnInfoHorizontalAlignment helper method.
2421         * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2422         to encapsulate column information like alignment and title. This
2423         could be used to set the colour instead of on a per cell field basis.
2424         * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2425         column title storage and retrieval with ColumnInfo.
2426
2427 2011-03-04  Ben Konrath  <ben@bagu.org>
2428
2429         Add support for column sorting.
2430
2431         * src/main/java/org/glom/web/client/LayoutListView.java: Change
2432         AsynDataProvider to be an anonymous inner class. Use new
2433         getSortedTableData RPC method when column sort is requested. Set all
2434         columns sortable and add an AsyncHandler to activate sorting in the
2435         AsyncDataProvider.
2436         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2437         method getSortedTableData(). Cleanup other method signatures.
2438         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2439         new method getSortedTableData(). Cleanup other method signatures.
2440         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2441         Implement getSortedTableData() and getTableData() methods by using a
2442         private helper method with the appropriate parameters filled in. Use
2443         user supplied sort clause when supplied, otherwise fall back to
2444         sorting by the primary key. Move destroy() method to be underneath
2445         constructor for readability.  Cleanup comments.
2446
2447 2011-03-03  Ben Konrath  <ben@bagu.org>
2448
2449         Add support for colour text and colour backgrounds to the layout list cells.
2450
2451         Only the cell backgrounds are coloured which leaves a gap between the
2452         cells that isn't coloured. I need to figure out a way to set
2453         'style=background-colour:' on the whole column rather than just the
2454         cell.
2455
2456         * TODO: Add a note about colouring the background of the whole column.
2457         * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2458         column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2459         render the coloured text and backgrounds. Use GlomField[] for the row type.
2460         * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2461         for the row type.
2462         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2463         GlomField[] for the row type.
2464         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2465         GlomField[] for the row type. Set the text, text colour and background
2466         colour in the GlomField objects as specified in the glom document. Add
2467         method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2468         * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2469         the glom field text, foreground colour and background colour.
2470
2471 2011-03-02  Ben Konrath  <ben@bagu.org>
2472
2473         Don't display hidden tables in the combo box.
2474
2475         * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2476         ArrayLists.
2477         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2478         code to ignore hidden tables using ArrayLists for the table names and
2479         titles.
2480         * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2481         tableNames to use ArrayLists instead of String[]. Update getter and setter
2482         methods.
2483
2484 2011-03-01  Ben Konrath  <ben@bagu.org>
2485
2486         Add support for Date and Time number types.
2487
2488         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2489         Implement formatting for Date and Time values. Change the default glom
2490         file to small business example.
2491
2492 2011-03-01  Ben Konrath  <ben@bagu.org>
2493
2494         Add support for formatting glom types as specified in the glom file.
2495
2496         Formatting isn't finished yet - I still need to add support for Date
2497         and Time values.
2498
2499         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2500         formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2501         checks for null values in JDBC cleanup code and catch all exceptions
2502         instead of just SQLExceptions.
2503         * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2504         method name.
2505
2506 2011-03-01  Ben Konrath  <ben@bagu.org>
2507
2508         Use GWT 2.2.0 instead of 2.1.1.
2509
2510         * pom.xml: Change GWT version numbers.
2511
2512 2011-03-01  Ben Konrath  <ben@bagu.org>
2513
2514         A few small code cleanups.
2515
2516         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2517         duplicate for loop.
2518         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2519         unnecessary object creation in constructor.
2520         * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2521         unnecessary object creation in constructor.
2522
2523 2011-02-28  Ben Konrath  <ben@bagu.org>
2524
2525         Add file for TODO list.
2526
2527         * TODO: New file.
2528
2529 2011-02-18  Ben Konrath  <ben@bagu.org>
2530
2531         Enable the CellTable Pager when more than 20 rows need to be viewed.
2532
2533         The Pager will automatically become active when the results are larger
2534         than the CellTable size which is currently set to 20 lines.
2535
2536         * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2537         name on debug statment in RPC call in LayoutListDataProvider, add
2538         numRows parameter to LayoutListView constructor, propperly set rowCount
2539         in CellTable.
2540         * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2541         name on debug statment in RPC call, use LayoutListTable object in RPC
2542         calls, pass rowCount to LayoutListView.
2543         * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2544         getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2545         object.
2546         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2547         interface for changes in OnlineGlomService.
2548         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2549         getLayoutListHeaders() to getLayoutListTable() and return
2550         LayoutListTable. Using this object allows me to pass other information
2551         about the LayoutList like the expected number of rows in the result set.
2552         The Connection object from the connection pool is now propperly closed.
2553         Only the requested number of lines are returned to the client in
2554         getTableData().
2555         * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2556         GlomTable and add columnTitles and numRows.
2557
2558 2011-02-18  Ben Konrath  <ben@bagu.org>
2559
2560         Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2561
2562         This is a small performance boost. I'll use GlomTable to get the required
2563         layoutlist information.
2564
2565         * src/main/java/org/glom/web/client/OnlineGlom.java:
2566         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2567         * src/main/java/org/glom/web/shared/GlomDocument.java:
2568
2569 2011-02-18  Ben Konrath  <ben@bagu.org>
2570
2571         Add option to turn off formatting in JDT formatter preferences.
2572
2573         * .settings/org.eclipse.jdt.core.prefs:
2574
2575 2011-02-18  Ben Konrath  <ben@bagu.org>
2576
2577         Rename LayoutList to LayoutListView.
2578
2579         I'm working towards setting things up to easily use MVP when the time
2580         comes.
2581
2582         * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2583         LayoutList.java.
2584         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2585         references.
2586
2587 2011-02-17  Ben Konrath  <ben@bagu.org>
2588
2589         Move LayoutListDataProvider class into LayoutList.java.
2590
2591         * src/main/java/org/glom/web/client/LayoutList.java:
2592
2593 2011-02-17  Ben Konrath  <ben@bagu.org>
2594
2595         Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2596
2597         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2598         references.
2599         * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2600         * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2601         from LibGlomServer.java.
2602         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2603         Rename from LibGlomServiceAsync.java.
2604         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2605         Rename from LibGlomServiceImpl.java.
2606         * src/main/webapp/WEB-INF/web.xml: Update configuration.
2607
2608 2011-02-17  Ben Konrath  <ben@bagu.org>
2609
2610         Update JDT settings.
2611
2612         * .settings/org.eclipse.jdt.core.prefs:
2613
2614 2011-02-17  Ben Konrath  <ben@bagu.org>
2615
2616         Move GWT-RPC objects to shared package (where they should be).
2617
2618         * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2619         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2620         * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2621         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2622         * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2623         org.glom.web.shared package.
2624         * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2625         org.glom.web.shared package.
2626         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2627         directory in compilation to javascript.
2628
2629 2011-02-16  Ben Konrath  <ben@bagu.org>
2630
2631         Add sort clause to the sql query that grabs table information.
2632
2633         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2634         if one of the columns is a primary key.
2635
2636 2011-02-16  Ben Konrath  <ben@bagu.org>
2637
2638         Disable generateAsync feature of gwt-maven.
2639
2640         The generated interface does not correctly match the methods in LibGlomService
2641         and the generated singleton Util inner-class doesn't respect the servlet
2642         mappings.
2643
2644         * pom.xml: Turn off generateAsync feature.
2645         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2646         with singleton Util inner-class.
2647
2648 2011-02-14  Ben Konrath  <ben@bagu.org>
2649
2650         Add LGPL v3 licence notices.
2651
2652         Followed directions listed here:
2653         http://www.gnu.org/licenses/gpl-howto.html
2654
2655         * COPYING: This file is a copy of the GPL v3.
2656         * COPYING.LESSER: This file is a copy of the LGPL v3.
2657         * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2658         notice.
2659         * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2660         notice.
2661         * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2662         notice.
2663         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2664         licence notice.
2665         * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2666         notice.
2667         * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2668         notice.
2669         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2670         licence notice.
2671
2672 2011-02-14  Ben Konrath  <ben@bagu.org>
2673
2674         Use ArrayList instead of Array in GWT-RPC calls.
2675
2676         Apparently this gives a slight performance boost to the compiled
2677         java script.
2678
2679         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2680         instead of Array.
2681         * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2682         of Array.
2683
2684 2011-02-14  Ben Konrath  <ben@bagu.org>
2685
2686         Access data from a postgres db rather than the example glom file.
2687
2688         * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2689         compile down to obfuscated javascript.
2690         * pom.xml: Add c3p0 and postgres JDBC libraries.
2691         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2692         using a postgres db accessed through the c3p0 connection pooling library.
2693
2694 2011-02-14  Ben Konrath  <ben@bagu.org>
2695
2696         Update Java formatter settings.
2697
2698         * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2699
2700 2011-02-02  Ben Konrath  <ben@bagu.org>
2701
2702         Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2703
2704         * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2705         using Maven.
2706         * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2707         the compiled webapp directory that Eclipse uses as we're using Maven now.
2708         * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2709         * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2710         to 1.6.
2711         * pom.xml: Format file, change target Java version to 1.6.
2712
2713 2011-02-02  Ben Konrath  <ben@bagu.org>
2714
2715         Add information about a deployment related issue.
2716
2717         * README: Add Notes section with the problem outlined.
2718
2719 2011-02-02  Ben Konrath  <ben@bagu.org>
2720
2721         Call Glom.libglom_deinit() when the servlet is shutdown.
2722
2723         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2724         Glom.libglom_deinit() to destroy() method.
2725
2726 2011-01-28  Ben Konrath  <ben@bagu.org>
2727
2728         Use generated Util class to get the RPC Async interface.
2729
2730         * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2731         file.
2732         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2733         getInstance() method to get a reference to the RPC Async interface.
2734         * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2735         getInstance() method to get a reference to the RPC Async interface, remove
2736         the now unused getLibGlomServiceProxy() method.
2737
2738 2011-01-27  Ben Konrath  <ben@bagu.org>
2739
2740         Cleanup ChangeLog entry from previous commit.
2741
2742         * ChangeLog: Group logical changes together and add comments.
2743
2744 2011-01-25  Ben Konrath  <ben@bagu.org>
2745
2746         Convert to gwt-maven project.
2747
2748         * .gitignore: Update for new project structure.
2749         * README: New file with a link to the online documentation.
2750         * pom.xml: The generated maven configuration file with some tweaks.
2751
2752         Add / update Eclipse settings. These files are a merge of the files that
2753         were generated with the gwt-maven plugin and the files we were previously
2754         using.
2755         * .classpath:
2756         * .project:
2757         * .settings/.jsdtscope:
2758         * .settings/com.google.gdt.eclipse.core.prefs:
2759         * .settings/com.google.gwt.eclipse.core.prefs:
2760         * .settings/org.eclipse.jdt.core.prefs:
2761         * .settings/org.eclipse.wst.common.component:
2762         * .settings/org.eclipse.wst.common.project.facet.core.xml:
2763         * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2764         * .settings/org.maven.ide.eclipse.prefs:
2765         * OnlineGlomTest-dev.launch:
2766         * OnlineGlomTest-prod.launch:
2767
2768         Java source files moved from the 'src' directory to the directory structure
2769         required by maven.
2770         * src/main/java/org/glom/web/client/GlomDocument.java:
2771         * src/main/java/org/glom/web/client/GlomTable.java:
2772         * src/main/java/org/glom/web/client/LayoutList.java:
2773         * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2774         * src/main/java/org/glom/web/client/LibGlomService.java:
2775         * src/main/java/org/glom/web/client/OnlineGlom.java:
2776         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2777
2778         Non-functional property file used for translations. I included this as
2779         reminder that it's something I need to sort out.
2780         * src/main/resources/org/glom/web/client/Messages.properties:
2781
2782         The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2783         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2784
2785         The servlet configuration files moved from the 'war' directory.
2786         * src/main/webapp/OnlineGlom.css:
2787         * src/main/webapp/OnlineGlom.html:
2788         * src/main/webapp/WEB-INF/web.xml:
2789
2790         Generated test files with most of the code commented out. I included these
2791         so that it's easy to add tests when we're ready for them.
2792         * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2793         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2794
2795 2011-01-25  Ben Konrath  <ben@bagu.org>
2796
2797         Remove unused println.
2798
2799         * src/org/glom/web/server/LibGlomServiceImpl.java:
2800
2801 2011-01-25  Ben Konrath  <ben@bagu.org>
2802
2803         Add project specific JDT settings.
2804
2805         * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2806         * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2807
2808 2011-01-25  Ben Konrath  <ben@bagu.org>
2809
2810         Populate celltable with example data.
2811
2812         * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2813         * src/org/glom/web/client/GlomTable.java: Correct formatting.
2814         * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2815         add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2816         * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2817         asynchronously gets the example data.
2818         * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2819         * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2820         * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2821         curently selected table to be retrieved by other widgets.
2822         * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2823         implement getTableData() in a hacky way. This method needs to be updated
2824         to grab information from the database when database creating is
2825         implemented.
2826
2827 2011-01-20  Ben Konrath  <ben@bagu.org>
2828
2829         Set table headers when table dropBox changes.
2830
2831         * src/org/glom/web/client/GlomDocument.java: Correct some method
2832         names.
2833         * src/org/glom/web/client/LibGlomService.java: Add method
2834         to get list layout field names.
2835         * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2836         to get list layout field names.
2837         * src/org/glom/web/client/ListLayoutTable.java: New file - composite