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