Add configuration for auto-generating mvn:i18n from with Eclipse.
[online-glom:gwt-glom.git] / ChangeLog
1 2012-05-24  Ben Konrath  <ben@bagu.org>
2
3         Add configuration for auto-generating mvn:i18n from with Eclipse.
4
5         * pom.xml: Add PluginExecution configuration for gwt-maven-plugin.
6
7 2012-05-24  Murray Cumming  <murrayc@murrayc.com>
8
9         Update translations, adding French.
10
11         * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
12         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_fr.properties:
13         Add a French translation, using the translation from Glom.
14
15         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
16         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
17         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
18         Update these based on the translations from Glom.
19
20 2012-05-24  Murray Cumming  <murrayc@murrayc.com>
21
22         SelfHoster: Add some debug println messages to help when things fail.
23
24         * src/test/java/org/glom/web/server/SelfHoster.java: Add several
25         System.out.println() lines.
26
27 2012-05-23  Murray Cumming  <murrayc@murrayc.com>
28
29         Tests: SelfHoster: Check other paths for PostgreSQL command-line tools.
30
31         * src/test/java/org/glom/web/server/SelfHoster.java:
32         getPathToPostgresExecutable(): Try some common paths (as on Ubuntu, for 
33         instance) instead of just /usr/bin (as on Fedora). Check the result when 
34         using this method.
35
36 2012-05-23  Murray Cumming  <murrayc@murrayc.com>
37
38         Remove LayoutItemPortal.get/setNavigationTable().
39         
40         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
41         Remove get/setNavigationTable(), which is only a cache, because it is not
42         used, and does not need to be used, because that decision should be made on
43         the server.
44         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
45         updatePortalsExtras():
46         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
47         getNavigationRecord():
48         * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
49         Adapted.
50
51 2012-05-21  Murray Cumming  <murrayc@murrayc.com>
52
53         Initial self-hosting for tests.
54
55         * pom.xml: Change the scope for log4j, to hopefully make it 
56         available to the test code which uses it indirectly via jOOQ.
57         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Allow
58         self-hosting, though we only use it for testing.
59
60         * src/main/java/org/glom/web/server/libglom/Document.java:
61         example rows: Use a map instead of a list for each row of values,
62         so we know what field they are for, instead of relying on the sequence
63         being correct. This is not very efficient, but it does not really need 
64         to be.
65         * src/test/java/org/glom/web/server/libglom/DocumentTest.java
66         testReadTableExampleRows(): Adapted.
67
68         * src/main/java/org/glom/web/shared/DataItem.java: Added getValue()
69         that returns an Object, for generic use. Note that Object seems to be 
70         the implicit base even of double.
71         * src/main/java/org/glom/web/shared/libglom/Field.java: Add getSqlType(),
72         for use in CREATE TABLE SQL queries.
73         * src/test/java/org/glom/web/server/SelfHoster.java: Add this class 
74         to do self-hosting of PostgreSQL databases via its command-line 
75         utilities, based on Glom's C++ code in test_selfhosting_utils.cc and
76         backends/postgres_self.cc. This is incomplete - it needs more 
77         warnings about failures and it needs to clean up properly when things
78         fail.
79         * src/test/java/org/glom/web/server/SelfHostExampleTest.java: A simple 
80         test of this new class.
81
82 2012-05-21  Murray Cumming  <murrayc@murrayc.com>
83
84         Document: loading example data: Handle exceptions.
85
86         * src/main/java/org/glom/web/server/libglom/Document.java:
87         DateFormat.parse() and Double.valueOf() can throw exceptions, though
88         Eclipse did not warn about that.
89
90 2012-05-20  Murray Cumming  <murrayc@murrayc.com>
91
92         Document: load(), save(): Handle the example rows.
93
94         * src/main/java/org/glom/web/shared/DataItem.java: Add get/setDate() 
95         and get/setImage().
96         * src/main/java/org/glom/web/server/libglom/Document.java:
97         load(), save(): Load and save the example rows, though the date, time
98         and image types are not handled properly yet.
99         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
100         Add testReadTableExampleRows() just to check that something is read.
101
102 2012-05-20  Murray Cumming  <murrayc@murrayc.com>
103
104         Document: Add save().
105
106         * src/main/java/org/glom/web/shared/libglom/Translatable.java:
107         Added getTranslationsMap() for use while saving.
108         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
109         Adedd getUseDefaultFormatting() for use while saving.
110         * src/main/java/org/glom/web/server/libglom/Document.java: Added save()
111         and several private methods that it uses.
112
113         This will be useful while testing via self-hosting.
114         It is not complete, but should be complete enough for testing.
115
116 2012-05-17  Murray Cumming  <murrayc@murrayc.com>
117
118         OnlineGlomService: Simplify the getList/RelatedViewData() methods.
119
120         * src/main/java/org/glom/web/client/OnlineGlomService.java
121         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
122         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
123         Remove getSortedListViewData() and getSortedRelatedListData(), adding
124         the sort column index and ascending bool to the regular method.
125         Instead, a sort column index of -1 now means no sort.
126         This is less explicit, but it's fairly simple, reduces the amount of 
127         code, and makes the OnlineGlomService API slightly smaller.
128         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
129         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
130         getDataProvider():
131         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
132         getListViewData(), getRelatedListData():
133         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
134         getListViewData(), getRelatedListData():
135         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
136         getListData():
137         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
138         getData():
139         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
140         getData(): Adapted.
141
142 1.21.9.2:
143
144 2012-05-16  Murray Cumming  <murrayc@murrayc.com>
145
146         Use translations for top-level groups too.
147
148         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
149         updateTitlesForLocale(): Use the translation for the group 
150         as well as for child items.
151
152 1.21.9.1:
153
154 Just recompiled to fix a problem in the released .tar.gz file.
155
156 1.21.9:
157
158 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
159
160         Corrections to navigation to related records.
161         
162         * src/main/java/org/glom/web/client/OnlineGlomService.java:
163         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
164         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
165         getRelatedListData(), getSortedRelatedListData)(), getRelatedListRowCount(),
166         getSuitableRecordToViewDetails(): Take a LayoutItemPortal instead of a 
167         relationship name, because the relationship name is not necessarily unique 
168         on the layout.
169         TOOD: This is inefficient, because it passes the whole list of 
170         child field items back to the server, but it is more correct, and happens
171         to fix a bug with the primary key being lost after a few navigations.
172         There is probably a chance to make this more efficient anyway in some 
173         more basic way.
174         
175         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
176         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.jav
177         * src/main/java/org/glom/web/server/ConfiguredDocument.java
178         * src/main/java/org/glom/web/server/database/DBAccess.java
179         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
180         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
181         Adapted.
182
183 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
184
185         Fix the use of translations.
186
187         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
188         Add updateTitlesForLocale().
189         getValidListViewLayoutGroup(), getDetailsLayoutGroup():
190         Call it to discard unwanted translations and to make getTitle() return
191         the wanted translation wihout the need for the client code to specify a locale.
192         * src/main/java/org/glom/web/shared/libglom/Translatable.java:
193         getTitle(): Fallback to the original title, as libglom does.
194
195 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
196
197         Document: Correctly report the number of available translation locales.
198
199         * src/main/java/org/glom/web/server/libglom/Document.java: Fill
200         the available locale IDs list.
201         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
202         testLocales: Test this.
203
204 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
205
206         SqlUtils: Use camelCase.
207
208         * src/main/java/org/glom/web/server/SqlUtils.java: Use camelCase.
209         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
210         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
211         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
212         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
213         * src/main/java/org/glom/web/server/ReportGenerator.java: Adapt.
214
215 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
216
217         Use jOOQ's tableByName() and fieldByName.
218
219         * pom.xml: Use jOOQ 2.3.1 to get the new API.
220         * src/main/java/org/glom/web/server/SqlUtils.java:
221         build_sql_select_step_with_where_clause(), .createField(),
222         builder_add_join(): Use Factory.tableByName() and Factory.fieldByName()
223         so we can get correct quoting and escaping. Thanks to Lukas Eder for 
224         adding this, and other things, to jOOQ.
225
226 2012-05-15  Murray Cumming  <murrayc@murrayc.com>
227
228         SqlUtils: Remove the Connection parameters.
229
230         * src/main/java/org/glom/web/server/SqlUtils.java:
231         build_sql_select_with_key(), build_sql_select_with_where_clause(),
232         createSelect(), build_sql_select_step_with_where_clause(),
233         build_sql_count_select_with_where_clause(),
234         build_sql_select_count_rows(): Remove the Connection parameter because
235         jOOQ does not actually need a connectionwhen it is just used to build 
236         a SQL string:
237         https://groups.google.com/forum/#!topic/jooq-user/tIwobFOR2iM
238
239         * src/main/java/org/glom/web/server/ReportGenerator.java:
240         generateReport():
241         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
242         getData():
243         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
244         Constructor, getListData(), getResultSizeOfSQLQuery():
245         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
246         getSelectQuery(), getCountQuery():
247         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
248         getSelectQuery(), getCountQuery():
249         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
250         getNavigationRecord(): Adapted.
251
252 2012-05-14  Murray Cumming  <murrayc@murrayc.com>
253
254         Fix quick find.
255
256         * src/main/java/org/glom/web/server/SqlUtils.java:
257         get_find_where_clause_quick(): Use a comparison of 
258         lowercase values, instead of a simple equals. Regular Glom
259         uses the PostgreSQL ILIKE operator but jOOQ does not 
260         support that just yet, though it will soon.
261
262 2012-05-14  Murray Cumming  <murrayc@murrayc.com>
263
264         TableToViewDetails: Use a real serialization ID.
265
266         * src/main/java/org/glom/web/shared/libglom/layout/TableToViewDetails.java:
267         Though this does not fix the serialization problem.
268
269 2012-05-12  Murray Cumming  <murrayc@murrayc.com>
270
271         Added LayoutItemPortalDeepCloneTest.
272
273 2012-05-11  Murray Cumming  <murrayc@murrayc.com>
274
275         Make navigation work again.
276
277         * src/main/java/org/glom/web/server/libglom/Document.java:
278         Add getLayoutItemFieldShouldHaveNavigation().
279         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
280         Replace get/setAddNavigation() with the partly-existing 
281         get/setNavigationTableName(), with an empty string being no navigation,
282         because this is simpler. Use the new 
283         Document.getLayoutItemFieldShouldHaveNavigation() method to set this.
284         
285         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
286         Add updateFieldsExtras() and call setNavigationTableName in it.
287         getDetailsLayoutGroup(), 
288         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
289         createLayout(): Adapted.
290         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
291         Constructor: Adapted.
292
293         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
294         Replace get/setAddNavigation() with get/setNavigation(), returning a
295         TableToViewDetails class with both the table name and UsesRelationship,
296         because both are need. The previous code used java-libglom's output 
297         variable (strangely, via sharedptr) to return both, but we cannot really
298         do that in Java.
299         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
300         getNavigationRecord(): Adapt. However, we cannot actually use the cache
301         here because it somehow gets set to null during deepCopy(). I must test this.
302         * src/test/java/org/glom/web/server/libglom/DocumentTest.java
303         testGetSuitableTableToViewDetails(): Adapted.
304         
305         TODO: Find out why deepClone() is not quite working.
306         
307 2012-05-11  Murray Cumming  <murrayc@murrayc.com>
308
309         DBAccess: Simplify the retrievel of full field details.
310
311         * src/main/java/org/glom/web/server/database/DBAccess.java
312         getFieldsToShowForSQLQueryAddGroup(). This might be unnecessary anyway,
313         because the Document loading should have done this.
314
315 2012-05-11  Murray Cumming  <murrayc@murrayc.com>
316
317         Document: Correct loading of doubly-related layout fields.
318
319         * src/main/java/org/glom/web/server/libglom/Document.java:
320         loadUsesRelationship(): Actually set the related relationship, instead
321         of only setting it if it's not found.
322
323 2012-05-09  Murray Cumming  <murrayc@murrayc.com>
324
325         Replace all appearances of Colour with color.
326
327         Because US English is dominant.
328
329 2012-05-09  Murray Cumming  <murrayc@murrayc.com>
330
331         Use colors in HTML format, solving a warning about an unused function.
332
333         * src/main/java/org/glom/web/shared/libglom/NumericFormat.java
334         * src/main/java/org/glom/web/shared/libglom/layout/Formatting.java:
335         Add *asHTMLColor() versions of methods.
336         TODO: However, we should create and cache the results on the server.
337         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
338         * src/main/java/org/glom/web/client/ui/list/ListTable.java
339         * src/main/java/org/glom/web/server/ConfiguredDocument.java
340         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
341         Use the asHTMLcolor() versions.
342
343 2012-05-09  Murray Cumming  <murrayc@murrayc.com>
344
345         ListViewTable: Constructor: Take the table name as a parameter.
346
347         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
348         Constructor: Take the tableName, and set the member variable, because
349         we use it here.
350         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
351         setCellTable(): Pass the table name.
352         This makes navigation to non-default tables work again. I don't know 
353         why it worked before in the master branch.
354
355 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
356
357         ConfiguredDocument: Restore correct addition of hidden primary key items.
358
359         * src/main/java/org/glom/web/client/ui/list/ListTable.java
360         (ListTable.createCellTable): Uncomment out the check for the hidden
361         primary key.
362         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Only
363         add primary key items for top-level lists and portals, as before, 
364         instead of adding them to each group.
365         * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java:
366         Actually implement the extra methods such as setHiddenPrimaryKey() and
367         comment that these are used only for top-level list groups and in portals.
368         This strangeness suggests even more that this should not be squeezed
369         into the LayoutGroup class.
370
371 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
372
373         Fix Formatting loading.
374
375         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
376         getFormattingUsed(): Remove the duplicate Formatting member variable
377         in favour of the one from the base class.
378         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemWithFormatting.java:
379         Initialize a new Formatting instead of using null by default, so we 
380         have some defaults, instead of having to initialize one later just to 
381         get the same defaults. This also makes loading of formatting from the
382         document work, because that expected a non-null.
383
384 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
385
386         RelatedListTable: Make sure that the tableName is set.
387
388         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
389         Constructor: Take the tableName so it is available later. Otherwise, 
390         the server assumes that we mean the default table and cannot find the
391         relationship in it.
392         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
393         setData(): Pass the tableName to the RelatedListTable constructor.
394
395 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
396
397         Add some checks.
398
399         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
400         RelatedListNavigationButtonCell.onEnterKeyDown(), setData():
401         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
402         getDataProvider():
403         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
404         addColumn():
405         * src/main/java/org/glom/web/server/database/DBAccess.java:
406         convertResultSetToDTO(), getPortal():
407         * src/main/java/org/glom/web/server/database/ListDBAccess.java
408         getListData():
409         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
410         Add checks for null objects and out of range access, with log messages to
411         give hints so we can fix these properly.
412
413 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
414
415         Portals: some corrections.
416
417         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
418         setData():
419         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
420         constructor: Use getRelationshipNameUsed() instead of getName(), because
421         that is what is meant.
422         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
423         getFromField(): Fix a typo, to get the field name, not the table name.
424         * src/main/java/org/glom/web/server/database/DBAccess.java:
425         getPortal(): Fix a typo that stopped this from working.
426
427 2012-05-07  Murray Cumming  <murrayc@murrayc.com>
428
429         LayoutItemPortal: Also override getTitleOriginal().
430
431         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
432         This lets the base getTitle() with no parameters work.
433         TODO: Test this properly.
434
435 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
436
437         LayoutItemPortal: getTitle*(): Use the relationship title.
438
439 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
440
441         LayoutItemField: Fix loading of custom titles.
442
443         * src/main/java/org/glom/web/server/libglom/Document.java
444         loadDataLayoutItemField(): The title, if any, instead of the field 
445         title, is stored in a title_custom node. Load it from there.
446         * src/main/java/org/glom/web/shared/libglom/CustomTitle.java: Add this
447         class.
448         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField:
449         Add getCustomTitle() and use it, instead of super.getTitle*(), in the
450         getTitle*() overrides.
451         * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
452         Adapt.
453
454 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
455
456         LayoutItemField: Fall back to field titles, so some are really shown.
457
458         * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
459         Override getTitleOriginal() and getTitle(), as in java-libglom.
460         * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
461         Test this behaviour.
462
463 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
464
465         Correct use of setExpectedResultSize().
466
467         * src/main/java/org/glom/web/server/ConfiguredDocument.java
468         getValidListViewLayoutGroup(), getDetailsLayoutGroup():
469         Use setExpectedResultSize only on top-level groups (for instance, the
470         list layout) or on child portals (in details views).
471         Use the correct table name for portals to avoid SQL errors.
472         Update the expected counts when returning cached layouts.
473
474 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
475
476         Document: Interpret no group column count as 1.
477
478         * src/main/java/org/glom/web/server/libglom/Document.java: Use a sane
479         default, though we now check for this in the UI code anyway.
480
481 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
482
483         More null checks.
484
485 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
486
487         Translatable: Use Hashmap instead of Treemap because GWT supports it.
488
489         * src/main/java/org/glom/web/shared/libglom/Translatable.java:
490         The use of Treemap lead to this error from async methods, with no 
491         further clue:
492         "The response could not be deserialized"
493
494 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
495
496         OnlineGlom.gwt.xml: Add exludes to fix explicit gwt compilation in Eclipse.
497
498         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: This is necessary 
499         when using the Google -> GWT Compile, or 
500         g toolbar button -> GWT Compile Project... feature in Eclipse.
501
502 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
503
504         ListTable.addColumn(): Protect against a null Formatting.
505
506         * src/main/java/org/glom/web/client/ui/list/ListTable.java: addColumn():
507         Create a default Formatting if it is null, because that is the simplest
508         way to do this.
509
510 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
511
512         ConfiguredDocument.updateLayoutGroup(): Protect against a null dereference.
513
514         * src/main/java/org/glom/web/server/ConfiguredDocument.java
515         updateLayoutGroup(): Check that the field is not null.
516
517 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
518
519         ListViewImpl: Protected against a bad cast error.
520
521         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
522         onEnterKeyDown(): Do not cast without an instanceof check.
523
524 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
525
526         ListTable: Protect against an out of range error.
527
528         * src/main/java/org/glom/web/client/ui/list/ListTable.java
529         createCellTable(): This is unlikely, but can happen while debugging.
530
531 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
532
533         AsyncMessage onFailure() callbacks: Log the exception message.
534
535         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
536         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
537         * src/main/java/org/glom/web/client/activity/ListActivity.java:
538         * src/main/java/org/glom/web/client/activity/ReportActivity.java:
539         * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
540         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
541         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
542         These are useful clues when something is wrong.
543
544 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
545
546         ConfiguredDocument: Avoid a null dereference.
547
548         * src/main/java/org/glom/web/server/ConfiguredDocument.java
549         TableLayoutsForLocale.getMapWithAdd(): Make sure that the list and 
550         details maps are created.
551
552 2012-05-06  Murray Cumming  <murrayc@murrayc.com>
553
554         Document: Correct the port number parsing.
555
556         * src/main/java/org/glom/web/server/libglom/Document.java:
557         This lets us actually connect to the database and show the document.
558
559 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
560
561         Fix mvn gwt:test
562
563         * pom.xml: Use htmlunit mode for gwt:test, because the default demands
564         user-interaction, asking us to load a temporary URL in a browser.s
565         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add a servlet node,
566         which is apparently necessary for testing the service. See the comment.
567         * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java: 
568         Show the exception, if any. This is how I saw the 404 in the HTML in 
569         the exception.
570
571 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
572
573         DocumentTest: Move the .glom files into the resources directory.
574
575         * src/test/java/org/glom/web/server/libglom/DocumentTest: And get the
576         URI via getResource().
577
578 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
579
580         Document: Remove the FieldIdentifies inner class.
581
582         * src/main/java/org/glom/web/server/libglom/Document.java: We only
583         use the Relationship (though the same function in libglom is maybe
584         used in other ways) and so this removes a compiler warning.
585
586 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
587
588         Document.load() Remove the error code parameter.
589
590         * src/main/java/org/glom/web/server/libglom/Document.java: load():
591         Remove the parameter. We do not set it yet and it could never have
592         worked as an output parameter (though maybe it did in java-libglom).
593         We could use an exception if we really want the failure reason.
594         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
595         init():
596         * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
597         setUp(), testGetSuitableTableToViewDetails(): Adapt.
598
599 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
600
601         Make some inner classes static.
602
603         * src/main/java/org/glom/web/server/ConfiguredDocument.java
604         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
605         * src/main/java/org/glom/web/server/ReportGenerator.java
606         * src/main/java/org/glom/web/server/libglom/Document.java
607         Make all inner classes static that can be static.
608
609 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
610
611         OnlineGlomServiceImpl: Do not load and check for java-libglom.
612
613         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
614         init(): We do not use java-libglom any more.
615
616 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
617
618         Remove mentions of java-libglom.
619
620         * README: Remove mention of java-libglom, because it no longer needed.
621         * utils/build-onlineglom-war.sh:
622         * utils/check-and-recover-tomcat.py:
623         * utils/install-onlineglom-war.sh: Remove these as they are no longer
624         useful. Building is now far easier, with no need for jhbuild.
625
626 2012-05-05  Murray Cumming  <murrayc@murrayc.com>
627
628         Fix the build (mvn package)
629
630         * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java
631         (LayoutGroup): Make the LayoutItemList inner class static and protected.
632         Otherwise the GWT Java->Javascript compilation fails with just this
633         error, during mvn package or when attempting to view in a browser, 
634         in the GWT developer mode in Eclipse.
635
636         [INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ gwt-glom ---
637         [INFO] auto discovered modules [org.glom.web.OnlineGlom]
638         [INFO] Compiling module org.glom.web.OnlineGlom
639         [INFO]    [ERROR] Errors in 'file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java'
640         [INFO]       [ERROR] Line 46:  Failed to resolve 'org.glom.web.client.OnlineGlomService' via deferred binding
641         [INFO]    Scanning for additional dependencies: file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/ui/details/DetailsCell.java
642         [INFO]       [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
643         [INFO]          [WARN] org.glom.web.client.OnlineGlomService_Proxy
644         [INFO]    [ERROR] Cannot proceed due to previous errors
645
646         It has taken me 2 days to find out what was causing that. After reducing
647         the code, the compiler eventually showed me the full error message.
648
649 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
650
651         ConfiguredDocument: Cache the cloned and stripped layouts.
652
653         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
654         getValidListViewLayoutGroup(), .getDetailsLayoutGroup(): Store the cloned
655         layout in a map, so we can retrieve it again without rebuilding it.
656
657 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
658
659         UsesRelationshipImpl: Complete the relationshipEquals() implementation.
660
661 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
662
663         libglom classes: Implement some auto-generated emthods.
664
665 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
666
667         Add GwtTestOnlineGlomService.
668
669         * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
670         However, this (and the other GwtTest*) does not seem to run during 
671         mvn test. 
672
673 2012-05-04  Murray Cumming  <murrayc@murrayc.com>
674
675         Remove use of unsupported features from client code.
676
677         * src/main/java/org/glom/web/client/StringUtils.java: Add equals().
678         * src/main/java/org/glom/web/shared/libglom/layout/UsesRelationshipImpl.java:
679         * src/main/java/org/glom/web/shared/libglom/layout/reportparts/LayoutItemGroupBy.java:
680         Use our client version of StringUtils instead of the apache commons one.
681         
682         However, the GWT Javascript compliation still fails.
683
684 2012-04-25  Murray Cumming  <murrayc@murrayc.com>
685
686         Add a Field class and implement some loading of it in Document.
687
688 2012-04-25  Murray Cumming  <murrayc@murrayc.com>
689
690         Initial Document loading implementation, instead of libglom.
691
692         * src/test/java/org/glom/web/shared/libglom/: Add Document, Report,
693         and Translatable classes, and adapt the rest of the code to use them.
694         However, this is still missing Layout and Field classes and loading.
695
696 2012-04-24  Murray Cumming  <murrayc@murrayc.com>
697
698         Use of jOOQ: Move Field creation into a utility method.
699
700         * src/main/java/org/glom/web/server/SqlUtils.java:
701         This lets us improve it more easily.
702
703 2012-04-24  Murray Cumming  <murrayc@murrayc.com>
704
705         Use of jOOQ: Improve the code to COUNT a sub-select.
706
707         * src/main/java/org/glom/web/server/SqlUtils.java:
708         Move initial query creation into 
709         build_sql_select_step_with_where_clause().
710         build_sql_select_count_rows(): Use the jOOQ API instead of
711         concatentating text, because a jOOQ Select*Step is a TableLike,
712         which is what from() takes.
713
714 2012-04-23  Murray Cumming  <murrayc@murrayc.com>
715
716         Use jOOQ instead of Glom.build_sql*(), to avoid native calls.
717
718         * pom.xml: Depend on jooq.
719         * src/main/java/org/glom/web/server/SqlUtils.java: Reimplement the
720         methods with jOOQ, based on the C++ implementations in libglom,
721         with some changes to the logic required by jooQ.
722         Take a jOOQ Condition rather than a Glom.SqlExpr (GdaSqlExpr) for the
723         where clause.
724         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
725         * src/main/java/org/glom/web/server/ReportGenerator.java:
726         * src/main/java/org/glom/web/server/SqlUtils.java:
727         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
728         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
729         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
730         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
731         * src/main/java/org/glom/web/server/database/RelatedListNavigation:
732         Adapt. In particular, the SqlUtils methods now need to take a Connection,
733         because jOOQ needs that, though it seems unnecessary.
734
735         This is not quite finished. Ideally jOOQ would help us to build 
736         table_name.field_name names, quoting and escaping them properly.
737         See http://stackoverflow.com/questions/10264001/instantiating-a-jooq-field-by-name
738
739 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
740
741         Move use of Glom.build_sql*() into a new SqlUtils class.
742
743         * src/main/java/org/glom/web/server/SqlUtils.java: Add static methods
744         to wrap Glom.build_sql*(). The parameter types are still Glom one,
745         but this will make it easier to start using something other than 
746         libglom or SqlBuilder.
747
748 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
749
750         Update the project URL.
751
752         * pom.xml: Use an OnlineGlom-specific URL for the project URL.
753
754 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
755
756         Main layout: Use a FlowTable instead of absolute positioning.
757
758         * src/main/java/org/glom/web/client/OnlineGlom.java: onModuleLoad():
759         The RootLayoutPanel is a (extends) AbsolutePanel, so each of its 
760         child panels/widgets must have an absolute position. But that is annoying, so
761         this adds a FlowTable and puts the child panels in there.
762
763 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
764
765         GwtTestOnlineGlom: Comment out unused code.
766
767         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
768         Eclipse has started to say that some code is unused.
769
770 2012-04-21  Murray Cumming  <murrayc@murrayc.com>
771
772         Update to the latest versions of dependencies.
773
774         * pom.xml: Update version numbers of dependencies to the latest
775         versions.
776         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
777         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
778         * src/main/java/org/glom/web/server/ReportGenerator.java:
779         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
780         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
781         * src/main/java/org/glom/web/server/database/RelatedListNavigation.
782         java:
783         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
784         Modify the imports where necessary.
785
786 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
787
788         Style: Remove overflow:hidden from searchbox
789
790         * src/main/webapp/style.css: Because this pushes the Back To Link
791         label/link on to the next row, which is then hidden due to the 
792         hard-coded (in ems) height.
793
794 2012-04-20  Murray Cumming  <murrayc@murrayc.com>
795
796         Remove some duplicate code.
797
798         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
799         getDocumentInfo(): This must have been duplicated during the merge from the
800         reports branch.
801
802 1.21.8.1:
803
804 2012-04-19  Murray Cumming  <murrayc@murrayc.com>
805
806         Reports: Localize the waiting for report message.
807
808         * src/main/java/org/glom/web/client/activity/ReportActivity.java
809         start(): Get the message from the contants.
810         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
811         Add the string here.
812         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
813         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
814         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
815         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
816         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
817         Update these files with the English text for newer strings for now.
818
819 2012-04-19  Murray Cumming  <murrayc@murrayc.com>
820
821         Reports: Show a message while waiting for the report.
822
823         * src/main/java/org/glom/web/client/ui/ReportView.java
824         * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
825         Add setWaitingText(), to show a message saying that we are 
826         waiting for the report to be ready.
827         * src/main/java/org/glom/web/client/activity/ReportActivity.java
828         start(): Call setWaitingText() before calling the async
829         report generation.
830
831 2012-04-19  Murray Cumming  <murrayc@murrayc.com>
832
833         ReportGenerator: Specify date and time formats.
834
835         * src/main/java/org/glom/web/server/ReportGenerator.java:
836         createFieldValueElement(): Use the default (and localized)
837         short formats, though we still need a way to show 4-digit
838         years without providing the format for every locale.
839         * src/main/java/org/glom/web/server/database/DBAccess.java:
840         convertResultSetToDTO(): Use the short formats here too.
841
842 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
843
844         ReportGenerator: Use the correct numeric formatting.
845
846         * src/main/java/org/glom/web/server/ReportGenerator.java
847         createFieldExpression(), createFieldValueElement(): Take the
848         whole LayoutItem_Field instead of just the field name, so
849         we have access to the formatting.
850         createFieldValueElement(): Use JRTextField.setPattern() to
851         specify the numeric formatting, with the help of a 
852         regular DecimalFormat.
853
854 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
855
856         ReportGenerator: Avoid showing null for group by titles.
857
858         * src/main/java/org/glom/web/server/ReportGenerator.java
859         generateReport(): Use setBlankWhenNull() on the field title
860         style too, because this is used for values in group by
861         sections.
862
863 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
864
865         ReportGenerator: Add a colon to titles in vertical groups.
866
867         * src/main/java/org/glom/web/server/ReportGenerator.java
868         addFieldToDetailBandVertical(): Pass true for the withColon
869         parameter.
870
871 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
872
873         ReportGenerator: Simplify the code by using Position more.
874
875 2012-04-18  Murray Cumming  <murrayc@murrayc.com>
876
877         Reports: Support vertical groups, roughly.
878
879         * src/main/java/org/glom/web/server/ReportGenerator.java:
880         addToReport(): Rename to addGroupToReport() and, if necessary,
881         call the new addVerticalGroupToReport() method.
882         createFieldValueElement(): Let the caller specify the Y position
883         too.
884
885 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
886
887         Reports: Allow a second report to be shown.
888
889         * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
890         clear(): Do not remove the HTML widget, which broke the whole layout.
891
892 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
893
894         Locales drop-down: Show that we use English by default.
895
896         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
897         fillView(): When we use English, just because that is the default, when
898         no locale is specified, show that in the Locales drop-down instead of 
899         just showing the first item.
900
901 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
902
903         Unselect the Report/Locale/Table combo item when appropriate.
904
905         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
906         setPlace(): clear reportName if this is not a ReportPlace.
907         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
908         setSelectedTableName(), setSelectedLocale(), setSelectedReport():
909         When the provided name is empty, unselect all items, so that none are
910         indicated. This uses a for loop because I cannot find a single method
911         to do this.
912
913 2012-04-17  Murray Cumming  <murrayc@murrayc.com>
914
915         Report: Give the user a way to get back to the list.
916
917         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
918         start(), setPlace(): Show the Back To List link on reports, and also 
919         interpret selecting the empty report item as back to list.
920
921 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
922
923         Really show the selected Report name.
924
925         * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
926         setPlace(): Store the reportName here, if it is that kind of Place.
927         fillView(): Set the selected Report after filling the list of reports.
928         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
929         setSelectedLocale(), setSelectedReport(): Avoid possible uses of
930         null Strings, though we need some way to unselect all ListBox items
931         in that case.
932
933 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
934
935         ReportGenerator: Try to avoid some problems.
936
937         * src/main/java/org/glom/web/server/ReportGenerator.java
938         addField(): Try to avoid duplicates, and avoid using a null
939         class type.
940
941 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
942
943         Reports: Use quickFind.
944
945         * src/main/java/org/glom/web/client/OnlineGlomService.java;
946         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
947         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
948         getReportHTML(): Add a quickFind parameter.
949         * src/main/java/org/glom/web/client/activity/ReportActivity.java
950         start(): Pass the quickFind parameter.
951         * src/main/java/org/glom/web/server/ReportGenerator.java
952         generateReport(): Take a quickFind parameter.
953
954 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
955
956         ReportPlace: Actually use the report name.
957
958         * src/main/java/org/glom/web/client/place/ReportPlace.java
959         getPlace(): Do not assign the report name to the quickfind.
960
961 2012-04-13  Murray Cumming  <murrayc@murrayc.com>
962
963         Show java.library.path when complaining.
964
965         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
966         init(): When telling us to check java.library.path, show the
967         current value.
968
969 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
970
971         ReportGenerator: Do not show nulls.
972
973 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
974
975         ReportGenerator: Make the title font larger.
976
977 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
978
979         ReportGenerator: Put field titles inside groups, if there are groups.
980
981 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
982
983         ReportGenerator: Take the Report itself instead of the name and group.
984
985         * src/main/java/org/glom/web/server/ConfiguredDocument.java
986         Remove getReportLayoutGroup().
987         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
988         getReportHTML(): Pass the report instead
989         of its name and layout group.
990         * src/main/java/org/glom/web/server/ReportGenerator.java
991         generateReport(): Use the report object to use the title 
992         instead of the name.
993
994 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
995
996         ReportGenerator: Remove designBand parameters.
997
998         * src/main/java/org/glom/web/server/ReportGenerator.java:
999         Make designBand a class member instead of passing it to all
1000         methods.
1001
1002 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1003
1004         ReportGenerator: Add lines, a bit like in the desktop version.
1005
1006         * src/main/java/org/glom/web/server/ReportGenerator.java
1007         addToReport(): Use JRDesignLine.
1008
1009 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1010
1011         ReportGenerator: Correct the title positions and use some bold style.
1012
1013         * src/main/java/org/glom/web/server/ReportGenerator.java:
1014         Break the code up into reusable functions, correct the placement of 
1015         titles, and use normal/bold styles as in the reports in the desktop 
1016         version.
1017
1018 2012-03-06  Murray Cumming  <murrayc@murrayc.com>
1019
1020         ReportGenerator: Add a header band to show the field titles.
1021
1022         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1023         getReportHTML(): Pass the localeId to the ReportGenerator 
1024         constructor.
1025         * src/main/java/org/glom/web/server/ReportGenerator.java
1026         constructor: Take the localeID so we can get translated field
1027         titles.
1028         generateReport(), addToReport(), addFieldToBand(): Add field 
1029         titles in a column header band.
1030
1031 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1032
1033         Reports drop-down list: Some improvement.
1034
1035         * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1036         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1037         Adedd setSelectedReport(),
1038         setReportList(): Add a blank line so that the user can select the 
1039         first one.
1040         * src/main/java/org/glom/web/client/activity/ReportActivity.java
1041         start(): Show the current report by calling setSelectedReport().
1042         This does not seem to work yet.
1043
1044 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1045
1046         DetailsActivity, ListActivity: Move some variables into a base class.
1047
1048         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1049         * src/main/java/org/glom/web/client/activity/HasTableActivity.java:
1050         * src/main/java/org/glom/web/client/activity/ListActivity.java: Move 
1051         the clientFactory, documentID, tableName and authenticationPopup into
1052         a base class, to avoid duplication.
1053
1054 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1055
1056         Translate the Reports label.
1057
1058         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1059         Get the "Reports" label string from the constants.
1060         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.pro
1061         perties: Add Reports to the constants.
1062
1063 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1064
1065         Reports: Implement grouping.
1066
1067         * src/main/java/org/glom/web/server/ReportGenerator.java:
1068         Handle LayoutItem_GroupBy items and try to do the right thing
1069         with JRDesignGroup. It seems to work.
1070
1071 2012-03-04  Murray Cumming  <murrayc@murrayc.com>
1072
1073         Actually show some data with JasperReports.
1074
1075         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: 
1076         getReportHTML(): Move most code into a ReportGenerator class.
1077         * src/main/java/org/glom/web/server/ReportGenerator.java:
1078         Recurse into sub-groups, adding fields to the JasperDesign's details
1079         band. Note that we must set an arbitrary width and height, or it just
1080         will not show any data.
1081
1082 2012-03-04  Murray Cumming  <murrayc@murrayc.com>
1083
1084         Reports Chooser: Show the titles, not the names.
1085
1086         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1087         (TableSelectionViewImpl.setReportList): Show the titles in the UI,
1088         and the names as the values.
1089         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1090         (ConfiguredDocument.getReportLayoutGroup): Do not return a default
1091         group now that we provide the report name, so it should always 
1092         succeed.
1093
1094 2012-02-15  Murray Cumming  <murrayc@murrayc.com>
1095
1096         Depend on jasperreports.
1097
1098         * pom.xml: Add the dependency. My plan is to use this on the 
1099         server side.
1100
1101 2012-01-31  Murray Cumming  <murrayc@murrayc.com>
1102
1103         Implement navigation to report places.
1104
1105         * src/main/java/org/glom/web/client/activity/ReportActivity.java
1106         start(): Do not bother to handle all events here.
1107         * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1108         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1109         Added getSelectedReport().
1110         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1111         .java: start(): When handling a change to the reports chooser,
1112         call getSelectedReport() and goTo() its ReportPlace.
1113         * src/main/java/org/glom/web/client/ui/ReportView.java
1114         * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1115         Added setReportHTML() which puts the html in a gwt HTML widget.
1116         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1117         getReportHTML(): Return "TODO" just to show that this works.
1118
1119 2012-01-31  Murray Cumming  <murrayc@murrayc.com>
1120
1121         Make ReportPlace usable.
1122
1123         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1124         Mention ReportPlace.
1125         * src/main/java/org/glom/web/client/place/ReportPlace.java:
1126         Correct the @prefix annotation.
1127
1128 2012-01-31  Murray Cumming  <murrayc@murrayc.com>
1129
1130         OnlineGlomService: Return report HTML rather than the LayoutGroup.
1131
1132         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1133         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1134         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1135         Change getReportLayout() to getReportHMTL() because we will not need to 
1136         parse or render the report layout on the client side.
1137         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1138         getReportLayout(): Return the libglom LayoutGroup type because we will
1139         not need to convert to a shared type, because this will not be used on
1140         the client side.
1141         * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1142         Adapted.
1143
1144         Note that there is still no implementation for this.
1145
1146
1147 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
1148
1149         Add a (empty) Report Place, View, and Activity.
1150
1151         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1152         Rename to:
1153         * src/main/java/org/glom/web/client/place/HasTablePlace.java
1154         * src/main/java/org/glom/web/client/place/ListPlace.java: Move some of
1155         this into a superclass:
1156         * src/main/java/org/glom/web/client/place/HasRecordsPlace.java
1157         and also use it as the base of this new ReportPlace:
1158         * src/main/java/org/glom/web/client/place/ReportPlace.java
1159
1160         * src/main/java/org/glom/web/client/ui/ReportView.java
1161         * src/main/java/org/glom/web/client/ui/ReportViewImpl.java
1162         * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1163         Add these, containing mostly boiler-plate for now.
1164
1165         * src/main/java/org/glom/web/client/OnlineGlomService.java
1166         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
1167         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1168         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1169         Add API to get the LayoutGroup for the report.
1170
1171 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
1172
1173         Add and fill a Reports drop-down list box.
1174
1175         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1176         Aded getReports():
1177         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1178         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1179         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1180         Added getReports(document, table, localeID), calling 
1181         ConfiguredDocument.getReports().
1182         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1183         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1184         Added setReportsList() and a list widget.
1185         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1186         .java (TableSelectionActivity.fillView(): Fill the view's reports list.
1187
1188
1189 1.21.8:
1190
1191 2012-04-12  Murray Cumming  <murrayc@murrayc.com>
1192
1193         Translations: Add Esperanto.
1194
1195         * src/main/java/org/glom/web/OnlineGlom.gwt.xml
1196         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_eo.
1197         properties: Add this translation because someone took the time to make it.
1198
1199 2012-03-15  Murray Cumming  <murrayc@murrayc.com>
1200
1201         Adapt to the java-libglom 1.21.7 API. 
1202
1203         * src/main/java/org/glom/web/server/ReportGenerator.java:
1204         addToReport(): get_group_secondary_fields() is now
1205         get_secondary_fields().
1206
1207
1208 2012-03-15  Murray Cumming  <murrayc@murrayc.com>
1209
1210         Use the latest java-libglom version.
1211
1212         * pom.xml: Use java-libglom 1.21.7.
1213
1214 2012-03-03  Ben Konrath  <ben@bagu.org>
1215
1216         Display date and time in details view.
1217
1218         https://bugzilla.gnome.org/show_bug.cgi?id=671257
1219
1220         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1221
1222 2012-03-05  Murray Cumming  <murrayc@murrayc.com>
1223
1224         Require the latest java-libglom.
1225
1226         * pom.xml: java-libglom 1.21.5 has LayoutItem_GroupBy.
1227
1228 2012-03-04  Murray Cumming  <murrayc@murrayc.com>
1229
1230         ListViewDbAccess.getSelectQuery(): Avoid using empty quickfind strings.
1231
1232         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
1233         ListViewDBAccess.getSelectQuery(): Do not create a where clause for 
1234         an empty quickfind string. I also corrected libglom to create only 
1235         empty where clauses for empty quickfind strings, but this avoids the
1236         need for that fix.
1237
1238 2012-02-24  Ben Konrath  <ben@bagu.org>
1239
1240         Improve the tabs in the Notebook widget.
1241
1242         Bug #670728
1243
1244 2012-01-30  Murray Cumming  <murrayc@murrayc.com>
1245
1246         Translations: Try to translate the strings.
1247
1248         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1249         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1250         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1251         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1252         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1253         Take the Open translation from GTK+'s .po files.
1254         Take the Details translation from Glom's po files.
1255         I have added the other strings to Glom so we can get translations that way:
1256         http://git.gnome.org/browse/glom/commit/?id=c3cefe607428a84bdf8de1b04e8bef6f70b04564
1257
1258 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
1259
1260         TableSelectionViewImpl: Put the search label and entry in a div.
1261
1262         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1263         Put the search widgets in a FlowTable so that the CSS can be used to
1264         style them while keeping them together.
1265         * src/main/webapp/style.css: Mention the new div.
1266
1267 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
1268
1269         Translate more strings in more locales.
1270
1271         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1272         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1273         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1274         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1275         Translate the "Details" and "Open" string too.
1276
1277         * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
1278         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1279         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1280         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1281         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1282         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1283         Add these new locales as placeholders though they currently contain English.
1284
1285 2012-01-27  Murray Cumming  <murrayc@murrayc.com>
1286
1287         OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
1288
1289         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
1290         Check the ConfiguredDocument* for null before using it.
1291
1292 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
1293
1294         Tell Eclipse about the generated java files.
1295
1296         * .classpath: This lets it find OnlineGlomConstants.java.
1297         It would be nice if Eclipse just used the maven build files.
1298
1299 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
1300
1301         Prevent a crash when no locale is specified in the URL.
1302
1303         * src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
1304         Avoid returning a null string, obtained from 
1305         Window.Location.getParameter(). This caused a crash when it was
1306         later passed to libglom's API.
1307         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1308         init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
1309         getDetailsLayoutAndData(): Use StringUtils.defaultString() to
1310         guard against future null strings.
1311
1312 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
1313
1314         Use the ?locale= query param instead of the &lang= token param. 
1315
1316         * src/main/java/org/glom/web/client/place/ListPlace.java
1317         * src/main/java/org/glom/web/client/place/DetailsPlace.java
1318         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1319         Remove the lang token key and value.
1320         
1321         * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1322         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1323         When the user selects a different locale from the chooser, use 
1324         Window.Location.assign() to change the URL, which then causes a reload.
1325         
1326         * src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
1327         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1328         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
1329         * src/main/java/org/glom/web/client/activity/ListActivity.java
1330         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1331         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
1332         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1333         * src/main/java/org/glom/web/client/ui/ListView.java:
1334         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1335
1336         Remove localeID member variables and method/constructor parameters, instead
1337         using Utils.getCurrentLocaleID() when we need a localID to pass to 
1338         OnlineGlomService.
1339
1340 2012-01-26  Murray Cumming  <murrayc@murrayc.com>
1341
1342         Internationalize the UI strings.
1343
1344         * pom.xml: gwt-maven-plugin: Add the i18n goal and specify a 
1345         <i18nConstantsBundle>, removing the unused <i18nMessagesBundle>.
1346         * src/main/resources/org/glom/web/client/Messages.properties: Remove this
1347         because it is unused. Messages are apparently strings that can have 
1348         parameters, but we do not need that yet, so Contants will be enough for now.
1349         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines
1350         to say that we support the en and de locales.
1351         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1352         The original English strings.
1353         * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1354         Some German translations of the English strings.
1355         The i18n goal then uses the .properties file to generate an 
1356         OnlineGlomConstants.java file in target/ and somehow GWT.create() magically
1357         returns an implementation that returns the translated strings.
1358         The documentation suggests putting these in src/java/*/client/, but it seems
1359         best to put it in src/resources/*/client/.
1360         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1361         Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings
1362         instead of hard-coding them.
1363         Note that we cannot import OnlineGlomConstants because it does not exist yet,
1364         but that does not seem to stop the build, though it confuses Eclipse.
1365         
1366         You can see the translated string by adding ?locale=de to the URL, like so:
1367         http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager
1368
1369 2012-01-24  Murray Cumming  <murrayc@murrayc.com>
1370
1371         Improve null/empty String checks. 
1372
1373         * pom.xml: Add a dependency on commons-lang, to use
1374         org.apache.commons.lang.StringUtils.
1375         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1376         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1377         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java
1378         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1379         Use StringUtils.isEmpty().
1380
1381         * src/main/java/org/glom/web/client/StringUtils.java: Add a tiny
1382         StringUtils class with a static isEmpty() function because we 
1383         cannot use org.apache.commons.lang.StringUtils in client-side
1384         GWT code because it (apparently) cannot be compiled to javascript.
1385         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1386         * src/main/java/org/glom/web/client/activity/ListActivity.java
1387         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
1388         * src/main/java/org/glom/web/client/place/DetailsPlace.java
1389         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
1390         * src/main/java/org/glom/web/client/place/ListPlace.java
1391         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java
1392         * src/main/java/org/glom/web/client/ui/cell/TextCell.java
1393         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
1394         * src/main/java/org/glom/web/client/ui/details/Group.java
1395         * src/main/java/org/glom/web/client/ui/details/Notebook.java: Use 
1396         our StringUtils.isEmpty() function.
1397
1398 2012-01-24  Murray Cumming  <murrayc@murrayc.com>
1399
1400         Update to the latest java-libglom API.
1401
1402         * pom.xml: Require java-libglom 1.21.4.
1403         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1404         getDocumentInfo(), getListViewLayoutGroup():
1405         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1406         getDocuments():
1407         * src/main/java/org/glom/web/server/database/DBAccess.java
1408         getFieldsToShowForSQLQueryAddGroup(),
1409         getPrimaryKeyLayoutItemField(): Replace get_database_title()
1410         with either get_database_title_original() or 
1411         get_database_title(localeID).
1412
1413 2012-01-24  Murray Cumming  <murrayc@murrayc.com>
1414
1415         ConfiguredDocument: Avoid a null pointer exception.
1416
1417         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1418         Initialize localeID to "" to avoid returning a null String which 
1419         causes a crash in java-libglom's swing-generated code.
1420
1421 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
1422
1423         Some simple renaming.
1424
1425         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1426         * src/main/webapp/style.css: Rename, tableChooser to tablesChooser. Likewise
1427         for localeChooser. This seems more appropriate and is less ambiguous 
1428         particularly in the .css file.
1429
1430 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
1431
1432         ConfiguredDocument: Rename the localedID private member variable.
1433
1434 2012-01-23  Murray Cumming  <murrayc@murrayc.com>
1435
1436         Adapt to the latest java-libglom API from git master.
1437
1438         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1439         libglom now uses only Vector instead of List, which uses add() instead of
1440         addLast(). 
1441
1442 2012-01-22  Murray Cumming  <murrayc@murrayc.com>
1443
1444         ConfiguredDocument: Rename the localedID private member variable.
1445
1446 2012-01-20  Murray Cumming  <murrayc@murrayc.com>
1447
1448         Build a source tarball with mvn assembly:single
1449
1450         * assembly.xml: Add this file.
1451         * pom.xml: Use the maven-assembly-plugin and tell it to use 
1452         our assembly.xml file.
1453
1454 2012-01-19  Murray Cumming  <murrayc@murrayc.com>
1455
1456         OnlineGlomServiceImpl: Get .glom files recursively.
1457
1458         * pom.xml: Depend on commons-io from org.apache.commons.
1459         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1460         init(): Use org.apache.commons.io.FileUtils.listFiles() to get the 
1461         files recursively, and with the easier filter for the extension.
1462         Use org.apache.commons.io.FilenameUtils.removeExtension() to 
1463         simplify that code too.
1464
1465 2012-01-19  Murray Cumming  <murrayc@murrayc.com>
1466
1467         README: Mention that you must install java-libglom packages separately.
1468
1469         But then it works, because java-libglom is now in the central maven 
1470         repository.
1471
1472 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
1473
1474         locales drop-down: Show the correct selected locale when the URL changes.
1475
1476         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1477         .java: setPlace(): Move some code into fillView().
1478
1479 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
1480
1481         locales drop-down: Do not lose the primary key.
1482
1483         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1484         start(): onLocaleChange(): Pass the current primary key value, 
1485         instead of an empty value.
1486
1487 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
1488
1489         locales drop-down: Do not lose the drop-down selection.
1490
1491         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1492         .java (TableSelectionActivity.fillView): Set the selected locale
1493         after changing the drop-down items (though we do not really need
1494         to change them just because the locale changes.)
1495
1496 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
1497
1498         locales drop-down: Change the tables list when this changes.
1499
1500         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1501         .java: TableSelectionActivity.start(): Move the async table titles
1502         retrieval into a private fillView() method and also call this when 
1503         the chosen locale changes.
1504         Note that the document title is not actually translatable yet, but
1505         that is a problem that I should fix soon in libglom.
1506
1507 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
1508
1509         Improve the placement of the locales drop-down.
1510
1511         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1512         Put the title and locales drop-down in a div (gwt.FlowTable).
1513         * src/main/webapp/style.css: Add magic css properties to make this work.
1514         Also remove the left margin from the title so that it lines up with the 
1515         headerbox below it.
1516
1517 2012-01-18  Murray Cumming  <murrayc@murrayc.com>
1518
1519         locales selector: Show human-readable locale titles.
1520
1521         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1522         getDocumentInfo(): Use java.util.Locale to show a real title of 
1523         each locale, in the locale's own language.
1524
1525 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
1526
1527         Add a language/locale selector drop-down.
1528
1529         * src/main/java/org/glom/web/shared/DocumentInfo.java:
1530         Add getLocaleIDs(), setLocaleIDs(), getLocaleTitles(), setLocaleTitles().
1531         * /src/main/java/org/glom/web/server/ConfiguredDocument.java:
1532         getDocumentInfo(): Store the available Locales in the DocumentInfo.
1533         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1534         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1535         Add a ListBox to show the available locales. Add getLocaleSelector(),
1536         setLocaleList(), getSelectedLocale(), setSelectedLocale().
1537         * src/main/java/org/glom/web/client/event/LocaleChangeEvent.java
1538         * src/main/java/org/glom/web/client/event/LocaleChangeEventHandler.
1539         java: Add these classes.
1540         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1541         start(): Fill the locales ListBox. Handle its change event, firing a 
1542         LocaleChangeEvent.
1543         setPlace(): Show the selected locale as specified by the URL token.
1544         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1545         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1546         Handle LocaleChangeEvent, going to a new *Place with that locale.
1547
1548         The placement of the ListBox is not pretty, and it currently uses the ID
1549         as a title, instead of "English", "Deutsch", "Espanola", etc, but it 
1550         is a start.
1551
1552
1553 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
1554
1555         Search box: Show the search text from the URL token.
1556
1557         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1558         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1559         Add setQuickFindText().
1560         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1561         .java: setPlace(): Store the queryText if the place is a ListPlace, 
1562         and call TableSelectionView.setQuickFindText().
1563
1564 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
1565
1566         Allow use of translations via, for instance, &lang=de in the URL.
1567
1568         * pom.xml: Use the unstable java-libglom 1.21 version.
1569
1570         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1571         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
1572         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1573         init(): Instead of calling TranslatableItem.set_current_locale() 
1574         (now removed), call ConfiguredDocument.setDefaultLocaleID().
1575         However, this is only for default locales, which are not needed to 
1576         change the locale in the URL.
1577         getDocumentInfo(), getListViewLayout(), getSortedListViewData(),
1578         getDetailsData(), getDetailsLayoutAndData(), getRelatedListData(),
1579         getSortedRelatedListData(): Add a localeID parameter, so we can get the 
1580         layout for a particular locale.
1581         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1582         Add get/setDefaultLocaleID().
1583         getDocumentInfo(), getListViewData(), getRelatedListData(),
1584         getDetailsLayoutGroup(), getListViewLayoutGroup(),
1585         createLayoutItemPortalDTO(), convertToGWTGlomLayoutItemField(): Add a 
1586         localeID parameter, so we can get the layout for a particular locale.
1587
1588         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1589         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1590         * src/main/java/org/glom/web/client/place/ListPlace.java:
1591         Parse and construct a lang parameter too.
1592
1593         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1594         start(): Pass the defaultLocaleID to addDocumentLink(). It is then
1595         passed to subsequent methods and constructors.
1596         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1597         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1598         Store the localeID from the *Place and pass it to other constructors
1599         and methods, such as OnlineGlomServiceAsync.getDetailsLayoutAndData().
1600
1601         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1602         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1603         * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1604         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1605         * src/main/java/org/glom/web/client/ui/ListView.java:
1606         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1607         Take localeID parameters and pass them to subsequent constructors and 
1608         methods, so that the layout is always retrieved for that locale.
1609
1610         This is rather repetitive.
1611
1612         Note that "" means the original (default) locale of the Glom document,
1613         which is usually English.       
1614
1615 2012-01-17  Murray Cumming  <murrayc@murrayc.com>
1616
1617         Documents: Remove final keyword to fix startup configuration.
1618
1619         * src/main/java/org/glom/web/shared/Documents.java: Remove the
1620         final keywords on the private member variables because that breaks
1621         the startup, apparently (there are warnings) because it stops them
1622         from being serialized. I added these in the previous commit.
1623
1624 2012-01-13  Murray Cumming  <murrayc@murrayc.com>
1625
1626         Documents: Add some final keywords.
1627
1628         * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
1629         this.
1630
1631 2012-01-13  Murray Cumming  <murrayc@murrayc.com>
1632
1633         OnlineGlomServiceImpl: Add to overview comments.
1634
1635         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1636         Note that this is where all the document are loaded. They are not 
1637         loaded freshly for each page.
1638
1639 2012-01-12  Murray Cumming  <murrayc@murrayc.com>
1640
1641         Add a search box.
1642
1643         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1644         Add a TextBox for the text of a quick find.
1645         Add getQuickFindBox(), to get the widget, and getQuickFindText() to 
1646         get the text.
1647         setBackLink(): Add a String quickFind parameter.
1648         * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1649         (TableSelectionView): Add getQuickFindBox() and getQuickFindText()
1650         to the base interface, because that is how TableSelectionViewImpl is used.
1651         * src/main/webapp/style.css: Add style for the search box and its label.
1652
1653         * src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java:
1654         * src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java:
1655         Add these files, based on the existing TableChangeEvent and 
1656         TableChangeEventHandlers.
1657         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1658         start(): Handle QuickFindChangeEvent, passing its quickFind text to
1659         a ListPlace() that the user should be taken to.
1660         * src/main/java/org/glom/web/client/activity/ListActivity.java
1661         start(): Handle it here too and adapt the TableChangeEvent handler to 
1662         pass the extra "" quickFind parameter to ListPlace.
1663         * src/main/java/org/glom/web/client/place/ListPlace.java: 
1664         Constructor: Take an extra String quickFind parameter and store it, 
1665         returning it from a new  getQuickFind() method.
1666         getToken(): Put the quickFind text in the URL token.
1667         getPlace(): Parse the quickFind text from the URL token.
1668         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
1669         va: addDocumentLink(): Pass an extra "" quickFind parameter to the 
1670         ListPlace constructor.
1671         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1672         .java: start(): Add a Change handler for the TableSelectionView's
1673         TextBox (via its base HasChangeHandlers interface), firing the new 
1674         QuickFindChangeEvent.
1675         setPlace(): Adapt the call to TableSelectionView.setbackLink(), to 
1676         pass the extra "" quickFind parameter.
1677
1678         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1679         setCellTable(): Add a String quickFind parameter and pass it to 
1680         the ListViewTable() constructor.
1681         * src/main/java/org/glom/web/client/ui/ListView.java: Change 
1682         setCellTable() in the base interface, because that is how ListViewImpl
1683         is used.
1684
1685         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1686         Add a String quickFind member variable.
1687         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1688         Constructor: Add a String quickFind parameter, storing it in the
1689         base ListTable's member variable.
1690         onRangeChanged(): Pass quickFind to the 
1691         OnlineGlomServiceAsync.getSortedListViewData() and 
1692         OnlineGlomServiceAsync.getListViewData() methods.
1693
1694         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1695         getListViewData(), getSortedListViewData(): Add a String quickFind 
1696         parameter, passing it to ConfiguredDocument.getListViewData().
1697         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1698         Change getListViewData(), getSortedListViewData() in the base interface,
1699         because that is how OnlineGlomServiceImpl is used, via this:
1700         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1701         Change getListViewData(), getSortedListViewData() here too.
1702         This class can apparently be used to asynchronously call methods on 
1703         OnlineGlomService, and GWT seems to implement that after recognizing 
1704         just the *Async name convention and the extra AsyncCallback parameters.
1705
1706         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1707         getListViewData(): Add a String quickFind parameter, and pass it to 
1708         ListViewDBAccess.getData().
1709         * src/main/java/org/glom/web/server/database/ListDBAccess.java
1710         getListData(): Add a String quickFind parameter and pass it to 
1711         getSelectQuery().
1712         getSelectQuery(): Add a String quickFind parameter.
1713         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
1714         getSelectQuery(): Add a String quickFind parameter and use it with 
1715         Glom.get_find_where_clause_quick() to pass a where_clause to 
1716         Glom.build_sql_select_with_where_clause(), to actually filter the 
1717         list view results.
1718         getData(): Add a String quickFind parameter, passing it to getListData().
1719         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja
1720         va: getData(): Pass an empty string to getListData() for the 
1721         quickFind parameter.
1722
1723 2012-01-12  Murray Cumming  <murrayc@murrayc.com>
1724
1725         ListTable: Minor change.
1726
1727         * src/main/java/org/glom/web/client/ui/list/ListTable.java
1728         createCellTable(): Make this protected instead of public.
1729
1730 2012-01-12  Murray Cumming  <murrayc@murrayc.com>
1731
1732         Many files: Use final for the parameters and use the @override attribute.
1733
1734 2012-01-22  Ben Konrath <ben@bagu.org>
1735
1736         Add anchor links for single line text that starts with http, ftp and www.
1737
1738         Bug #667269
1739
1740 2012-01-22  Ben Konrath <ben@bagu.org>
1741
1742         Add ellipsis to single line text in details view.
1743
1744         Bug #667269
1745
1746 2012-01-04  Murray Cumming  <murrayc@murrayc.com>
1747
1748         Remove all javadoc author tags.
1749
1750         Because they are awkward and meaningless when many people touch
1751         many files.
1752         See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
1753  
1754 2012-01-04  Murray Cumming  <murrayc@murrayc.com>
1755
1756         Revert the COPYING.LESSER to COPYING rename.
1757
1758         Apparently both should be there if it is LGPL.
1759
1760 2012-01-03  Murray Cumming  <murrayc@murrayc.com>
1761
1762         *View: Remove unused imports.
1763
1764         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1765         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
1766         * src/main/java/org/glom/web/client/ui/ListView.java:
1767         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1768         Remove unused imports, as suggested by Eclipse.
1769
1770 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
1771
1772         Move the *View::Presenter types, and some API into one base View.
1773
1774         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1775         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1776         * src/main/java/org/glom/web/client/ui/ListView.java:
1777         * src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
1778         Presenter, setPresenter() and clear() into a shared base interface,
1779         to avoid the unnecessary duplicate Presenter types and to more clearly
1780         show how the *Views share the same structure, even if they are not 
1781         used polymorphically.
1782
1783         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1784         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
1785         va:
1786         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1787         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1788         * src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
1789         ity.java:
1790         * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1791         .java: Adapt.
1792
1793         Feel free to revert this if there is a good reason for the duplicate
1794         types.
1795
1796 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
1797
1798         OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
1799
1800         * src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory
1801         a class member instead of a local variable in the method.
1802         This lets us use it to get the view instances, for use in tests.
1803         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1804         beforeOnlineGlom(): Test some more details of the initial view.
1805         Again, this is not very useful.
1806
1807         To really test gwt-glom we will need to start a local postgresql 
1808         instance with local data, like the Glom tests in C++.
1809
1810 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
1811
1812         pom.xml: Mention the LGPL license.
1813
1814         * pom.xml: Add a licenses section.
1815         * COPYING.LESSER: Move this to COPYING, which
1816         previously contained the GPL. But gwt-glom is all LGPL.
1817
1818 2012-01-02  Murray Cumming  <murrayc@murrayc.com>
1819
1820         Add project information to README and pom.xml.
1821
1822         * README: Add a brief description and mention some mvn
1823         commands.
1824         * pom.xml: This extra information shows up in mvn site
1825         generated pages.
1826
1827 2011-01-02  Murray Cumming  <murrayc@murrayc.com>
1828
1829         Use the latest java-libglom version.
1830
1831         * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
1832
1833 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
1834
1835         GwtTestOnlineGlom: Test a little more.
1836
1837         * src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels
1838         protected rather than private, as suggested by the gwt-test-utils
1839         maintianer here:
1840         http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page
1841         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java
1842         Test the initial visibility of the panels.
1843
1844         However, this is not a very useful test.
1845         And I wonder how we should generally test using this idea for an
1846         activity/places app like ours where the real changes happen implicitly
1847         based on the history token/URL.
1848
1849 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
1850
1851         Slight modification to *Mapper comments.
1852
1853         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
1854         (DataActivityMapper)
1855         * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
1856         pper.java
1857         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
1858         r.java
1859         Remove comments mentioning GIN because they are just copied from 
1860         the example code and are apparently not helpful:
1861         http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73
1862         Also change the mention of a class that is only in the example code.
1863
1864 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
1865
1866         GwtTestOnlineGlom test: Minor changes.
1867
1868         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1869         Avoid the long qualified class name and modify the comment 
1870         because it is now obvious to me that the mocked class is the only
1871         custom one created via GWT.create().
1872
1873 2012-01-01  Murray Cumming  <murrayc@murrayc.com>
1874
1875         Tests: Added the beginnings of a test using gwt-test-utils.
1876
1877         * pom.xml: Add dependencies on gwt-test-utils and easymock.
1878         * src/test/resources/META-INF/gwt-test-utils.properties: Add this file
1879         which tells gwt-test-utils what class will be tested.
1880         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1881         Add a simple (but empty) test case. One class, used by the OnlineGlom
1882         class, is mocked so that it can be created. However, I am not sure 
1883         why only this class needs to be mocked.
1884
1885         Note that mockito seems more popular, and clearer, than easymock,
1886         but I have not got that working yet. It might be a matter of the 
1887         mockito version.
1888
1889         This test is run during mvn integration-test.
1890
1891 2011-12-31  Murray Cumming  <murrayc@murrayc.com>
1892
1893         Tests: Use junit4-style syntax instead of junit3-style.
1894
1895         * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1896         * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
1897         * src/test/java/org/glom/web/shared/DataItemTest.java:
1898         Use the @Test annotation rather than relying on the test*() prefix.
1899         Also no longer implement TestCase, to avoid triggering support for 
1900         the junit3-way, which stops the annotations from working.
1901         Change the imports from import junit.framework.* to 
1902         import org.junit.*, which is apparently the new way.
1903
1904 2011-12-31  Murray Cumming  <murrayc@murrayc.com>
1905
1906         Added a test for ListPlace token parsing and creation.
1907
1908         * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
1909         This is much the same as DetailsPlaceTest.
1910
1911         I wonder how we could test the other parts of the *Place API.
1912
1913 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
1914
1915         DetailsPlace test: Also test getToken() and recreation via getPlace().
1916
1917         * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1918         testGetPlaceParameters(): Get the tokens from the DetailsPlace and 
1919         recreate it, testing the recreated DetailsPlace for the same parameter
1920         values.
1921
1922 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
1923
1924         Use the surefire-report plugin.
1925
1926         * pom.xml: This generates a HTML report about the tests in 
1927         target/site/surefire-report.html
1928         when you do mvn surefire-report:report. It seems to be popular/normal.
1929
1930 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
1931
1932         Added a test for DetailsPlace.
1933
1934         * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
1935         Test the getPlace() token parsing.
1936
1937 2011-12-30  Murray Cumming  <murrayc@murrayc.com>
1938
1939         Added a first unit test.
1940
1941         * pom.xml: Add a test goal, and a dependency on junit in that scope.
1942         * src/test/java/org/glom/web/shared/DataItemTest.java:
1943         This is a silly test but it is just to get things started. Note that
1944         maven/junit finds the test because it looks in src/test by default.
1945
1946 2011-12-22  Ben Konrath  <ben@bagu.org>
1947
1948         Change charsetName to "UTF-8" when replacing line breaks.
1949
1950         JavaScript requires the charsetName to be "UTF-8". CharsetName values
1951         that work in Java (such as "UTF8") will not work when compiled to
1952         JavaScript.
1953
1954         This fixes a problem with multi-line details view fields that have hard
1955         line breaks. The "License Text" field on this page demonstrates the
1956         problem:
1957
1958         http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
1959
1960         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1961
1962 2011-12-22  Ben Konrath  <ben@bagu.org>
1963
1964         Fix another bug with related list navigation.
1965
1966         I've tested all the navigation buttons in all of the related lists
1967         so things should be good now.
1968
1969         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1970
1971 2011-12-22  Ben Konrath  <ben@bagu.org>
1972
1973         Fix a crasher when refreshing the list view with the default table.
1974
1975         This crash will also happen when loading the list view with the default
1976         table from a link or bookmark.
1977
1978         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
1979         to the main document selection page when the document id hasn't been
1980         set.
1981         * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
1982         the main document selection page when the document id hasn't been
1983         set.
1984         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
1985         values for the details place when the document id hasn't been set.
1986         * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
1987         values for the list place when the document id hasn't been set.
1988
1989 2011-12-21  Ben Konrath  <ben@bagu.org>
1990
1991         Protect against NPE when glom.document.locale is not in config.
1992
1993         This patch protects against an NPE when glom.document.locale is not in
1994         the config file. This NPE will also happen if glom.document.locale is
1995         commented out.
1996
1997         The patch also updates the error message to display the class name when
1998         the getMessage() returns null. This was happening when the NPE was
1999         thrown and I had "Configuration Error: null". If an NPE is encountered
2000         with this patch, "Configuration Error: NullPointerException " will be
2001         displayed.
2002
2003         This commit closes this bug:
2004
2005         https://bugzilla.gnome.org/show_bug.cgi?id=666669
2006
2007         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2008
2009 2011-12-20  Murray Cumming  <murrayc@murrayc.com>
2010
2011         Rename onlineglom.properties to onlineglom.properties.sample.
2012
2013         * src/main/resources/onlineglom.properties: Rename to:
2014         * src/main/resources/onlineglom.properties.sample:
2015         * src/main/resources/README: And add this file explaining that people
2016         should rename it back when deploying.
2017
2018 2011-12-20  Murray Cumming  <murrayc@murrayc.com>
2019
2020         Allow choosing the translation in the .properties file.
2021
2022         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2023         init(): Read a glom.document.locale value from the configuration file 
2024         and call Glom's TransatableItem::set_current_locale() method.
2025         * src/main/resources/onlineglom.properties: Add a commented-out 
2026         example of this new setting.
2027
2028         It would be better to add &lang=de_DE to the URL, but the current 
2029         libglom API does not allow us to do this easily. I am working on that.
2030
2031 2011-12-19  Murray Cumming  <murrayc@murrayc.com>
2032
2033         Avoid a crash in parsing of token parameters.
2034
2035         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
2036         ava: getTokenParams(): Do not crash if a parameter has a key but no 
2037         value, and ignore parameters with neither.
2038
2039 2011-12-17  Murray Cumming  <murrayc@murayc.com>
2040
2041         History token building/handling: Improve use of token parameters.
2042
2043         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java 
2044         (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
2045         and buildParamsToken(HashMap), for use by derived classes.
2046         Make the separator private because it is no longer be needed.
2047         * src/main/java/org/glom/web/client/place/DetailsPlace.java
2048         (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
2049         instead of manual string concatenation.
2050         (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead 
2051         of hardcoded indices and awkward splitting code.
2052         * src/main/java/org/glom/web/client/place/ListPlace.java
2053         (ListPlace.Tokenizer.getToken): Use buildParamsToken()
2054         instead of manual string concatenation.
2055         (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead 
2056         of hardcoded indices and awkward splitting code.
2057         This should fix bug #666420
2058
2059 2011-12-16  Murray Cumming  <murrayc@murrayc.com>
2060
2061         Fix a Navgiation->Navigation typo in the code.
2062
2063         * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2064         Rename processNavgiation() to processNavigation().
2065
2066 2011-12-16  Murray Cumming  <murrayc@murrayc.com>
2067
2068         Fix a seperator->separator typo in the code.
2069
2070         * src/main/java/org/glom/web/client/place/DetailsPlace.java
2071         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2072         * src/main/java/org/glom/web/client/place/ListPlace.java: Just a 
2073         misspelling.
2074
2075 2011-12-15  Ben Konrath <ben@bagu.org>
2076
2077         Cleanup some comments.
2078
2079         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2080
2081 2011-12-14  Ben Konrath <ben@bagu.org>
2082
2083         Replace \n with <br/> for multiline text in the details view.
2084
2085         Vertical scrollbars are added when needed as well.
2086
2087         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2088
2089 2011-12-14  Ben Konrath <ben@bagu.org>
2090
2091         Specify the font for document selection links.
2092
2093         * src/main/webapp/style.css:
2094
2095 2011-12-14  Ben Konrath <ben@bagu.org>
2096
2097         Fix bouncy CellTable while paging.
2098
2099         This doesn't currently work with related list tables in unselected
2100         Notebook tabs.
2101
2102         * src/main/java/org/glom/web/client/ui/list/ListTable.java
2103
2104 2011-12-14  Ben Konrath <ben@bagu.org>
2105
2106         Revamp the appearance of the document selection page.
2107
2108         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2109         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2110         * src/main/webapp/style.css:
2111
2112 2011-12-13  Ben Konrath <ben@bagu.org>
2113
2114         Set navigation button column to the smallest size possible.
2115
2116         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2117
2118 2011-12-13  Ben Konrath <ben@bagu.org>
2119
2120         Change OpenButton nomenclature to NavigationButton.
2121
2122         Using NavigtionButton makes things more generic. Classes, methods and
2123         variables have been changed.
2124
2125         This is a rename-only refactor.
2126
2127         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2128         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2129         * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
2130         Renamed from OpenButtonCell.
2131         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2132         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2133         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2134
2135 2011-12-12  Ben Konrath <ben@bagu.org>
2136
2137         Remove unnecessary String argument in RelatedListTable and ListViewTable.
2138
2139         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2140         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2141         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2142         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2143
2144 2011-12-12  Ben Konrath <ben@bagu.org>
2145
2146         Update variable names and comments.
2147
2148         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2149         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2150
2151 2011-12-12  Ben Konrath <ben@bagu.org>
2152
2153         Properly initialize numNonEmptyRows variable to zero.
2154
2155         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2156         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2157
2158 2011-12-05  Ben Konrath  <ben@bagu.org>
2159
2160         Add latest mockup with HTML tables.
2161
2162         Features of this mockup:
2163
2164         -> HTML table for flowtable
2165         -> HTML table for flowtable column
2166         -> Example of how related lists would look
2167         -> Not using text entries for data items
2168
2169         The current version of Online Glom doesn't use HTML tables for the
2170         flowtable columns.
2171
2172         This mockup has been sent to the glom-devel mailing list but it's good
2173         to have it here as well.
2174
2175         * mockups/details-view-html-tables.html:
2176
2177 2011-12-05  Ben Konrath  <ben@bagu.org>
2178
2179         Remove unnecessary getPrimaryKeyField() method.
2180
2181         getPrimaryKeyFieldForTable(String) has been renamed to
2182         getPrimaryKeyField(String).
2183
2184         * src/main/java/org/glom/web/server/database/DBAccess.java:
2185         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2186         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2187
2188 2011-12-05  Ben Konrath  <ben@bagu.org>
2189
2190         Add string representation of TypedDataItem value to conversion error message.
2191
2192         * src/main/java/org/glom/web/server/Utils.java: Logging the error
2193         message was extracted into its own method to avoid duplication.
2194
2195 2011-12-05  Ben Konrath  <ben@bagu.org>
2196
2197         Add type checking to navigation primary key value creation.
2198
2199         Create navigation primary key only if the expected type from the Glom
2200         document matches the type returned by the SQL query.
2201
2202         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2203
2204 2011-12-05  Ben Konrath  <ben@bagu.org>
2205
2206         Rename a couple of variables in RelatedListNavigation.
2207
2208         This is a rename-only refactor.
2209
2210         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2211
2212 2011-12-05  Ben Konrath  <ben@bagu.org>
2213
2214         Move getListLayoutGroup() into getListViewLayoutGroup().
2215
2216         This removes getListLayoutGroup(). It was only being called by
2217         getListViewLayoutGroup().
2218
2219         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2220
2221 2011-12-05  Ben Konrath  <ben@bagu.org>
2222
2223         Remove check for LayoutItem_Portal in list table method.
2224
2225         This check is no longer necessary because the method isn't being used
2226         to create the LayoutItemPortal DTO.
2227
2228         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2229
2230 2011-12-05  Ben Konrath  <ben@bagu.org>
2231
2232         Properly support related list navigation.
2233
2234         Navigation from the "Repository Analyzer -> Package Scans ->
2235         Dependencies" related table wasn't working because the primary key for
2236         related tables wasn't being set properly. This commit fixes the
2237         problem.
2238
2239         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
2240         getListLayoutGroup() to create the LayoutItemPortal DTO. This method
2241         doesn't set the primary key properly for related list tables.
2242         * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
2243         name parameter to getPrimaryKeyLayoutItemField(). This makes the method
2244         useful for getting the primary key for list view tables and for related
2245         list tables.
2246         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2247         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2248         Move code to set the primary key for the table from the abstract
2249         ListDBAccess class to ListViewDBAccess as it's only correct for list
2250         view tables.
2251         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2252         Properly add primary key to related list tables.
2253
2254 2011-12-02  Ben Konrath  <ben@bagu.org>
2255
2256         Properly set the horizontal alignment of fields.
2257
2258         This fix is for both the list tables and the details view.
2259
2260         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2261         LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
2262         to set the horizontal alignment of fields.
2263
2264 2011-12-02  Ben Konrath  <ben@bagu.org>
2265
2266         Display currency codes in the details view.
2267
2268         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2269
2270 2011-12-02  Ben Konrath  <ben@bagu.org>
2271
2272         Avoid duplicate JNI call.
2273
2274         JNI is not as efficient as pure Java and this is an easy (and small)
2275         optimization.
2276
2277         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2278         Use previously retrieved value for whereClauseToTableName instead of
2279         getting it again.
2280
2281 2011-12-02  Ben Konrath  <ben@bagu.org>
2282
2283         Rename a couple of variables in RelatedListNavigation.
2284
2285         This is a rename-only refactor.
2286
2287         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2288
2289 2011-12-02  Ben Konrath  <ben@bagu.org>
2290
2291         Indicate clearly that a mismatched primary key type is a bug.
2292
2293         * src/main/java/org/glom/web/server/Utils.java: Change log level from
2294         warning to error. Add 'This is a bug.' to message.
2295
2296 2011-12-02  Ben Konrath  <ben@bagu.org>
2297
2298         Update / fix some comments.
2299
2300         * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
2301         comments.
2302         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
2303         comment.
2304         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2305         Fix comments. Add some TODOs.
2306
2307 2011-12-02  Ben Konrath  <ben@bagu.org>
2308
2309         Enable navigation to details view with string primary key from related list.
2310
2311         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2312         Create a text primary key value when return type of result is
2313         java.sql.Types.VARCHAR.
2314
2315 2011-12-02  Ben Konrath  <ben@bagu.org>
2316
2317         Use checkboxes for booleans in the details view.
2318
2319         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2320
2321 2011-12-01  Ben Konrath  <ben@bagu.org>
2322
2323         Improve performance of related list height calculation.
2324
2325         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2326         Put code to calculate the expected height in a static initializer so
2327         that that it's only called once.
2328
2329 2011-12-01  Ben Konrath  <ben@bagu.org>
2330
2331         Show related list tables in notebooks (again).
2332
2333         Calculate the height of the related list tables so the Notebook can be
2334         set the correct height. The height of the related list table is also needed by
2335         FlowTable to be able decide how to create the layout.
2336
2337         * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
2338         and set the Portal height based on the height of the related list
2339         table and the Portal container.
2340         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2341         Add method to calculate the height of the related list tables.
2342         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2343         * src/main/webapp/style.css: Add css class for Pager. This is needed to
2344         calculate the height of the Pager widget.
2345
2346 2011-12-01  Ben Konrath  <ben@bagu.org>
2347
2348         Use CellTable API for table property instead of setting style on Element.
2349
2350         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2351
2352 2011-12-01  Ben Konrath  <ben@bagu.org>
2353
2354         Make ListViewTable and RelatedListTable a consistent height.
2355
2356         The tables are now a consistent height regardless of the contents of
2357         the table. A hidden button is added to empty rows to ensure that the
2358         height of these rows will match the height of rows with data.
2359
2360         A navigation button column is now added to every table. The width of
2361         the navigation column is set to 0px when a RelatedListTable shouldn't
2362         have navigation buttons. This maintains the a consistent row height in
2363         tables that don't show the navigation buttons.
2364
2365         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
2366         navigation column when not needed.
2367         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
2368         arguments for navigation button to constructor of ListViewTable.
2369         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
2370         hidden button for empty data rows.
2371         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
2372         arguments for navigation button to constructor.
2373         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
2374         create navigation buttons. Add hideNavigationButtons() method.
2375         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
2376         arguments for navigation button to constructor.
2377
2378 2011-12-01  Ben Konrath  <ben@bagu.org>
2379
2380         Use 'visibility: hidden' in Utils.getWidgetHeight().
2381
2382         This is better choice because hidden elements are invisible, don't
2383         respond to events and are not part of the tab order. They will,
2384         however, take up space which is required to be able to calculate the
2385         height of the widget.
2386
2387         * src/main/java/org/glom/web/client/Utils.java:
2388
2389 2011-12-01  Ben Konrath  <ben@bagu.org>
2390
2391         Use Utils.getWidgetHeight() in FlowTable.
2392
2393         * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
2394         this.
2395         * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
2396
2397 2011-12-01  Ben Konrath  <ben@bagu.org>
2398
2399         Put the details css class name on the correct table column.
2400
2401         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2402
2403 2011-11-30  Ben Konrath  <ben@bagu.org>
2404
2405         Update for java-libglom API change.
2406
2407         The getters and setters on FieldFormatting and NumericFormat were
2408         changed to remove the 'M'.
2409
2410         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2411
2412 2011-11-29  Ben Konrath  <ben@bagu.org>
2413
2414         Only allow RelatedListTables in Portals.
2415
2416         * src/main/java/org/glom/web/client/ui/details/Portal.java:
2417
2418 2011-11-29  Ben Konrath  <ben@bagu.org>
2419
2420         Only create a contents panel for Portals when title is being set.
2421
2422         * src/main/java/org/glom/web/client/ui/details/Portal.java:
2423
2424 2011-11-29  Ben Konrath  <ben@bagu.org>
2425
2426         Set TabLayoutPanel height based on calculated height its widgets.
2427
2428         This is a potential fix for this bug:
2429
2430         https://bugzilla.gnome.org/show_bug.cgi?id=665133
2431
2432         * src/main/java/org/glom/web/client/ui/details/Notebook.java:
2433
2434 2011-11-29  Ben Konrath  <ben@bagu.org>
2435
2436         Align details field labels and data with the Open buttons.
2437
2438         * src/main/webapp/style.css:
2439
2440 2011-11-29  Ben Konrath  <ben@bagu.org>
2441
2442         Remove unnecessary <div> in the Notebook widget.
2443
2444         * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
2445         method to get container FlowPanel (<div>).
2446         * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
2447         initWidget() method directly on the TabLayoutPanel widget instead of
2448         Group's container widget.
2449
2450 2011-11-29  Ben Konrath  <ben@bagu.org>
2451
2452         Don't add group titles for Portals in Notebooks.
2453
2454         This reverts the previous patch and fixes a bug I introduced with
2455         commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
2456
2457         * src/main/java/org/glom/web/client/ui/details/Group.java:
2458         * src/main/java/org/glom/web/client/ui/details/Portal.java:
2459
2460 2011-11-28  Ben Konrath  <ben@bagu.org>
2461
2462         Remove unused boolean argument in Portal constructor.
2463
2464         Just a code cleanup.
2465
2466         * src/main/java/org/glom/web/client/ui/details/Group.java:
2467         * src/main/java/org/glom/web/client/ui/details/Portal.java:
2468
2469 2011-11-28  Ben Konrath  <ben@bagu.org>
2470
2471         Remove hack for glom 1.18 style glom files.
2472
2473         * src/main/java/org/glom/web/client/ui/details/Group.java:
2474         * src/main/java/org/glom/web/client/ui/details/Notebook.java:
2475         * src/main/java/org/glom/web/client/ui/details/Portal.java:
2476
2477 2011-11-28  Ben Konrath  <ben@bagu.org>
2478
2479         Use Gda Value version of primary key to log result too large error.
2480
2481         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2482
2483 2011-11-28  Ben Konrath  <ben@bagu.org>
2484
2485         Don't use TypedDataItem.getText() for Unknown types from the URL.
2486
2487         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2488         * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
2489         instead of getText().
2490         * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
2491         String field and getUnknown() method.
2492
2493 2011-11-28  Ben Konrath  <ben@bagu.org>
2494
2495         Log an error message when the java-libglom .so is not present.
2496
2497         The error message was being set in the exception but not logged.
2498
2499         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2500
2501 2011-11-28  Ben Konrath  <ben@bagu.org>
2502
2503         Ignore LayoutItem_CalendarPortals.
2504
2505         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
2506         create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
2507
2508 2011-11-28  Ben Konrath  <ben@bagu.org>
2509
2510         Extract method for creating the LayoutItemPortal DTO.
2511
2512         Just breaking the code up into smaller chunks.
2513
2514         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2515
2516 2011-11-28  Ben Konrath  <ben@bagu.org>
2517
2518         Add TypedDataItem.
2519
2520         This should have been added with the refactor. Oops!
2521
2522         * src/main/java/org/glom/web/shared/TypedDataItem.java:
2523
2524 2011-11-28  Ben Konrath  <ben@bagu.org>
2525
2526         Create primary key value from URL string using type from Glom document.
2527
2528         See this bug, comments 19 - 25:
2529
2530         https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
2531
2532         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
2533         create a TypeDataItem for the primary key here when loading from a
2534         URL. Show the same string for the primary key value as was received
2535         from the URL string (when loading from a URL).
2536         * src/main/java/org/glom/web/server/Utils.java: Update method for
2537         creating the Gda Value from the TypeDataItem to properly deal with
2538         creating a Gda Value based on the Glom document type for the primary
2539         key value string when loading from a URL.
2540         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2541         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2542         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2543         Update for changed method name.
2544
2545 2011-11-27  Ben Konrath  <ben@bagu.org>
2546
2547         Rename PrimaryKeyItem to TypedDataItem.
2548
2549         The name PrimaryKeyItem suggests what the class should be used for.
2550         TypedDataItem is a neutral name that describes the class better.
2551
2552         This is a rename-only refactor.
2553
2554         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2555         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2556         * src/main/java/org/glom/web/client/Utils.java:
2557         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2558         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2559         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2560         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2561         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2562         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2563         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2564         * src/main/java/org/glom/web/server/Utils.java:
2565         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2566         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2567         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2568         * src/main/java/org/glom/web/shared/NavigationRecord.java:
2569
2570 2011-11-25  Ben Konrath  <ben@bagu.org>
2571
2572         Improve Gda Value conversion from PrimaryKeyItem.
2573
2574         The value from the PrimaryKeyItem is only used if its type match the
2575         type from the glom document.
2576
2577         * src/main/java/org/glom/web/server/Utils.java:
2578
2579 2011-11-25  Ben Konrath  <ben@bagu.org>
2580
2581         Manually check if the java-liblgom .so is visible to the JVM.
2582
2583         It seems that Tomcat has problems when a static initializer throws an
2584         exception. This check is done before the first method call into
2585         java-libglom so that execution doesn't continue if the .so is not
2586         found.
2587
2588         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2589
2590 2011-11-25  Ben Konrath  <ben@bagu.org>
2591
2592         Improve browser configuration error messages.
2593
2594         This fixes:
2595
2596         https://bugzilla.gnome.org/show_bug.cgi?id=662792
2597
2598         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2599         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2600         getConfigurationErrorMessage() method.
2601         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2602         Get and display a specific configuration error message when no Glom
2603         documents are found.
2604         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2605         Implement getConfigurationErrorMessage() method. Surround configuration
2606         code in the init() method with a try/catch block. This allows the
2607         errors to be caught while keeping the servlet available to retrieve the
2608         configuration error message.
2609
2610 2011-11-25  Ben Konrath  <ben@bagu.org>
2611
2612         Don't use Strings to hold primary key values.
2613
2614         The primary key values are now held in a new data object
2615         (PrimaryKeyItem) that holds type information and the primary key value
2616         using the correct type.
2617
2618         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2619         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2620         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2621         PrimaryKeyItem instead of String to hold the primary key value.
2622         * src/main/java/org/glom/web/client/Utils.java: Remove
2623         getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
2624         PrimaryKeyItem based on the GlomFieldType and the DataItem.
2625         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
2626         PrimaryKeyItem instead of String to hold the primary key value. Load
2627         document selection page when the documentID has not been set correctly.
2628         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
2629         DetailsPlace -> URL and URL -> DetailsPlace conversion with
2630         PrimaryKeyItem.
2631         * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2632         Return empty string for URL instead of "null".
2633         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2634         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2635         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2636         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2637         PrimaryKeyItem instead of String to hold primary key values.
2638         * src/main/java/org/glom/web/server/Utils.java: New method to convert a
2639         PrimaryKeyValue to a Gda Value.
2640         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2641         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2642         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2643         Replace temporary database access code that uses the PrimaryKeyValue to
2644         Gda Value conversion.
2645         * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
2646         * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
2647         PrimaryKeyItem instead of String.
2648         * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
2649         hold primary key values.
2650
2651 2011-11-24  Ben Konrath  <ben@bagu.org>
2652
2653         Use newly added java-libglom API to create queries.
2654
2655         This isn't finished. I still need to stop using Strings for primary key
2656         values in the client code.
2657
2658         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
2659         libglom to use fake connections so that retrieving the query string will
2660         work.
2661         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2662         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
2663         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2664         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2665         Use the newly added libglom sql methods and classes to create the
2666         query. Add temporary hack to convert primary value strings to Gda
2667         Value.
2668
2669 2011-11-23  Ben Konrath  <ben@bagu.org>
2670
2671         Don't explicitly set the height of Portals.
2672
2673         See comments 6 - 10 of this bug for details:
2674
2675         https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
2676
2677         * src/main/java/org/glom/web/client/ui/details/Portal.java:
2678
2679 2011-11-23  Ben Konrath  <ben@bagu.org>
2680
2681         Use an HTML table instead of CSS for the FlowTable layout.
2682
2683         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
2684         GWT's FlexTable to implement the FlowTable.
2685         * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
2686
2687 2011-11-18  Ben Konrath  <ben@bagu.org>
2688
2689         Add boolean example to HTML table mockup.
2690
2691         * mockups/details-view-html-tables-text-entries.html:
2692
2693 2011-11-17  Ben Konrath  <ben@bagu.org>
2694
2695         Ensure the pager buttons are always visible for related lists.
2696
2697         To accomplish this, I've turned off text wrapping in the list view and
2698         related list tables for both the header and data text. The related list
2699         table now has a fixed layout so the it doesn't overflow its container.
2700         This is required to ensure that the cell text is clipped when it
2701         overflows the cell and an ellipsis is added to the right side of the
2702         cell when text is clipped.
2703
2704         A fixed table layout for the related list table in the details view
2705         seems what we want for the details view anyway, so the side-effect is
2706         desirable.
2707
2708         The ellipsis will only be displayed in Firefox >= 7.
2709
2710         This fixes bug:
2711
2712         https://bugzilla.gnome.org/show_bug.cgi?id=662930
2713
2714         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
2715         * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
2716         'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
2717         cell text.
2718         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2719         Set the 'table-layout: fixed' CSS property to the related list table.
2720         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
2721         'white-space: nowrap;' CSS property on both the list view and the
2722         related list tables.
2723
2724 2011-11-16  Ben Konrath  <ben@bagu.org>
2725
2726         Rework the fix for empty notebook tab labels.
2727
2728         Setting the empty group titles with its name caused problems for the
2729         details layout. Instead of using libglom's
2730         LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
2731         to the client when the title is empty. This allows the Notebook to use
2732         the name when the title is empty without affecting anything else.
2733
2734         * src/main/java/org/glom/web/client/ui/details/Notebook.java:
2735         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2736
2737 2011-11-16  Ben Konrath  <ben@bagu.org>
2738
2739         Set group titles with name when title is empty.
2740
2741         This fixes a problem with an empty notebook tab label in the Lesson
2742         Planner document. The forth tab in the notebook should be "Internet":
2743
2744         http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
2745
2746         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
2747         libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
2748         DTO title.
2749
2750 2011-11-16  Ben Konrath  <ben@bagu.org>
2751
2752         Remove whitespace from the configured username properties.
2753
2754         This assumes that usernames won't have whitespace at the beginning
2755         or end. But I think this is a reasonable assumption.
2756
2757         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2758         String.trim() to remove the whitespace from the username properties.
2759
2760 2011-11-15  Ben Konrath  <ben@bagu.org>
2761
2762         Add details view mockup with HTML tables and text entries.
2763
2764         This is from the attachment on this bug:
2765
2766         https://bugzilla.gnome.org/show_bug.cgi?id=663109
2767
2768         * mockups/details-view-html-tables-text-entries.html:
2769
2770 2011-11-15  Ben Konrath  <ben@bagu.org>
2771
2772         Add space between the columns of the flow table.
2773
2774         This fixes:
2775
2776         https://bugzilla.gnome.org/show_bug.cgi?id=662918
2777
2778         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
2779         space between columns in the flow table.
2780
2781 2011-11-15  Ben Konrath  <ben@bagu.org>
2782
2783         Add backup files to the .gitignore.
2784
2785         * .gitignore: Ignore files that end with ~.
2786
2787 2011-11-09  Ben Konrath  <ben@bagu.org>
2788
2789         Use latest release of gwt-log.
2790
2791         Gwt-log releases are now being submitted to the maven central
2792         repository so manual installation of the jar is no longer required.
2793
2794         * pom.xml: Update version and groupId of gwt-log dependency.
2795
2796 2011-10-31  Ben Konrath  <ben@bagu.org>
2797
2798         Don't use GWT numeric formatting to override the glom currency formatting.
2799
2800         Currencies are now displayed like they are in Glom. See this bug:
2801
2802         https://bugzilla.gnome.org/show_bug.cgi?id=646216
2803
2804         * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
2805         formatting.
2806         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
2807         currency code to constructor and set it when the cell is rendered.
2808         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
2809         currency code to the constructor of the NumericCell.
2810
2811 2011-10-27  Ben Konrath  <ben@bagu.org>
2812
2813         Require the latest release of java-libglom (1.17.4).
2814
2815         * pom.xml:
2816
2817 2011-10-26  Ben Konrath  <ben@bagu.org>
2818
2819         Add style to Notebook that matches current theme.
2820
2821         It's not the best style in the world but it's better than the default.
2822
2823         * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
2824         padding at the bottom of the child widgets.
2825         * src/main/webapp/style.css: Add style for the Notebook.
2826
2827 2011-10-26  Ben Konrath  <ben@bagu.org>
2828
2829         Move servlet initialization code to overridden init method.
2830
2831         This is half of the solution to getting proper error messages
2832         displayed when configuration errors occur. Here's the relevant bug:
2833
2834         https://bugzilla.gnome.org/show_bug.cgi?id=662792
2835
2836         The rest of the solution involves surrounding the init method with a
2837         try/catch block and setting a global variable with the error /
2838         exception. A new async method should be created to retrieve and display
2839         the error message / exception.
2840
2841         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
2842         code from constructor to init method adding exceptions as needed.
2843
2844 2011-10-26  Ben Konrath  <ben@bagu.org>
2845
2846         Add script to monitor and restart tomcat if required.
2847
2848         * utils/check-and-recover-tomcat.py: New file.
2849
2850 2011-10-26  Ben Konrath  <ben@bagu.org>
2851
2852         Display the correct number of data items in the pager.
2853
2854         This commit fixes:
2855
2856         https://bugzilla.gnome.org/show_bug.cgi?id=661441
2857
2858         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2859         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2860         The implementation is the same for both tables: Keep track of the
2861         number of non-empty rows and fire and RowCountChangeEvent after the data has
2862         been updated.
2863         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
2864         custom Pager class that subclasses SimplePager to handle displaying
2865         the correct number when empty rows have been added.
2866
2867 2011-10-26  Ben Konrath  <ben@bagu.org>
2868
2869         Correct error in previous commit.
2870
2871         * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
2872         eventBus parameter from listView.setCellTable().
2873
2874 2011-10-26  Ben Konrath  <ben@bagu.org>
2875
2876         Fix error in TODO comment.
2877
2878         * src/main/java/org/glom/web/client/activity/ListActivity.java:
2879
2880 2011-10-24  Ben Konrath  <ben@bagu.org>
2881
2882         Create Notebook widgets to the details view.
2883
2884         This isn't finished just yet - I still need to create a reasonable
2885         style to match the current theme.
2886
2887         * src/main/java/org/glom/web/client/Utils.java: Add method for
2888         calculating the height of a widget. This is used in the Notebook class.
2889         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
2890         new constructor method in Group.
2891         * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
2892         method for creating child widget that can be used by subclasses
2893         like Notebook. New constructor that allows disabling the group
2894         titles - Notebooks don't set a group title for their child groups.
2895         * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
2896         to make Notebooks using GWT's TabLayoutPanel.
2897         * src/main/java/org/glom/web/client/ui/details/Portal.java: New
2898         constructor that allows disabling the group titles.
2899         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
2900         LayoutItemNotebook DTO.
2901         * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
2902         DTO for Notebooks. It's just an empty class for now but we might need
2903         it to transfer some specific information in the future.
2904
2905 2011-10-21  Ben Konrath  <ben@bagu.org>
2906
2907         Add navigation buttons to related list tables.
2908
2909         * src/main/java/org/glom/web/client/OnlineGlomService.java:
2910         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2911         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
2912         method getSuitableRecordToViewDetails() for getting the table name
2913         and primary key value for related list navigation buttons.
2914         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
2915         private cell renderer class to get the navigation information for
2916         related list tables from the server. Extract the navigation
2917         processing code from the details cell navigation and use it for the
2918         related list navigation as well.
2919         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
2920         cell renderer class for the details open buttons. This was needed
2921         because the related list navigation buttons and the list view
2922         navigation buttons need to react differently when clicked.
2923         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
2924         the onEnterKeyDown() method because it's now overriden in the
2925         subclasses that are specific to the related list tables and the list
2926         view tables.
2927         * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
2928         the vertical size a little because the buttons add a bit of vertical
2929         space to table. This is not a perfect solution because the vertical
2930         size of with table fewer than 5 rows will be a little smaller.
2931         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
2932         changes in how navigation buttons are handled.
2933         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
2934         getSuitableRecordToViewDetails() using the new RelatedListNavigation
2935         database access object.
2936         * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
2937         to find the portal for a given relationship name from
2938         RelatedListDBAccess. Add method to find a primary key field for a
2939         given table.
2940         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
2941         Move code to find the portal for a given relationship name to
2942         DBAccess.
2943         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2944         New file: database access object for getting the related list
2945         navigation information (the table name and the primary key value).
2946         * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
2947         DTO for transferring a table name to navigate to and a primary key
2948         value.
2949         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
2950         boolean and getter/setter to specifies if the related list should add
2951         navigation buttons.
2952
2953 2011-10-24  Murray Cumming  <murrayc@murrayc.com>
2954
2955         Use the master branch of java-libglom
2956
2957         * pom.xml: Depend on java-libglom 1.19 instead.
2958         
2959         This is the master branch. See also the libglom-1-18 branch.
2960
2961 2011-10-11  Ben Konrath  <ben@bagu.org>
2962
2963         Enable the open navigation button when the data has been set.
2964
2965         This avoids having active buttons that don't do anything when the data
2966         has not been set.
2967
2968         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2969
2970 2011-10-11  Ben Konrath  <ben@bagu.org>
2971
2972         Use IsWidget interface for FlowTableItem.
2973
2974         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
2975         FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
2976
2977 2011-10-11  Ben Konrath  <ben@bagu.org>
2978
2979         Remove GWT styling from open button in details view.
2980
2981         There are still some issues with how the details cell is arranged but
2982         this should be made to match Glom 1.20. I'm going to leave fixing this
2983         until I have Glom 1.20 up and running.
2984
2985         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
2986         style name on open button.
2987         * src/main/webapp/style.css: Move and edit details-navigation class.
2988         Re-arrange some classes to make them appear in the same order as the
2989         UI.
2990
2991 2011-10-07  Ben Konrath  <ben@bagu.org>
2992
2993         Update to GWT 2.4.0.
2994
2995         * .gitignore: Ignore new cache directory.
2996         * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
2997         * pom.xml: Change GWT and maven plugin to 2.4.0.
2998         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
2999         2.4.0.
3000         * src/main/java/org/glom/web/client/ClientFactory.java:
3001         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
3002         * src/main/java/org/glom/web/client/OnlineGlom.java:
3003         Update source for API changes.
3004         * utils/build-onlineglom-war.sh: Remove cache directory before the
3005         build.
3006
3007 2011-10-07  Ben Konrath  <ben@bagu.org>
3008
3009         Add navigation buttons in the details view.
3010
3011         This isn't finished but I thought I'd commit what I have as it's a
3012         pretty good start. I still need to:
3013
3014         1. Change the style so that it fits better into the current theme
3015         2. Adjust the details cell to expand as much as possible.
3016
3017         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
3018         click handlers to navigation buttons in the DetailsCells. Create a
3019         refreshData() method to get just the data from the server without the
3020         layout.
3021         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3022         Update the tableSelector and browser title when the table name
3023         changes without using the tableSelector.
3024         * src/main/java/org/glom/web/client/ui/DetailsView.java:
3025         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
3026         getDetailsCells() to getCells(). Update variable names.
3027         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
3028         method to set click handler on navigation button. Rename a few
3029         variables. Add navigation buttons where needed.
3030         * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
3031         variables and methods.
3032         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
3033         navigation boolean and navigation table as required in the
3034         LayoutItemField DTO.
3035         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
3036         variables for navigation along with getter/setter methods.
3037
3038 2011-10-07  Ben Konrath  <ben@bagu.org>
3039
3040         Rename Field to DetailsCell.
3041
3042         This is a refactor-only commit. No functionality has been added or
3043         removed.
3044
3045         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3046         Update variable and method names.
3047         * src/main/java/org/glom/web/client/ui/DetailsView.java:
3048         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
3049         variable and method names.
3050         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
3051         Renamed from Field.
3052         * src/main/java/org/glom/web/client/ui/details/Group.java: Update
3053         variable and method names.
3054
3055 2011-10-07  Ben Konrath  <ben@bagu.org>
3056
3057         Create separate methods for layout and data the details view.
3058
3059         This is a refactor-only commit. No functionality has been added or
3060         removed.
3061
3062         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
3063         private methods: setData(), createLayout().
3064
3065 2011-10-07  Ben Konrath  <ben@bagu.org>
3066
3067         Don't use TableSelectorImpl implementation details in TableSelectorActivity.
3068
3069         This is part of a change to get navigation buttons in the details view
3070         but it should have been done this way from the start.
3071
3072         * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
3073         for method name change in TableSelectionView.
3074         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3075         Create TableChangeEvent and set the browser title using the
3076         TableSelectionView API.
3077         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
3078         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
3079         Change getSelectedTable() to getSelectedTableName(). Add
3080         getSelectedTableTitle().
3081
3082 2011-10-07  Ben Konrath  <ben@bagu.org>
3083
3084         Use primaryKeyValue naming convention in constructor of DetailsPlace.
3085
3086         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
3087
3088 2011-10-07  Ben Konrath  <ben@bagu.org>
3089
3090         Update TableChangeEvent to use newTableName naming convention.
3091
3092         This makes the class more consistent with GWT naming conventions.
3093
3094         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3095         Update for method name change in TableChangeEvent.
3096         * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
3097         for method name change in TableChangeEvent.
3098         * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
3099         newTableName variable and getter method. Make toDebugString()
3100         actually work.
3101
3102 2011-09-30  Ben Konrath  <ben@bagu.org>
3103
3104         Disable the pager in the list tables when the data row count is less than the minimum.
3105
3106         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3107         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
3108
3109 2011-09-30  Ben Konrath  <ben@bagu.org>
3110
3111         Add empty rows to the end of related list and list view tables.
3112
3113         I also extracted the cell rendering classes from the ListTable because
3114         the code was becoming a little crazy with all the anonymous inner
3115         classes. My plan is to use these cell rendering classes in the details
3116         view as well so this refactor will be needed for that change.
3117
3118         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
3119         set the row count in related list tables if the data has more rows
3120         than the minimum number of rows visible.
3121         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
3122         row count in list view tables if the data has more rows than the
3123         minimum number of rows visible.
3124         * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
3125         for rendering TYPE_BOOLEAN cells. The code was extracted from the
3126         ListTable class.
3127         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
3128         for rendering TYPE_NUMERIC cells. The code was extracted from the
3129         ListTable class.
3130         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
3131         class for rendering cells with buttons in list views. The code was
3132         extracted from the ListTable class.
3133         * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
3134         for rendering TYPE_TEXT cells. The code was extracted from the
3135         ListTable class.
3136         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
3137         Add empty rows to the end of the data if required. Implement
3138         ListTable.getMinNumVisibleRows().
3139         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
3140         cell renderer code to public classes. Return null in
3141         Column.getValue() for empty rows. Add new abstract method:
3142         getMinNumVisibleRows(). Move code to set the row count of the list view
3143         table to ListViewImpl.
3144         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
3145         empty rows to the end of the data if required. Implement
3146         ListTable.getMinNumVisibleRows().
3147
3148
3149 2011-09-27  Ben Konrath  <ben@bagu.org>
3150
3151         Use GWT.log for client-side debugging statements.
3152
3153         These are optimized out when deployed so I should have used this method
3154         in the first place. These statements will eventually be replaced with some sort
3155         of notification in the browser.
3156
3157         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
3158         * src/main/java/org/glom/web/client/activity/ListActivity.java:
3159         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
3160         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
3161         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
3162
3163 2011-09-27  Ben Konrath  <ben@bagu.org>
3164
3165         Put tableselector on the right, back to list link on right.
3166
3167         The idea is that the table selector is acting like a label for the
3168         currently displayed table so it should be placed below the document title. This
3169         puts the table title in a similar position to where it is in Glom.
3170
3171         * mockups/details-contacts.html:
3172         * mockups/details-projects.html:
3173         * mockups/listview-contacts.html:
3174         * mockups/listview-projects.html:
3175         * mockups/style.css:
3176         Update mockups to match how the interfaces currently look.
3177         * src/main/webapp/style.css: Swap positions of backlink with the table
3178         selector. Add some space on the left side of the table selector to
3179         line things up with the document title.
3180
3181 2011-09-27  Ben Konrath  <ben@bagu.org>
3182
3183         Add field colouring to details view.
3184
3185         This change re-works how field colouring works. The colour formatting
3186         information is now set to the client with the layout information instead of
3187         with the data. This eliminates the need to send the same colour strings for
3188         data in list view column when colour information is set.
3189
3190         In order to set an alternate colour for negative numeric values, the
3191         number is now sent to client and formatted with the GWT NumberFormat class.
3192
3193         This change also fixes:
3194
3195         https://bugzilla.gnome.org/show_bug.cgi?id=659752
3196
3197         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
3198         internationalization framework which is needed for client side numeric
3199         formatting.
3200         * src/main/java/org/glom/web/client/Utils.java: New file for some
3201         client static utility methods.
3202         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
3203         the DataItem object to the Field class. Use a utility method to
3204         create the foreignKeyValue string.
3205         * src/main/java/org/glom/web/client/ui/details/Field.java: Set
3206         alignment and text colours in the constructor. Add setData(DataItem)
3207         method. Remove setText(String) method.
3208         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
3209         colour information to GlomTextCell. Create and use GlomNumberCell for
3210         rendering numbers. Use utility method to get the string for the
3211         primary key of the key provider. Re-work how the horizontal alignment
3212         is set.
3213         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
3214         formatting to layout information. Methods for converting the libglom
3215         formatting information were moved from DBAccess.
3216         * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
3217         numeric formatting (it's now done on the client side). Don't set text
3218         colours in DataItem. Move libglom formatting conversion methods to
3219         ConfiguredDocument.
3220         * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
3221         getters/setters for text colour information.
3222         * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
3223         for transferring the libglom NumericFormat information to the client.
3224         * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
3225         and getters/setters for: GlomNumericFormat, background colour and
3226         foreground colour strings.
3227
3228 2011-09-26  Ben Konrath  <ben@bagu.org>
3229
3230         Simplify code that iterates through the LayoutGroup.
3231
3232         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
3233
3234 2011-09-26  Ben Konrath  <ben@bagu.org>
3235
3236         Accept Eclipse formatting for OnlineGlomServiceAsync.
3237
3238         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3239
3240 2011-09-26  Ben Konrath  <ben@bagu.org>
3241
3242         Don't use the ListDBAccess classes to get the primary key layout information.
3243
3244         This was causing a bug where the wrong index for the hidden primary key
3245         was being sent to the client.
3246
3247         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
3248         primary key while creating the LayoutGroup DTO. Create a
3249         LayoutItemField DTO for hidden primary keys. Don't use the
3250         RelatedListDBAccess because it was only used for getting the primary
3251         key.
3252         * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
3253         access modifier from public to protected for getPrimaryKeyField() and
3254         getPrimaryKeyLayoutItemField().
3255         * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
3256         abstract method getExpectedResultSize() because RelatedListDBAccess
3257         doesn't have enough info to implement it.
3258         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
3259         Remove @Override for getExpectedResultSize().
3260         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
3261         Remove method getExpectedResultSize().
3262
3263 2011-09-23  Ben Konrath  <ben@bagu.org>