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